Skip to content

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

Merged
AkihiroSuda merged 1 commit into
moby:20.10from
thaJeztah:20.10_backport_42655_vfs_storage_driver
Jul 28, 2022
Merged

[20.10 backport] Fix file capabilities dropping in Dockerfile#43876
AkihiroSuda merged 1 commit into
moby:20.10from
thaJeztah:20.10_backport_42655_vfs_storage_driver

Conversation

@thaJeztah

Copy link
Copy Markdown
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 31f654a)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants