Skip to content

[fix #1716] mount /sys and /sys/fs/cgroup for rootless#1718

Closed
coryb wants to merge 1 commit intomoby:masterfrom
coryb:mount-sys-runc-rootless
Closed

[fix #1716] mount /sys and /sys/fs/cgroup for rootless#1718
coryb wants to merge 1 commit intomoby:masterfrom
coryb:mount-sys-runc-rootless

Conversation

@coryb
Copy link
Copy Markdown
Collaborator

@coryb coryb commented Oct 5, 2020

This is simlar to 4b51fbd attempted in #1627 but using rbind instead of bind. bind caused integration test failures in ./frontend/dockerfile.

@coryb coryb force-pushed the mount-sys-runc-rootless branch from a564f0b to b4b4b2c Compare October 5, 2020 19:53
Signed-off-by: Cory Bennett <cbennett@netflix.com>
@coryb coryb force-pushed the mount-sys-runc-rootless branch from b4b4b2c to c268ca3 Compare October 5, 2020 21:40
Destination: "/sys",
Type: "none",
Source: "/sys",
Options: []string{"rbind", "nosuid", "noexec", "nodev", "ro"},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is insecure

#1627 (comment)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, sorry, I didnt mean for you to review this yet :) Yeah, I was trying different approaches. This is the only one that works, and as you noted it is insecure. I was not able to finding a way that works while also being secure, so I just tried to fix it on the runc side, opened a PR there: opencontainers/runc#2634

I will likely close this PR and open another one to pull in the runc changes when can get a fix for that merged in.

@coryb
Copy link
Copy Markdown
Collaborator Author

coryb commented Oct 6, 2020

I am closing this PR, I think we can hopefully find a solution in runc to resolve this issue and not require /sys mounts.

@coryb coryb closed this Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants