mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
https://bugzilla.redhat.com/show_bug.cgi?id=1828952#c2 Cherry picked from libguestfs-common commit 101dac2eac8c61f0081c343b5d69cfa4efbc2a98 and backported to libguestfs 1.40 branch (which predates the common submodule). If SELINUXTYPE is set to some value other than targeted then we look for a directory /etc/selinux/<SELINUXTYPE> which does not exist. However this should not cause a fatal error. Using setfiles to do the relabelling immediately is a nice-to-have, but we can fallback to using autorelabel if we're unable to achieve it.