-
Notifications
You must be signed in to change notification settings - Fork 245
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
overlay: Fix root directoy state with extended attributes #1953
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.
do you have any tests case where the current code currently fails?
Could we add a test?
Added a test with commit 399c519. |
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
/approve |
@akihikodaki Sorry to say this needs a rebase. |
Force mask is not being enforced when there is a lower layer so correct it. Signed-off-by: Akihiko Odaki <[email protected]>
Naively forcing mask for the root directory corrupts its mode in the containers. Set the overriding extended attribute to fix the mode. Signed-off-by: Akihiko Odaki <[email protected]>
Forcing mask implies the owner is fixed. Signed-off-by: Akihiko Odaki <[email protected]>
Signed-off-by: Akihiko Odaki <[email protected]>
Signed-off-by: Akihiko Odaki <[email protected]>
Signed-off-by: Akihiko Odaki <[email protected]>
Done. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akihikodaki, giuseppe, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
The upper layer inherits the root directory state (UID, GID, and mode) from the lower layer. The current code does not respect extended attributes in the process so this pull request implements necessary procedures.
Concretely, we must respect the lower layer's extended attribute if present. If "force mask" option is set, the upper layer should set the state to the extended attribute instead of modifying the real directory state.