Merge "Also use selinuxenabled to check selinux status"

This commit is contained in:
Zuul 2019-04-18 08:32:14 +00:00 committed by Gerrit Code Review
commit 2205741de6
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ fi
# for whatever policy is in the host kernel. We will run under
# "runcon" to specifically allow this
_runcon=""
if [[ -d /sys/fs/selinux ]]; then
if [[ -d /sys/fs/selinux ]] && selinuxenabled; then
sudo semanage permissive -a setfiles_mac_t
_runcon="runcon -t setfiles_mac_t -- "
fi