Skip to content

Conversation

@ctalledo
Copy link
Member

@ctalledo ctalledo commented May 3, 2025

There's a bug in the shiftfs checker that is causing it report false negatives (i.e., it believes shiftfs is not working in hosts where it actually is working).

The bug was that shiftfs checker was creating a test dir where shiftfs will be mounted, and chowning that dir to the user-ns mapped uid:gid. However that dir must not be chowned, since the shiftfs mount on it already ensures that root in the user-ns will be able to access it. In fact by chowning it we are causing shiftfs to not work properly on it.

Fixes nestybox/sysbox#922.

There's a bug in the shiftfs checker that is causing it report false negatives
(i.e., it believes shiftfs is not working in hosts where it actually is
working).

The bug was that shiftfs checker was creating a test dir where shiftfs will be
mounted, and chowning that dir to the user-ns mapped uid:gid. However that dir
must not be chowned, since the shiftfs mount on it already ensures that root in
the user-ns will be able to access it. In fact by chowning it we are causing
shiftfs to not work properly on it.

Signed-off-by: Cesar Talledo <cesar.talledo@docker.com>
Copy link
Member

@rodnymolina rodnymolina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@ctalledo ctalledo merged commit a4b0ba3 into master May 3, 2025
1 check passed
@ctalledo ctalledo deleted the fix-for-922 branch May 3, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: Wrong file owner when using Sysbox CE 0.6.5 or 0.6.6

3 participants