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

[20.10 backport] Fix file capabilities dropping in Dockerfile #43876

Merged

Conversation

thaJeztah
Copy link
Member

doCopyXattrs() never reached due to copyXattrs boolean being false, as
a result file capabilities not being copied.

moved copyXattr() out of doCopyXattrs()

(cherry picked from commit 31f654a)

- Description for the changelog

Fixed issue of file capabilities dropping when moving to next command in Dockerfile during image building.

- A picture of a cute animal (not mandatory but encouraged)

doCopyXattrs() never reached due to copyXattrs boolean being false, as
a result file capabilities not being copied.

moved copyXattr() out of doCopyXattrs()

Signed-off-by: Illo Abdulrahim <abdulrahim.illo@nokia.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 31f654a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

(Opening a backport for 20.10 as well for consideration, per request from @mikebrow )

@AkihiroSuda AkihiroSuda merged commit a70ae13 into moby:20.10 Jul 28, 2022
@thaJeztah thaJeztah deleted the 20.10_backport_42655_vfs_storage_driver branch July 28, 2022 23:03
@thaJeztah
Copy link
Member Author

Created a tracking ticket to have a closer look at some things we looked at while deciding if this PR was "safe" to backport; #43882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants