mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2026-03-25 14:27:12 +00:00
Update .j2 branding
Signed-off-by: Frederick Witty <frederick.witty@gotyto.com>
This commit is contained in:
parent
71206432be
commit
f413385208
40 changed files with 53 additions and 50 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# Audit Tools
|
||||
/sbin/auditctl p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/auditd p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
# CIS Hardening Carried out
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
[lockdown_details]
|
||||
# Benchmark release
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{{ ansible_managed | comment }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
# Use public servers from the pool.ntp.org project.
|
||||
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# Run AIDE integrity check
|
||||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
### YOUR CHANGES WILL BE LOST!
|
||||
# CIS 1.3.2
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy dropping the SHA1 hash and signature support
|
||||
# Carried out as part of CIS Benchmark rule 1.6.3
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy to disable all CBC mode ciphers
|
||||
# for the SSH protocol (libssh and OpenSSH)
|
||||
# Carried out as part of CIS Benchmark rule 1.6.5
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy to disable Encrypt then MAC
|
||||
# for the SSH protocol (libssh and OpenSSH)
|
||||
# Carried out as part of CIS Benchmark rule 1.6.7
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy to disable weak ciphers
|
||||
# for the SSH protocol (libssh and OpenSSH)
|
||||
# Carried out as part of CIS Benchmark rules combined 1.6.6 and 5.1.4
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy to disable weak macs
|
||||
# Carried out as part of CIS Benchmark control 5.1.6
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# This is a subpolicy to disable weak macs
|
||||
# Carried out as part of CIS Benchmark rule 1.6.4
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
# Lock desktop media-handling automount setting
|
||||
/org/gnome/desktop/media-handling/automount
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
# Lock desktop media-handling settings
|
||||
/org/gnome/desktop/media-handling/autorun-never
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
[org/gnome/desktop/media-handling]
|
||||
automount=false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
[org/gnome/desktop/media-handling]
|
||||
autorun-never=true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
# Specify the dconf path
|
||||
[org/gnome/desktop/session]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
# Lock desktop screensaver idle-delay setting
|
||||
/org/gnome/desktop/session/idle-delay
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
## Ansible controlled file
|
||||
# Added as part of ansible-lockdown CIS baseline
|
||||
# provided by {{ company_title }}
|
||||
{{ file_managed_by_ansible }}
|
||||
|
||||
[org/gnome/login-screen]
|
||||
banner-message-enable=true
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
/var/log/rsyslog/*.log {
|
||||
{{ rhel9cis_rsyslog_logrotate_rotated_when }}
|
||||
rotate {{ rhel9cis_rsyslog_logrotate_rotatation_keep }}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
# Disable usage of protocol {{ item }}
|
||||
# Set by ansible {{ benchmark }} remediation role
|
||||
# https://github.com/ansible-lockdown
|
||||
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
||||
{{ file_managed_by_ansible }}
|
||||
## YOUR CHANGES WILL BE LOST!
|
||||
|
||||
install {{ item }} /bin/true
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.3 Ensure password complexity is configured
|
||||
{% if rhel9cis_passwd_complex_option == 'minclass' %} # pragma: allowlist secret
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.6 Ensure password dictionary check is enabled
|
||||
dictcheck = {{ rhel9cis_passwd_dictcheck_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.1 Ensure password number of changed characters is configured
|
||||
difok = {{ rhel9cis_passwd_difok_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.2 Ensure minimum password length is configured
|
||||
minlen = {{ rhel9cis_passwd_minlen_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.5 Ensure password maximum sequential characters is configured
|
||||
maxsequence = {{ rhel9cis_passwd_maxsequence_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.7 Ensure password quality checking is enforced
|
||||
enforcing = {{ rhel9cis_passwd_quality_enforce_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.4 Ensure password same consecutive characters is configured
|
||||
maxrepeat = {{ rhel9cis_passwd_maxrepeat_value }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# CIS Configurations
|
||||
# 5.3.3.2.7 Ensure password quality is enforced for the root user
|
||||
{{ rhel9cis_passwd_quality_enforce_root_value }}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
||||
{{ file_managed_by_ansible }}
|
||||
## YOUR CHANGES WILL BE LOST!
|
||||
|
||||
# IPv6 disable
|
||||
{% if rhel9cis_rule_3_1_1 and not rhel9cis_ipv6_required %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
||||
{{ file_managed_by_ansible }}
|
||||
## YOUR CHANGES WILL BE LOST!
|
||||
|
||||
{% if rhel9cis_rule_1_5_1 %}
|
||||
# Adress space randomise
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
||||
{{ file_managed_by_ansible }}
|
||||
## YOUR CHANGES WILL BE LOST!
|
||||
|
||||
# IPv4 Network sysctl
|
||||
{% if rhel9cis_rule_3_3_1 %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
## This file is managed by Ansible, YOUR CHANGES WILL BE LOST!
|
||||
{{ file_managed_by_ansible }}
|
||||
## YOUR CHANGES WILL BE LOST!
|
||||
|
||||
# IPv6 Network sysctl
|
||||
{% if rhel9cis_ipv6_required %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# File created for CIS benchmark
|
||||
{{ file_managed_by_ansible }}
|
||||
# CIS rule 6_2_2_2
|
||||
[Journal]
|
||||
ForwardToSyslog=no
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# File created for CIS benchmark
|
||||
{{ file_managed_by_ansible }}
|
||||
# CIS rule 6_2_1_3
|
||||
[Journal]
|
||||
SystemMaxUse={{ rhel9cis_journald_systemmaxuse }}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# File created for CIS benchmark
|
||||
{{ file_managed_by_ansible }}
|
||||
[Journal]
|
||||
{% if rhel9cis_rule_6_2_2_3 %}
|
||||
# Set compress CIS rule 6_2_2_3
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ file_managed_by_ansible }}
|
||||
# SPDX-License-Identifier: LGPL-2.1+
|
||||
#
|
||||
# This file is part of systemd.
|
||||
|
|
@ -7,7 +8,7 @@
|
|||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
## This file is managed by Ansible, YOUR CHANGED WILL BE LOST!
|
||||
## YOUR CHANGED WILL BE LOST!
|
||||
|
||||
[Unit]
|
||||
Description=Temporary Directory (/tmp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue