SV-208882r603263_rule
V-208882
SRG-OS-000062
OL6-00-000165
CAT III
10
On a 32-bit system, add the following to "/etc/audit/audit.rules":
# audit_time_rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules
If the system is 64-bit, then also add the following:
# audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules
To determine if the system is configured to audit calls to the "adjtimex" system call, run the following command:
$ sudo grep -w "adjtimex" /etc/audit/audit.rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules
If the system is 64-bit and does not return a rule for both "b32" and "b64" architectures, this is a finding.
If the system is not configured to audit the "adjtimex" system call, this is a finding.
V-208882
False
OL6-00-000165
To determine if the system is configured to audit calls to the "adjtimex" system call, run the following command:
$ sudo grep -w "adjtimex" /etc/audit/audit.rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules
If the system is 64-bit and does not return a rule for both "b32" and "b64" architectures, this is a finding.
If the system is not configured to audit the "adjtimex" system call, this is a finding.
M
2928