Skip to content
Draft
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fd008ad
rhel10: STIG v1r3 update DISA manual from cyber.mil
macko1 Oct 20, 2026
844764b
rhel10: STIG v1r3 update versions in control file and profiles
macko1 Oct 21, 2026
6608e36
rhel10: STIG v1r3 update text in policy files and controls where impl…
macko1 Oct 20, 2026
bae5af7
rhel10: STIG v1r3 add RHEL-10-300085
macko1 Oct 21, 2026
b22db7e
rhel10: STIG v1r3 remove RHEL-10-200050
macko1 Oct 19, 2026
74e5daa
rhel10: STIG v1r3 update RHEL-10-600100 RHEL-10-600110
macko1 Oct 20, 2026
d4ce118
rhel10: STIG v1r3 update RHEL-10-700950
macko1 Oct 21, 2026
675375b
rhel10: STIG v1r3 update RHEL-10-001030 RHEL-10-001040 RHEL-10-001050…
macko1 Oct 21, 2026
046aed6
rhel10: STIG v1r3 update RHEL-10-600000
macko1 Oct 21, 2026
80c58af
rhel10: STIG v1r3 update RHEL-10-600020
macko1 Oct 21, 2026
c1659a2
rhel10: STIG v1r3 update RHEL-10-500720
macko1 Oct 21, 2026
b86b491
rhel10: STIG v1r3 update RHEL-10-500450 RHEL-10-500490
macko1 Oct 21, 2026
d6d049a
rhel10: STIG v1r3 update RHEL-10-500450 RHEL-10-500490 RHEL-10-500720
macko1 Oct 21, 2026
5ce9b6e
rhel10: STIG v1r3 update RHEL-10-500605
macko1 Oct 22, 2026
18db811
rhel10: STIG v1r3 update RHEL-10-200648
macko1 Oct 22, 2026
62cf24d
rhel10: STIG v1r3 update RHEL-10-600750
macko1 Oct 22, 2026
122a95b
rhel10: STIG v1r3 update RHEL-10-200730
macko1 Oct 22, 2026
cf4cf0f
rhel10: STIG v1r3 update RHEL-10-500610
macko1 Oct 22, 2026
cf4179c
rhel10: STIG v1r3 update RHEL-10-500680
macko1 Oct 22, 2026
f9ec401
rhel10: STIG v1r3 update RHEL-10-500690
macko1 Oct 22, 2026
c310255
rhel10: STIG v1r3 update profile stability data
macko1 Oct 21, 2026
100e7fb
rhel10: STIG v1r0-v1r3 update DISA SCAP Benchmark from cyber.mil
macko1 Oct 23, 2026
d50100b
rhel10: STIG v1r3 update RHEL-10-500605 RHEL-10-700950
macko1 Oct 26, 2026
ebcf3f1
Fix yamllint findings in files touched by the STIG update
macko1 Oct 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controls/srg_gpos/SRG-OS-000062-GPOS-00031.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ controls:
- audit_rules_privileged_commands_unix_update
- audit_rules_privileged_commands_userhelper
- audit_rules_privileged_commands_usermod
- audit_rules_privileged_commands_useradd
- audit_rules_media_export
- audit_rules_sudoers
- audit_rules_sudoers_d
Expand Down
31 changes: 16 additions & 15 deletions controls/srg_gpos/SRG-OS-000250-GPOS-00093.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
controls:
- id: SRG-OS-000250-GPOS-00093
levels:
- high
title: {{{ full_name }}} must implement cryptography to protect the integrity
of remote access sessions.
rules:
- file_sshd_50_redhat_exists
- sshd_include_crypto_policy
- harden_sshd_ciphers_openssh_conf_crypto_policy
- harden_sshd_ciphers_opensshserver_conf_crypto_policy
- harden_sshd_macs_openssh_conf_crypto_policy
- harden_sshd_macs_opensshserver_conf_crypto_policy
- sshd_approved_ciphers=stig_rhel9
- sshd_approved_macs=stig_rhel9
status: automated
- id: SRG-OS-000250-GPOS-00093

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to reformat this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe yamllint complained

levels:
- high
title: {{{ full_name }}} must implement cryptography to protect the integrity
of remote access sessions.
rules:
- configure_openssl_crypto_policy
- file_sshd_50_redhat_exists
- sshd_include_crypto_policy
- harden_sshd_ciphers_openssh_conf_crypto_policy
- harden_sshd_ciphers_opensshserver_conf_crypto_policy
- harden_sshd_macs_openssh_conf_crypto_policy
- harden_sshd_macs_opensshserver_conf_crypto_policy
- sshd_approved_ciphers=stig_rhel9
- sshd_approved_macs=stig_rhel9
status: automated
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ srg_requirement: |-
{{{ full_name }}} must generate audit records for successful and unsuccessful uses of the "gpasswd" command.

fixtext: |-
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "gpasswd" command by adding or updating the following rule in "/etc/audit/rules.d/audit.rules":
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "gpasswd" command by adding or updating the following rules in "/etc/audit/rules.d/audit.rules":

-a always,exit -F path=/usr/bin/gpasswd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-gpasswd
-a always,exit -F arch=b32 -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd
-a always,exit -F arch=b64 -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd

Restart the audit daemon with the following command for the changes to take effect:
To load the rules to the kernel immediately, use the following command:

$ sudo service auditd restart
$ sudo augenrules --load

checktext: |-
Verify {{{ full_name }}} is configured to audit the execution of the "gpasswd" command with the following command:
Verify {{{ full_name }}} generates audit records for the execution of the "gpasswd" command with the following command:

$ sudo auditctl -l | grep gpasswd
-a always,exit -S all -F path=/usr/bin/gpasswd -F perm=x -F auid>={{{ uid_min }}} -F auid!=-1 -F key=privileged-gpasswd
$ sudo auditctl -l | grep '/usr/bin/gpasswd'

If the command does not return a line, or the line is commented out, this is a finding.
-a always,exit -F arch=b32 -F path=/usr/bin/gpasswd -F perm=x -F key=privileged-gpasswd
-a always,exit -F arch=b64 -F path=/usr/bin/gpasswd -F perm=x -F key=privileged-gpasswd

If the command does not return these lines, or the lines are commented out, this is a finding.

vuldiscussion: |-
Without generating audit records specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ template:
name: audit_rules_privileged_commands
vars:
path: /usr/bin/gpasswd
key@rhel10: privileged-gpasswd
rhel10_stig_arch_mode@rhel10: 'true'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
Comment thread
Mab879 marked this conversation as resolved.
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the rules with the '-S execve' filter, the shape the RHEL 9 STIG prescribes; the RHEL 10 required rules have no syscall filter, so the scan must fail and the remediation must rewrite them into the plain form (the RHEL 9 to RHEL 10 upgrade case).

{{{ setup_auditctl_environment() }}}

echo "-a always,exit -F arch=b32 -S execve -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd" >> /etc/audit/audit.rules
echo "-a always,exit -F arch=b64 -S execve -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

{{{ setup_auditctl_environment() }}}

echo "-a always,exit -F arch=b32 -F path=/usr/bin/gpasswd -F perm=x -k privileged" >> /etc/audit/audit.rules
echo "-a always,exit -F arch=b64 -F path=/usr/bin/gpasswd -F perm=x -k privileged" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the rules with the '-S execve' filter, the shape the RHEL 9 STIG prescribes; the RHEL 10 required rules have no syscall filter, so the scan must fail and the remediation must rewrite them into the plain form (the RHEL 9 to RHEL 10 upgrade case).

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F arch=b32 -S execve -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd" >> /etc/audit/rules.d/privileged-gpasswd.rules
echo "-a always,exit -F arch=b64 -S execve -F path=/usr/bin/gpasswd -F perm=x -k privileged-gpasswd" >> /etc/audit/rules.d/privileged-gpasswd.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F arch=b32 -F path=/usr/bin/gpasswd -F perm=x -k privileged" >> /etc/audit/rules.d/privileged-gpasswd.rules
echo "-a always,exit -F arch=b64 -F path=/usr/bin/gpasswd -F perm=x -k privileged" >> /etc/audit/rules.d/privileged-gpasswd.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ srg_requirement: |-
{{{ full_name }}} must generate audit records for successful and unsuccessful uses of the "passwd" command.

fixtext: |-
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "passwd" command by adding or updating the following rule in "/etc/audit/rules.d/audit.rules":
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "passwd" command by adding or updating the following rules in "/etc/audit/rules.d/audit.rules":

-a always,exit -F path=/usr/bin/passwd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-passwd
-a always,exit -F arch=b32 -F path=/usr/bin/passwd -F perm=x -k privileged-passwd
-a always,exit -F arch=b64 -F path=/usr/bin/passwd -F perm=x -k privileged-passwd

Restart the audit daemon with the following command for the changes to take effect:
To load the rules to the kernel immediately, use the following command:

$ sudo service auditd restart
$ sudo augenrules --load

checktext: |-
Verify {{{ full_name }}} generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/passwd" with the following command:
Verify {{{ full_name }}} generates audit records for successful and unsuccessful uses of the "passwd" command with the following command:

$ sudo auditctl -l | egrep '(/usr/bin/passwd)'
-a always,exit -S all -F path=/usr/bin/passwd -F perm=x -F auid>={{{ uid_min }}} -F auid!=-1 -F key=privileged-passwd
$ sudo auditctl -l | grep '/usr/bin/passwd'

If the command does not return a line, or the line is commented out, this is a finding.
-a always,exit -F arch=b32 -F path=/usr/bin/passwd -F perm=x -F key=privileged-passwd
-a always,exit -F arch=b64 -F path=/usr/bin/passwd -F perm=x -F key=privileged-passwd

If the command does not return these lines, or the lines are commented out, this is a finding.

vuldiscussion: |-
Without generating audit records specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ template:
name: audit_rules_privileged_commands
vars:
path: /usr/bin/passwd
key@rhel10: privileged-passwd
rhel10_stig_arch_mode@rhel10: 'true'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the rules with the '-S execve' filter, the shape the RHEL 9 STIG prescribes; the RHEL 10 required rules have no syscall filter, so the scan must fail and the remediation must rewrite them into the plain form (the RHEL 9 to RHEL 10 upgrade case).

{{{ setup_auditctl_environment() }}}

echo "-a always,exit -F arch=b32 -S execve -F path=/usr/bin/passwd -F perm=x -k privileged-passwd" >> /etc/audit/audit.rules
echo "-a always,exit -F arch=b64 -S execve -F path=/usr/bin/passwd -F perm=x -k privileged-passwd" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

{{{ setup_auditctl_environment() }}}

echo "-a always,exit -F arch=b32 -F path=/usr/bin/passwd -F perm=x -k privileged" >> /etc/audit/audit.rules
echo "-a always,exit -F arch=b64 -F path=/usr/bin/passwd -F perm=x -k privileged" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the rules with the '-S execve' filter, the shape the RHEL 9 STIG prescribes; the RHEL 10 required rules have no syscall filter, so the scan must fail and the remediation must rewrite them into the plain form (the RHEL 9 to RHEL 10 upgrade case).

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F arch=b32 -S execve -F path=/usr/bin/passwd -F perm=x -k privileged-passwd" >> /etc/audit/rules.d/privileged-passwd.rules
echo "-a always,exit -F arch=b64 -S execve -F path=/usr/bin/passwd -F perm=x -k privileged-passwd" >> /etc/audit/rules.d/privileged-passwd.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F arch=b32 -F path=/usr/bin/passwd -F perm=x -k privileged" >> /etc/audit/rules.d/privileged-passwd.rules
echo "-a always,exit -F arch=b64 -F path=/usr/bin/passwd -F perm=x -k privileged" >> /etc/audit/rules.d/privileged-passwd.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
srg_requirement: |-
{{{ full_name }}} must generate audit records for successful and unsuccessful uses of the "useradd" command.

fixtext: |-
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "useradd" command by adding or updating the following rule in "/etc/audit/rules.d/audit.rules":

-a always,exit -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-useradd

Restart the audit daemon with the following command for the changes to take effect:

$ sudo service auditd restart

checktext: |-
Verify {{{ full_name }}} is configured to audit the execution of the "useradd" command with the following command:

$ sudo auditctl -l | grep useradd
-a always,exit -S all -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=-1 -F key=privileged-useradd

If the command does not return a line, or the line is commented out, this is a finding.

vuldiscussion: |-
Without generating audit records specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.

Audit records can be generated from various components within the information system (e.g., module or policy filter).

When a user logs on, the auid is set to the uid of the account being authenticated. Daemons are not user sessions and have the loginuid set to -1. The auid representation is an unsigned 32-bit integer, which equals 4294967295. The audit system interprets -1, 4294967295, and "unset" in the same way.

The system call rules are loaded into a matching engine that intercepts each system call made by all programs on the system. Therefore, it is very important to use system call rules only when absolutely necessary because these affect performance. More rules lead to poorer performance. The performance can be helped, however, by combining system calls into one rule whenever possible.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rationale: |-
severity: medium

identifiers:
cce@rhel10: CCE-86501-4
cce@sle15: CCE-92614-7
cce@slmicro5: CCE-93661-7

Expand All @@ -32,3 +33,5 @@ template:
name: audit_rules_privileged_commands
vars:
path: /usr/sbin/useradd
key: privileged-useradd

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this @rhel10?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

require_key: 'true'
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-F key' spelling; the scan must fail and the remediation must write the rules with the required key.

{{{ setup_auditctl_environment() }}}

# Start from a clean audit state, like the augenrules variants do
rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules


echo "-a always,exit -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -F key=wrong" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

{{{ setup_auditctl_environment() }}}

# Start from a clean audit state, like the augenrules variants do
rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules


echo "-a always,exit -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -k privileged" >> /etc/audit/audit.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-F key' spelling; the scan must fail and the remediation must write the rules with the required key.

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -F key=wrong" >> /etc/audit/rules.d/useradd.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# platform = Red Hat Enterprise Linux 10
# packages = audit
# Writes the required rule shape but with a wrong audit key in the '-k' spelling, the form the RHEL 9 STIG and the old template default generate; the remediation must not treat the rule as already compliant.

rm -f /etc/audit/rules.d/*.rules
truncate -s 0 /etc/audit/audit.rules

echo "-a always,exit -F path=/usr/sbin/useradd -F perm=x -F auid>={{{ uid_min }}} -F auid!=unset -k privileged" >> /etc/audit/rules.d/useradd.rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ srg_requirement: |-
fixtext: |-
Configure {{{ full_name }}} to generate audit records upon successful and unsuccessful attempts to use the "mount" command by adding or updating the following rule in "/etc/audit/rules.d/audit.rules":

-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export
-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export
-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-mount
-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-mount

Restart the audit daemon with the following command for the changes to take effect:

Expand All @@ -15,8 +15,8 @@ checktext: |-
Verify {{{ full_name }}} is configured to audit the execution of the "mount" command with the following command:

$ sudo auditctl -l | grep mount
-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export
-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export
-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-mount
-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k privileged-mount

If the command does not return a line, or the line is commented out, this is a finding.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ description: |-
the directory <tt>/etc/audit/rules.d</tt>, setting ARCH to either b32 for
32-bit system, or having two lines for both b32 and b64 in case your
system is 64-bit:
<pre>-a always,exit -F arch=ARCH -S mount -F auid&gt;={{{ auid }}} -F auid!=unset -F key=export</pre>
<pre>-a always,exit -F arch=ARCH -S mount -F auid&gt;={{{ auid }}} -F auid!=unset -F key={{{ "privileged-mount" if product == "rhel10" else "export" }}}</pre>
If the <tt>auditd</tt> daemon is configured to use the <tt>auditctl</tt>
utility to read audit rules during daemon startup, add the following line to
<tt>/etc/audit/audit.rules</tt> file, setting ARCH to either b32 for
32-bit system, or having two lines for both b32 and b64 in case your
system is 64-bit:
<pre>-a always,exit -F arch=ARCH -S mount -F auid&gt;={{{ auid }}} -F auid!=unset -F key=export</pre>
<pre>-a always,exit -F arch=ARCH -S mount -F auid&gt;={{{ auid }}} -F auid!=unset -F key={{{ "privileged-mount" if product == "rhel10" else "export" }}}</pre>

rationale: |-
The unauthorized exportation of data to external media could result in an information leak
Expand Down Expand Up @@ -58,7 +58,7 @@ references:
{{{ complete_ocil_entry_audit_syscall(syscall="mount") }}}

fixtext: |-
{{{ fixtext_audit_rules("mount", "export", None) | indent(4) }}}
{{{ fixtext_audit_rules("mount", "privileged-mount" if product == "rhel10" else "export", None) | indent(4) }}}

srg_requirement: '{{{ srg_requirement_audit_syscall("mount") }}}'

Expand All @@ -67,3 +67,4 @@ template:
vars:
attr: mount
key: export
key@rhel10: privileged-mount
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# packages = audit

echo "-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export" >> /etc/audit/rules.d/export.rules

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC the key doesn't matter to our OVAL, maybe just add test for different key?

echo "-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k export" >> /etc/audit/rules.d/export.rules
echo "-a always,exit -F arch=b32 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k {{{ "privileged-mount" if product == "rhel10" else "export" }}}" >> /etc/audit/rules.d/export.rules
echo "-a always,exit -F arch=b64 -S mount -F auid>={{{ uid_min }}} -F auid!=unset -k {{{ "privileged-mount" if product == "rhel10" else "export" }}}" >> /etc/audit/rules.d/export.rules
Loading