Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Preserve extended attributes and acls on archlinux build#8404

Merged
tianon merged 1 commit into
moby:masterfrom
danjpgriffin:master
Nov 4, 2014
Merged

Preserve extended attributes and acls on archlinux build#8404
tianon merged 1 commit into
moby:masterfrom
danjpgriffin:master

Conversation

@danjpgriffin

Copy link
Copy Markdown
Contributor

Failure to do this means that file capabilites are not preserved in the image.
Ping fails to work as a non-root user if cap_net_raw is capability is not set

Signed-off-by: Dan Griffin [email protected]

Failure to do this means that file capabilites are not preserved in the image.
Ping fails to work as a non-root user if cap_net_raw is capability is not set

Signed-off-by: Dan Griffin <[email protected]>
@vbatts

vbatts commented Oct 6, 2014

Copy link
Copy Markdown
Contributor

@danjpgriffin I assume the tar command everywhere this is run will include those flags?
Otherwise LGTM

@vbatts

vbatts commented Oct 6, 2014

Copy link
Copy Markdown
Contributor

also, related #6190

@danjpgriffin

Copy link
Copy Markdown
Contributor Author

@vbatts Good question, as xattrs are still not well supported by many distros. However, it looks like the mkimage-arch.sh relies quite heavily on a working arch environment/tool chain (pacman, arch-chroot, pacstrap etc), and any arch environment should have a tar capable of --xattrs/--acl.

@shykes

shykes commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

ping @tianon the alru man!

@shykes

shykes commented Nov 4, 2014

Copy link
Copy Markdown
Contributor

@tianon you are now the owner of the goblet of shame

@tianon

tianon commented Nov 4, 2014

Copy link
Copy Markdown
Member

Since this script won't actually work on non-Arch (without quite a bit of work), I think this is an acceptable change.

LGTM

tianon added a commit that referenced this pull request Nov 4, 2014
Preserve extended attributes and acls on archlinux build
@tianon tianon merged commit c478143 into moby:master Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants