security-misc/usr/lib/systemd/system/proc-hidepid.service

20 lines
476 B
SYSTEMD
Raw Normal View History

2024-05-10 23:18:36 -04:00
## Copyright (C) 2019 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
2019-06-30 09:22:43 -04:00
## See the file COPYING for copying conditions.
2019-06-29 18:27:24 -04:00
[Unit]
Description=Mounts /proc with hidepid=2
2023-10-22 05:41:56 -04:00
Documentation=https://github.com/Kicksecure/security-misc
2023-11-05 20:13:14 -05:00
2019-09-10 12:23:00 -04:00
DefaultDependencies=no
Before=sysinit.target
2019-06-29 18:27:24 -04:00
Requires=local-fs.target
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/bin/mount -o remount,nosuid,nodev,noexec,hidepid=2,gid=proc /proc
RemainAfterExit=yes
2019-06-29 18:27:24 -04:00
[Install]
WantedBy=sysinit.target