mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-29 16:45:50 +02:00
Fix a bug of 4.6
This commit is contained in:
parent
243d6b57af
commit
303f280bb4
@ -68,7 +68,8 @@ audit_centos () {
|
||||
if [ $FNRET -eq 0 ]; then
|
||||
if [ $(grep -c selinux $LSM_RUN_STATUS_FILE) -eq 1 ]; then
|
||||
ok "SELinux was activated."
|
||||
if [ $(getenforce | grep -c Enforcing) -eq 1 ]; then
|
||||
does_valid_pattern_exist_in_file $SELINUXCONF_FILE $SELINUXENFORCE_MODE
|
||||
if [ ${FNRET} -eq 0 -a $(getenforce | grep -c 'Enforcing') -eq 1 ]; then
|
||||
ok "SELinux is in Enforcing mode."
|
||||
FNRET=0
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user