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

Preserve extended attributes and acls on archlinux build #8404

Merged
merged 1 commit into from
Nov 4, 2014

Conversation

danjpgriffin
Copy link
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 dgriffin@peer1.com

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 <dgriffin@peer1.com>
@vbatts
Copy link
Contributor

vbatts commented Oct 6, 2014

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

@vbatts
Copy link
Contributor

vbatts commented Oct 6, 2014

also, related #6190

@danjpgriffin
Copy link
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
Copy link
Contributor

shykes commented Nov 4, 2014

ping @tianon the alru man!

@shykes
Copy link
Contributor

shykes commented Nov 4, 2014

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

@tianon
Copy link
Member

tianon commented Nov 4, 2014

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.

None yet

4 participants