* fix ansible-lint issue https://github.com/ansible-community/ansible-lint/issues/1795 Signed-off-by: rndmh3ro <[email protected]> * move 2 sysctls to debian specific Signed-off-by: rndmh3ro <[email protected]> * fix ansible-lint issue https://github.com/ansible-community/ansible-lint/issues/1795 Signed-off-by: rndmh3ro <[email protected]> * add arch linux sysctls * simplify sysctl settings Signed-off-by: rndmh3ro <[email protected]> * ove overwrite to the bottom to let it acutally overwrite something Signed-off-by: rndmh3ro <[email protected]> * fix typo Signed-off-by: rndmh3ro <[email protected]>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
---
|
|
|
|
os_packages_pam_ccreds: 'libpam-ccreds'
|
|
os_nologin_shell_path: '/usr/sbin/nologin'
|
|
|
|
# Different distros use different standards for /etc/shadow perms, e.g.
|
|
# RHEL derivatives use root:root 0000, whereas Debian-based use root:shadow 0640.
|
|
# You must provide key/value pairs for owner, group, and mode if overriding.
|
|
os_shadow_perms:
|
|
owner: root
|
|
group: shadow
|
|
mode: '0640'
|
|
|
|
os_passwd_perms:
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
|
|
os_env_umask: '027'
|
|
|
|
os_auth_uid_min: 1000
|
|
os_auth_uid_max: 60000
|
|
os_auth_gid_min: 1000
|
|
os_auth_gid_max: 60000
|
|
os_auth_sys_uid_min: 100
|
|
os_auth_sys_uid_max: 999
|
|
os_auth_sys_gid_min: 100
|
|
os_auth_sys_gid_max: 999
|
|
os_auth_sub_uid_min: 100000
|
|
os_auth_sub_uid_max: 600100000
|
|
os_auth_sub_uid_count: 65536
|
|
os_auth_sub_gid_min: 100000
|
|
os_auth_sub_gid_max: 600100000
|
|
os_auth_sub_gid_count: 65536
|
|
|
|
# defaults for useradd
|
|
os_useradd_mail_dir: /var/mail
|
|
|
|
modprobe_package: 'kmod'
|
|
auditd_package: 'auditd'
|
|
|
|
tally2_path: '/usr/share/pam-configs/tally2'
|
|
passwdqc_path: '/usr/share/pam-configs/passwdqc'
|
|
|
|
hidepid_option: '2' # allowed values: 0, 1, 2
|
|
|
|
sysctl_custom_config:
|
|
# Mitigation of vulnerability CVE-2021-33909
|
|
kernel.unprivileged_userns_clone: 0
|
|
# Mitigation of vulnerability CVE-2021-33910
|
|
kernel.unprivileged_bpf_disabled: 1
|