updated func: check_selinux

This commit is contained in:
Mikhail Tergoev 2024-10-31 13:23:16 +03:00
parent 36e3163edf
commit 7036f06b6f

@ -756,19 +756,15 @@ check_selinux () {
if grep -i ^"SELINUX=enforcing" /run/host/etc/selinux/config &>/dev/null ; then
export SELINUX_IN_USE=1
return 0
else
export SELINUX_IN_USE=0
return 1
fi
else
if grep -i ^"SELINUX=enforcing" /etc/selinux/config &>/dev/null ; then
export SELINUX_IN_USE=1
return 0
else
export SELINUX_IN_USE=0
return 1
fi
fi
export SELINUX_IN_USE=0
return 1
}
export -f check_selinux