Merge "Also use selinuxenabled to check selinux status"
This commit is contained in:
commit
2205741de6
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ fi
|
||||||
# for whatever policy is in the host kernel. We will run under
|
# for whatever policy is in the host kernel. We will run under
|
||||||
# "runcon" to specifically allow this
|
# "runcon" to specifically allow this
|
||||||
_runcon=""
|
_runcon=""
|
||||||
if [[ -d /sys/fs/selinux ]]; then
|
if [[ -d /sys/fs/selinux ]] && selinuxenabled; then
|
||||||
sudo semanage permissive -a setfiles_mac_t
|
sudo semanage permissive -a setfiles_mac_t
|
||||||
_runcon="runcon -t setfiles_mac_t -- "
|
_runcon="runcon -t setfiles_mac_t -- "
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue