diskimage-builder/diskimage_builder/elements/rpm-distro
Alfredo Moralejo b1961e14ea Use SELinuxfs to check selinux status
Currently, the cleanup script is using existence of
semanage binary to check if selinux is enabled. However
this is misleading and can lead to problems when selinux
is disabled in a system where the binary exist.

This patch changes the detection logic to use /sys/fs/selinux
directory which is a in-memory filesystem created only when
selinux is really enabled.

Change-Id: I008f8bbc9c8414ce948c601e3907e27764e15a52
Related-Bug: 1706386
2017-07-26 18:57:25 +02:00
..
cleanup.d Use SELinuxfs to check selinux status 2017-07-26 18:57:25 +02:00
post-install.d Refactor: block-device filesystem creation, mount and fstab 2017-05-12 13:52:02 +02:00
pre-install.d Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00