Skip to content

Commit d3a6e6e

Browse files
author
Anup Kumar
committed
Fix for audit configuration issue on s390x arch.
audit/audit.sh : Updated the kernel related configuration check for audit and test cleanup to restore the orginal. Signed-off By: Anup Kumar <[email protected]>
1 parent 37f2701 commit d3a6e6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

linux-tools/audit/audit.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function tc_local_setup()
6363
AUDIT_VALUE=$(sed 's/.*audit=\([0-9]*\).*/\1/' $pro_cmd)
6464
AUDIT_DEBUG=$(sed 's/.*audit_debug=\([0-9]*\).*/\1/' $pro_cmd)
6565
if [[ ("$AUDIT_ENABLE" -eq "0") && ("$AUDIT_VALUE" -eq "0") && ("$AUDIT_DEBUG" -eq "0") ]]; then
66-
tc_conf "Audit Services are disable at kernal please check the audit status" || exit
66+
tc_conf "Audit Services are disable at kernel please check the audit status" && exit
6767
fi
6868
fi
6969

@@ -98,7 +98,7 @@ function tc_local_setup()
9898
fi
9999
}
100100

101-
function tc_local_cleanup()
101+
function tc_restore()
102102
{
103103
# stop our instance of audit daemon
104104
service auditd stop &>/dev/null
@@ -248,4 +248,5 @@ test_basics && {
248248
test_syscall_audit
249249
test_audit_trace
250250
test_audit_logging
251+
tc_restore
251252
}

0 commit comments

Comments
 (0)