Skip to content

Commit aa1a58a

Browse files
committed
add audit watcher rule for /var/lib/selinux
1 parent a12ddd2 commit aa1a58a

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

shared/references/cce-redhat-avail.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
CCE-86459-5
2-
CCE-86461-1
3-
CCE-86465-2
41
CCE-86466-0
52
CCE-86468-6
63
CCE-86469-4

0 commit comments

Comments
 (0)