STIGQter STIGQter: STIG Summary: Oracle Linux 9 Security Technical Implementation Guide Version: 1 Release: 6 Benchmark Date: 01 Jul 2026:

OL 9 must elevate the SELinux context when an administrator calls the sudo command.

DISA Rule

SV-284946r1208737_rule

Vulnerability Number

V-284946

Group Title

SRG-OS-000324-GPOS-00125

Rule Version

OL09-00-000066

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure OL 9 to elevate the SELinux context when an administrator calls the sudo command.

Edit a file in the "/etc/sudoers.d" directory with the following command:

# sudo visudo -f /etc/sudoers.d/

Use the following example to build the file in the "/etc/sudoers.d" directory to allow any administrator belonging to a designated sudoers admin group to elevate their SELinux context with the use of the sudo command:

{%designated_group} or {user_name} ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r {commands}

The following are valid examples of context configurations and can be used as a guide:

%designated_group ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL -- Allowing group to run ALL commands
%designated_group ALL=(ALL) ROLE=sysadm_r TYPE=sysadm_t ALL -- Allowing group to run ALL commands, but order of SELinux entries is changed.
%designated_group ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL, !/bin/su -- Allowing ALL command except /bin/su.
user_name ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL -- Allowing user to run ALL commands
user_name ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r /usr/bin/lsblk, /usr/sbin/alternatives -- Allowing user to only run /usr/bin/lsblk and /usr/sbin/alternatives

Remove any configurations that conflict with the above from the following locations:

/etc/sudoers
/etc/sudoers.d/

Check Contents

Verify OL 9 elevates the SELinux context when an administrator calls the sudo command with the following command:

This command must be run as root:

# sudo grep -r sysadm_r /etc/sudoers /etc/sudoers.d
{%designated_group} or {user_name} ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r {commands}

If a designated sudoers administrator group or account(s) is not configured to elevate the SELinux type and role to "sysadm_t" and "sysadm_r" with the use of the sudo command, this is a finding.

Vulnerability Number

V-284946

Documentable

False

Rule Version

OL09-00-000066

Severity Override Guidance

Verify OL 9 elevates the SELinux context when an administrator calls the sudo command with the following command:

This command must be run as root:

# sudo grep -r sysadm_r /etc/sudoers /etc/sudoers.d
{%designated_group} or {user_name} ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r {commands}

If a designated sudoers administrator group or account(s) is not configured to elevate the SELinux type and role to "sysadm_t" and "sysadm_r" with the use of the sudo command, this is a finding.

Check Content Reference

M

Target Key

5680