mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
Merge pull request #22 from rbkmoney/proc-hidepid
mount /proc with hidepid=2 option
This commit is contained in:
commit
7d4db6fd72
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
|
Loading…
Reference in New Issue
Block a user