mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 11:16:06 -04:00
remount /home /tmp /dev/shm /run with nosuid,nodev (default) and noexec (opt-in)
https://forums.whonix.org/t/re-mount-home-and-other-with-noexec-and-nosuid-among-other-useful-mount-options-for-better-security/7707
This commit is contained in:
parent
8cf5ed990a
commit
470cad6e91
3 changed files with 105 additions and 0 deletions
17
lib/systemd/system/remount-secure.service
Normal file
17
lib/systemd/system/remount-secure.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
[Unit]
|
||||
Description=remount /home /tmp /dev/shm /run with nosuid,nodev (default) and noexec (opt-in)
|
||||
Documentation=https://github.com/Whonix/security-misc
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
Requires=local-fs.target
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/lib/security-misc/remount-secure
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
Loading…
Add table
Add a link
Reference in a new issue