Skip to content

Commit

Permalink
Merge pull request dev-sec#494 from dev-sec/sysctl-34
Browse files Browse the repository at this point in the history
implement sysctl-34 - link protection settings
  • Loading branch information
schurzi committed Oct 24, 2021
2 parents e60c035 + bea8e92 commit e088a93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/os_hardening/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,16 @@ sysctl_config:
# Mitigates CVE-2021-33909 and other exploits.
kernel.unprivileged_userns_clone: 0

# For more info on the following settings see: https://www.kernel.org/doc/html/latest/admin-guide/sysctl/fs.html
# Restrict FIFO special device creation behavior
fs.protected_fifos: 1
# Restrict hardlink creation behavior
fs.protected_hardlinks: 1
# Restrict regular files creation behavior
fs.protected_regular: 2
# Restrict symlink following behavior
fs.protected_symlinks: 1

# Do not delete the following line or otherwise the playbook will fail
# at task 'create a combined sysctl-dict if overwrites are defined'
sysctl_overwrite:
Expand Down

0 comments on commit e088a93

Please sign in to comment.