Fix some bugs for 4.6 4.7

This commit is contained in:
Samson-W 2020-06-29 18:27:51 +08:00
parent bf73f53554
commit e72e87e45d
2 changed files with 4 additions and 0 deletions

View File

@ -22,7 +22,9 @@ SELINUXENFORCE_MODE='SELINUX=enforcing'
LSM_RUN_STATUS_FILE='/sys/kernel/security/lsm'
audit_debian () {
set +e
check_aa_status
set -e
if [ $FNRET = 0 ]; then
ok "AppArmor was actived. So pass."
return 0

View File

@ -18,7 +18,9 @@ SELINUXCONF_FILE='/etc/selinux/config'
SELINUXTYPE_VALUE='SELINUXTYPE=default'
audit_debian () {
set +e
check_aa_status
set -e
if [ $FNRET = 0 ]; then
ok "AppArmor was actived. So pass."
return 0