File tree Expand file tree Collapse file tree
linux_os/guide/auditing/auditd_configure_rules/audit_rules_mac_modification_var_lib_selinux Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ documentation_complete : true
2+
3+ title : ' Record Events that Modify the System'' s Mandatory Access Controls in /var/lib/selinux'
4+
5+ description : |-
6+ {{{ describe_audit_rules_watch("/var/lib/selinux/", "MAC-policy") }}}
7+
8+ rationale : |-
9+ The system's mandatory access policy (SELinux) should not be
10+ arbitrarily changed by anything other than administrator action. All changes to
11+ MAC policy should be audited.
12+
13+ severity : medium
14+
15+ identifiers :
16+ cce@rhel8 : CCE-86459-5
17+ cce@rhel9 : CCE-86461-1
18+ cce@rhel10 : CCE-86465-2
19+
20+ ocil_clause : ' the system is not configured to audit attempts to change the MAC policy'
21+
22+ ocil : |-
23+ To determine if the system is configured to audit changes to its SELinux
24+ configuration files, run the following command:
25+ <pre>$ sudo auditctl -l | grep "dir=/var/lib/selinux"</pre>
26+ If the system is configured to watch for changes to its SELinux
27+ configuration, a line should be returned (including
28+ <tt>perm=wa</tt> indicating permissions that are watched).
29+
30+ template :
31+ name : audit_rules_watch
32+ vars :
33+ path : " /var/lib/selinux/"
34+ key : MAC-policy
Original file line number Diff line number Diff line change 1- CCE-86459-5
2- CCE-86461-1
3- CCE-86465-2
41CCE-86466-0
52CCE-86468-6
63CCE-86469-4
You can’t perform that action at this time.
0 commit comments