-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
runc: 1.1.15 -> 1.2.2 #353610
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
base: master
Are you sure you want to change the base?
runc: 1.1.15 -> 1.2.2 #353610
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
The tests are falling on Linux, is that expected? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.2.2 is released, please update!
https://github.com/opencontainers/runc/releases/tag/v1.2.2
Signed-off-by: Sascha Grunert <[email protected]>
Done 👍 |
ofborg test failure container init: error mounting "/run/current-system/sw/bin" to rootfs at "/bin": mount dst=/bin, dstFd=/proc/thread-self/fd/8, flags=0x5020: operation not permitted
rootless # [ 65.775141] conmon[1000]: conmon c538799f57dae22099d8 <error>: Failed to create container: exit status 1
rootless # Error: runc: runc create failed: unable to start container process: error during container init: error mounting "/run/current-system/sw/bin" to rootfs at "/bin": mount dst=/bin, dstFd=/proc/thread-self/fd/8, flags=0x5020: operation not permitted: OCI permission denied
rootless # [ 65.852220] su[970]: pam_unix(su:session): session closed for user alice
rootless: output:
Test "Run container rootless with runc" failed with error: "command `su alice -l -c 'podman run --runtime=runc -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10'` failed (exit code 126)" But, seems to build fine locally. Not sure if it's just an ofborg issue. |
|
Are there any security constraints within the tests? Hm, … 🤔 |
@ofborg test podman |
The podman test fails for me when run locally. Works fine for Last few lines:
|
status? |
I spend some time to investigate the issue. The root cause is a forbidden re-mount for /bin. Following strace log shows the failling system call: The re-mount is not performed with runc version 1.1.15. It was implemented with following PR: Next step is to investigate, why the re-mount is not allowed. |
In rootless mode, it is not possible to bind volumes from
|
When mount option ro is explicit given, then the test passes: |
In the test VM the path Runc on the other hand tries to re-mount the "double" mounted I do not see a issue on runc side, so I would pass ro to the volumes as shown in my last comment. |
I assume this issue is also present outside our test VMs? I think mounting /nix/store into a container is quite common, so this might break for our users. |
My last comment ist not right. The double-mount is not the reason. I could now reproduce the problem und re-opened the issue on runc, see |
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.
cc @offlinehacker @NixOS/podman