Skip to content
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

[1.1] Fix directory perms vs umask for tmpcopyup #4060

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

kolyshkin
Copy link
Contributor

This is a backport of #4056 to release-1.1 branch, fixing #3991. Original description follows.

PS I checked the test case fails before the fix in release-1.1 as well.


Bump fileutils to v0.5.1, which fixes permissions of newly created directories to not depend on the value of umask.

Add a test case which fails like this before the fix:

mounts.bats
 ✗ runc run [tmpcopyup]
   (in test file tests/integration/mounts.bats, line 28)
     `[[ "${lines[0]}" == *'drwxrwxrwx'* ]]' failed
   runc spec (status=0):

   runc run test_busybox (status=0):
   drwxr-xr-x    2 root     root            40 Oct  4 22:35 /dir1/dir2

Fixes #3991.

Bump fileutils to v0.5.1, which fixes permissions of newly created directories
to not depend on the value of umask.

Add a test case which fails like this before the fix:

	mounts.bats
	 ✗ runc run [tmpcopyup]
	   (in test file tests/integration/mounts.bats, line 28)
	     `[[ "${lines[0]}" == *'drwxrwxrwx'* ]]' failed
	   runc spec (status=0):

	   runc run test_busybox (status=0):
	   drwxr-xr-x    2 root     root            40 Oct  4 22:35 /dir1/dir2

Fixes 3991.

(cherry picked from commit 730bc84)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added the backport/1.1-pr A backport to 1.1.x release. label Oct 5, 2023
@kolyshkin kolyshkin added this to the 1.1.10 milestone Oct 5, 2023
@mrunalp mrunalp merged commit 42acc58 into opencontainers:release-1.1 Oct 6, 2023
29 checks passed
@kolyshkin kolyshkin mentioned this pull request Oct 24, 2023
@cyphar cyphar mentioned this pull request Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.1-pr A backport to 1.1.x release. easy-to-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants