Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
assemblers/tar: include selinux, acls and xattrs
All of these options, i.e. SELinux labels, ACLs and extended
attributes (xattrs), are opt-in and thus were currently ignored.
This lead to trees that had their selinux labels missing and
were thus incorrect.
  • Loading branch information
gicmo committed Jan 26, 2021
1 parent 3328385 commit 920f468
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assemblers/org.osbuild.tar
Expand Up @@ -58,6 +58,13 @@ def main(tree, output_dir, options):
"XZ_OPT": "--threads 0"
}

# SELinux context, ACLs and extended attributes
extra_args += [
"--selinux",
"--acls",
"--xattrs", "--xattrs-include", "*",
]

# Set up the tar command.
tar_cmd = [
"tar",
Expand Down

0 comments on commit 920f468

Please sign in to comment.