From 920f46880b316e52f4094349631c17a66a4cb602 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 25 Jan 2021 19:37:53 +0000 Subject: [PATCH] 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. --- assemblers/org.osbuild.tar | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assemblers/org.osbuild.tar b/assemblers/org.osbuild.tar index 108d4a34..f8dc3fb4 100755 --- a/assemblers/org.osbuild.tar +++ b/assemblers/org.osbuild.tar @@ -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",