-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[v1.1.8 regression] Sticky bit on container tmpfs no longer set #3952
Comments
For |
@lifubang there is no reuse of containers, they are being created from scratch. Let me provide a bit more detail as I've been able to reproduce locally outside of our production cluster (via Colima):
I run a simple container to test via Docker (which in turn is using containerd shim):
I then change to use runc 1.1.8:
And perform the same test:
|
@cpuguy83 @neersighted 🙏 PTAL |
Look into the |
Not yet backported, reopening. |
Fixed by #3961. Will be part of 1.1.9. |
Thanks everyone! |
When a directory already exists (or after a container is restarted) the perms of the directory being mounted to were being used even when a different permission is set on the tmpfs mount options. This prepends the original directory perms to the mount options. If the perms were already set in the mount opts then those perms will win. This eliminates the need to perform a chmod after mount entirely. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Description
On runc 1.1.7 our containers had a tmpfs mounted in, which as expected had the sticky bit set:
Upon upgrading to runc 1.1.8 (via containerd 1.6.22) it seems that the sticky bit is no longer set on the tmpfs:
At a glance, this seems to be a regression introduced in #3916
Steps to reproduce the issue
/tmp
does not have the usual sticky bit set, whereas it did in runc 1.1.7.Describe the results you received and expected
/tmp
sticky bit is not set, but previously it was.What version of runc are you using?
1.1.8
Host OS information
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Host kernel information
Linux xxxx 5.15.0-1039-aws #44~20.04.1-Ubuntu SMP Thu Jun 22 12:21:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: