-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Bind mount device nodes on EPERM #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind mount device nodes on EPERM #357
Conversation
|
I don't think this is what they suggested, this will omit those real EPERM errors. Maybe we need some hack like #351 did, which needs to be more robust that people can not fool. @crosbymichael @mrunalp what's your suggestion indeed? Maybe I understand wrong? |
|
@hqhq The only other alternative that I see to this approach is that runC stop manipulating cgroups completely, and the operator pass the entire cgroup to runC. That's a larger change, and requires more design discussion than this one. |
|
the bind mount is what I had in mind but i'm not sure what to do with the cgroup errors yet. |
|
@mrunalp Did you ask Eric Beiderman what he thinks of catching EPERMs when host is unprivileged? |
|
He said that we shouldn't have to check and kernel should be fixed whereever we need to check. |
|
No, that does not work. I did make the cgroup writeable, and I'm able to On Tue, Nov 3, 2015 at 2:26 PM, Mrunal Patel notifications@github.com
|
|
@mrunalp any other suggestions on how to get this done for now? |
|
@mrunalp @crosbymichael Another way to get this done maybe is:
|
|
eperm on mknod sounds good to me for this first step |
|
@crosbymichael Ok, I will remove the cgroup stuff from here and wait for @hqhq to merge his or my PR regarding cgroupsPath. |
5bf6a13 to
3b8d797
Compare
3b8d797 to
4c90fa1
Compare
|
@crosbymichael @mrunalp Removed cgroups changes. Now Im only checking EPERM for mknod. |
Enables launching userns containers by catching EPERM errors for writing to devices cgroups, and for mknod invocations. Signed-off-by: Abin Shahab <ashahab@altiscale.com>
4c90fa1 to
28c9d02
Compare
|
LGTM |
1 similar comment
|
LGTM |
…iner Bind mount device nodes on EPERM
Enables launching userns containers by catching EPERM errors for writing
to devices cgroups, and for mknod invocations.
This reflected the changes suggested by @mrunalp and @crosbymichael in opencontainers/runtime-spec#228
Signed-off-by: Abin Shahab ashahab@altiscale.com