Configuration

Multifunction element for specialized file creation and editing (by line or by parameter on matching line,) in addition to running kernel parameters and kernel configuration.

Special character usage:

< when combined with a phrase will be used to place the content above the line matching in the <Where> element. When combined with a single word, it will be used to place content to the left of the matching word.

> when combined with a phrase will be used to place the content below the line matching in the <Where> element. When combined with a single word will be used to place content to the right of the matching word.

In this case we are writing account required pam_faillock.so after the line containing account required pam_permit.so

In order to be properly parsed within the XML the > symbol must be converted to the HTML / XML escape value &gt;

<Group> <GroupId>V-230333 Part 15 of 18</GroupId> <GroupTitle>SRG-OS-000021-GPOS-00005</GroupTitle> <RuleId>SV-230333r743966_rule</RuleId> <Severity>CAT II</Severity> <RuleVersion>RHEL-08-020011</RuleVersion> <RuleTitle>RHEL 8 must automatically lock an account when three unsuccessful logon attempts occur.</RuleTitle> <Where>/etc/authselect/system-auth &gt; account required pam_permit.so</Where> <Applied>account required pam_faillock.so</Applied> <Type>Configuration</Type> <Value>account required pam_faillock.so</Value> <Ignore>case,space</Ignore> <IgnoreReason></IgnoreReason> </Group>

Content

This control is used for writing multi-line content to files.

<Group> <GroupId>V-204395</GroupId> <GroupTitle>SRG-OS-000023-GPOS-00006</GroupTitle> <RuleId>SV-204395r603261_rule</RuleId> <Severity>CAT II</Severity> <RuleVersion>RHEL-07-010050</RuleVersion> <RuleTitle>The Red Hat Enterprise Linux operating system must display the Standard Mandatory DoD Notice and Consent Banner before granting local or remote access to the system via a command line user logon.</RuleTitle> <Where>/etc/issue</Where> <Applied></Applied> <Type>Configuration:content</Type> <Value>You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.\r\nBy using this IS (which includes any device attached to this IS), you consent to the following conditions:\r\n-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.\r\n-At any time, the USG may inspect and seize data stored on this IS.\r\n-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.\r\n-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.\r\n-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.</Value> <Ignore>case,space</Ignore> <IgnoreReason></IgnoreReason> </Group>

Parameter

Editing individual parameters or toggles inside of configuration files. The <Applied> line contains what is being searched for and the <Value> to verify the setting.

<Group> <GroupId>V-204448</GroupId> <GroupTitle>SRG-OS-000366-GPOS-00153</GroupTitle> <RuleId>SV-204448r877463_rule</RuleId> <Severity>CAT I</Severity> <RuleVersion>RHEL-07-020060</RuleVersion> <RuleTitle>The Red Hat Enterprise Linux operating system must prevent the installation of software, patches, service packs, device drivers, or operating system components of local packages without verification they have been digitally signed using a certificate that is issued by a Certificate Authority (CA) that is recognized and approved by the organization.</RuleTitle> <Where>/etc/yum.conf</Where> <Applied>localpkg_gpgcheck=1['[main]','http_caching=packages']</Applied> <Type>Configuration:parameter</Type> <Value>localpkg_gpgcheck=1</Value> <Ignore>case,space</Ignore> <IgnoreReason></IgnoreReason> </Group>

Kernel

Used for searching & writing Linux kernel runtime values in systemctl and /etc/sysctl.conf

Runtime

Runtime provides a basic interface to check for and allow services to start on boot.

Related pages