Skip to content

Commit

Permalink
Backup /etc/rc.d/rc.S in hidepid=2 task (Slackware)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Aug 2, 2024
1 parent acaabd3 commit 4d1513d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/filesystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
regexp: '^(\s*/sbin/mount -v proc /proc -n -t proc).*$'
replace: '\g<1> -o hidepid=2,gid={{ getent_group.polkitd[1] }} 2> /dev/null'
validate: '/bin/grep "^\s*/sbin/mount -v proc /proc -n -t proc -o hidepid=2,gid={{ getent_group.polkitd[1] }} 2> /dev/null$" %s'
backup: true
tags: configuration
- name: Fix mkinitrd so initrd image uses hardened mount options for /proc and /dev
ansible.builtin.blockinfile:
Expand Down

0 comments on commit 4d1513d

Please sign in to comment.