Skip to content

Commit

Permalink
readlinkfs: ignore security.selinux xattrs
Browse files Browse the repository at this point in the history
Packages built on a host with selinux enabled will inherit filesytem
xattr labels from the host and result in 'operation not permitted'
errors when installed in an unpriv'd docker container.

fixes #787
  • Loading branch information
joemiller committed Oct 25, 2023
1 parent df84354 commit bc5a41d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/build/readlinkfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func stringsFromByteSlice(buf []byte) []string {
var xattrIgnoreList = map[string]bool{
"com.apple.provenance": true,
"security.csm": true,
"security.selinux": true,
}

func (f *rlfs) ListXattrs(path string) (map[string][]byte, error) {
Expand Down

0 comments on commit bc5a41d

Please sign in to comment.