Merge pull request #22 from rbkmoney/proc-hidepid

mount /proc with hidepid=2 option
This commit is contained in:
Alexander Miroshnichenko 2019-07-15 16:55:52 +03:00 committed by GitHub
commit 7d4db6fd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
sls/gentoo/hardening.sls Normal file
View 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