debian-forge/assemblers
Christian Kellner 3d27b301a2 stages/oci-archive: do not include selinux labels
Instead of including SELinux labels for the content layers via the
`--selinux` tar option, make sure selinux labels are not included by
using the `--no-selinux` option.
The inclusion of the labels was a mistake, since they should be
determined by the target system because selinux labels are not
namespaced. On RHEL/Fedora the SELinux label used is something like
`system_u:object_r:container_ro_file_t:s0` for all the files in the
container.
Including the label was leading to permission problems because
the files had a different label on the host and programs inside
the container get `EACCES`, i.e. Permission denied, errors when
accessing files with the different label.
Interestingly this does not happen on Fedora 33 but only on RHEL.
One possibility is that the overlayfs kernel driver in RHEL is
behaving differently on RHEL than on Fedora.
2021-03-02 17:37:45 +01:00
..
org.osbuild.noop pipeline assemblers are stages now 2021-01-18 17:44:46 +01:00
org.osbuild.oci-archive stages/oci-archive: do not include selinux labels 2021-03-02 17:37:45 +01:00
org.osbuild.ostree.commit pipeline assemblers are stages now 2021-01-18 17:44:46 +01:00
org.osbuild.qemu pipeline assemblers are stages now 2021-01-18 17:44:46 +01:00
org.osbuild.rawfs pipeline assemblers are stages now 2021-01-18 17:44:46 +01:00
org.osbuild.tar assembers/tar: add acls, selinux, xattrs options 2021-01-26 12:09:23 +01:00