diskimage-builder/diskimage_builder
Serena Ziviani 19cc00041a Also use selinuxenabled to check selinux status
Currently, the cleanup script is using the existence of the folder
/sys/fs/selinux to check if SELinux is enabled. This, however, is
misleading in case disk-image-builder is used inside a Docker
container on a selinux-enabled host. In this case, the folder exists
in the container but SELinux is disabled.

This patch addresses the problem by checking, in addition to the
check already in place, the output of the command selinuxenabled.

Change-Id: I83e58f2467e60df9f0f00f7b7a58d0e2ce357a9a
Closes-Bug: #1820077
2019-03-28 14:20:24 +01:00
..
block_device Add missing ws separator between words 2018-11-21 16:07:59 +08:00
elements Also use selinuxenabled to check selinux status 2019-03-28 14:20:24 +01:00
lib Make sure $TMP_BUILD_DIR/mnt is owned by root 2019-01-09 20:08:15 -08:00
tests Replace assertRaisesRegexp with assertRaisesRegex 2018-08-27 10:40:36 -04:00
__init__.py Bump hacking to 0.9.x series 2014-07-21 10:15:41 +02:00
disk_image_create.py squash-package-install to use the correct python 2017-03-13 20:24:39 +11:00
element_dependencies.py Fail if two elements provide the same thing 2018-02-23 10:04:26 +11:00
logging_config.py Add timestamp output filter 2017-06-16 15:58:50 +10:00
paths.py Move diskimage-image-create to an entry point 2016-11-02 05:12:11 +00:00
version.py Create docs site containing element READMEs 2015-02-10 11:45:35 -08:00