Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] update audit-syscall-check-macro for RHEL 6&7 #317

Merged
merged 1 commit into from
Oct 29, 2014
Merged

[bugfix] update audit-syscall-check-macro for RHEL 6&7 #317

merged 1 commit into from
Oct 29, 2014

Conversation

shawndwells
Copy link
Member

Thank you to Jermaine Glass for reporting!

There was a change of auditctl output syntax between RHEL 6.5 and RHEL 6.6. Namely:

RHEL 6.5

auditctl -l | grep syscall | grep adjtimex
LIST_RULES: exit,always arch=1073741827 (0x40000003) key=audit_time_rules
syscall=adjtimex
LIST_RULES: exit,always arch=3221225534 (0xc000003e) key=audit_time_rules
syscall=adjtimex

RHEL 6.6

auditctl -l | grep syscall | grep adjtimex
<== No output

auditctl -l | grep adjtimex | grep audit_time_rule
-a always,exit -F arch=i386 -S stime,settimeofday,adjtimex -F
key=audit_time_rules
-a always,exit -F arch=x86_64 -S adjtimex,settimeofday,clock_settime -F
key=audit_time_rules

Went to update the audit macro, then (as Steve Grubb outlined) auditctl checks the runtime of the system, whereas the control
is meant to check static (/etc/audit/audit.rules). Updated macro to grep audit.rules vs use auditctl.

Thank you to Jermaine Glass for reporting!

There was a change of auditctl output syntax between RHEL 6.5 and RHEL 6.6. Namely:

RHEL 6.5
---------
auditctl -l | grep syscall | grep adjtimex
LIST_RULES: exit,always arch=1073741827 (0x40000003) key=audit_time_rules
syscall=adjtimex
LIST_RULES: exit,always arch=3221225534 (0xc000003e) key=audit_time_rules
syscall=adjtimex

RHEL 6.6
--------
auditctl -l | grep syscall | grep adjtimex
  <==  No output

 auditctl -l | grep adjtimex | grep audit_time_rule
-a always,exit -F arch=i386 -S stime,settimeofday,adjtimex -F
key=audit_time_rules
-a always,exit -F arch=x86_64 -S adjtimex,settimeofday,clock_settime -F
key=audit_time_rules

Went to update the audit macro, then (as Steve Grubb outlined) auditctl checks the *runtime* of the system, whereas the control
is meant to check static (/etc/audit/audit.rules). Updated macro to grep audit.rules vs use auditctl.
@iankko
Copy link

iankko commented Oct 29, 2014

ACK. Thank you for the patch.

iankko pushed a commit that referenced this pull request Oct 29, 2014
[bugfix] update audit-syscall-check-macro for RHEL 6&7
@iankko iankko merged commit 49e19d2 into ComplianceAsCode:master Oct 29, 2014
@shawndwells shawndwells deleted the rhel6auditfix branch October 31, 2014 12:53
brett060102 pushed a commit to brett060102/content that referenced this pull request Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants