STIGQter STIGQter: STIG Summary: Red Hat Enterprise Linux 10 Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 01 Jul 2026:

RHEL 10 must configure SELinux context type to allow the use of a nondefault faillock tally directory.

DISA Rule

SV-281252r1166708_rule

Vulnerability Number

V-281252

Group Title

SRG-OS-000021-GPOS-00005

Rule Version

RHEL-10-700430

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure RHEL 10 to allow the use of a nondefault faillock tally directory while SELinux enforces a targeted policy.

Enable the feature using the following command:

$ sudo authselect enable-feature with-faillock

Create a nondefault faillock tally directory (if it does not already exist) with the following example:

$ sudo mkdir /var/log/faillock

Add/modify the "/etc/security/faillock.conf" file to match the following line:

dir = /var/log/faillock

Update "/etc/selinux/targeted/contexts/files/file_contexts.local" with "faillog_t" context type for the nondefault faillock tally directory with the following command:

$ sudo semanage fcontext -a -t faillog_t "/var/log/faillock(/.*)?"

Update the context type of the nondefault faillock directory/subdirectories and files with the following command:

$ sudo restorecon -R -v /var/log/faillock

Check Contents

Note: If the system does not have SELinux enabled and enforcing a targeted policy, or if the pam_faillock module is not configured for use, this requirement is not applicable.

Verify RHEL 10 SELinux context type allows the use of a nondefault faillock tally directory.

Verify the location of the nondefault tally directory for the pam_faillock module with the following command:

$ sudo grep -w dir /etc/security/faillock.conf
dir = /var/log/faillock

Check the security context type of the nondefault tally directory with the following command:

$ ls -Zd /var/log/faillock
unconfined_u:object_r:faillog_t:s0 /var/log/faillock

If the security context type of the nondefault tally directory is not "faillog_t", this is a finding.

Vulnerability Number

V-281252

Documentable

False

Rule Version

RHEL-10-700430

Severity Override Guidance

Note: If the system does not have SELinux enabled and enforcing a targeted policy, or if the pam_faillock module is not configured for use, this requirement is not applicable.

Verify RHEL 10 SELinux context type allows the use of a nondefault faillock tally directory.

Verify the location of the nondefault tally directory for the pam_faillock module with the following command:

$ sudo grep -w dir /etc/security/faillock.conf
dir = /var/log/faillock

Check the security context type of the nondefault tally directory with the following command:

$ ls -Zd /var/log/faillock
unconfined_u:object_r:faillog_t:s0 /var/log/faillock

If the security context type of the nondefault tally directory is not "faillog_t", this is a finding.

Check Content Reference

M

Target Key

5733