mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
mount /proc with hidepid=2 option
This commit is contained in:
parent
217b4cfc06
commit
43bd01a374
27
sls/gentoo/hardening.sls
Normal file
27
sls/gentoo/hardening.sls
Normal file
@ -0,0 +1,27 @@
|
||||
proc_view:
|
||||
group.present:
|
||||
- gid: 391
|
||||
- system: True
|
||||
{%- if salt['cmd.retcode']('id polkitd') == 0 %}
|
||||
- addusers:
|
||||
- polkitd
|
||||
{%- endif %}
|
||||
|
||||
/proc:
|
||||
mount.mounted:
|
||||
- device: proc
|
||||
- fstype: proc
|
||||
- dump: 0
|
||||
- pass_num: 0
|
||||
- persist: True
|
||||
- mkmnt: True
|
||||
- opts:
|
||||
- defaults
|
||||
- nosuid
|
||||
- nodev
|
||||
- noexec
|
||||
- relatime
|
||||
- hidepid=2
|
||||
- gid=391
|
||||
- require:
|
||||
- group: proc_view
|
@ -4,4 +4,5 @@ include:
|
||||
- gentoo.repos.gentoo
|
||||
- gentoo.profile
|
||||
- gentoo.makeconf
|
||||
- gentoo.hardening
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user