Skip to content

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

Merged
mrunalp merged 1 commit into
opencontainers:release-1.1from
kolyshkin:1.1-4056
Oct 6, 2023
Merged

[1.1] Fix directory perms vs umask for tmpcopyup#4060
mrunalp merged 1 commit into
opencontainers:release-1.1from
kolyshkin:1.1-4056

Conversation

@kolyshkin
Copy link
Copy Markdown
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 PR to release-1.1 label Oct 5, 2023
@kolyshkin kolyshkin added this to the 1.1.10 milestone Oct 5, 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 PR to release-1.1 easy-to-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants