systemd RemainAfterExit=yes

for better usability

https://forums.whonix.org/t/restrict-hardware-information-to-root-testers-wanted/8618/33
This commit is contained in:
Patrick Schleizer 2021-04-03 11:44:13 -04:00
parent e8ea94325b
commit 41734ec523
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
5 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,7 @@ After=local-fs.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/lib/security-misc/hide-hardware-info ExecStart=/usr/lib/security-misc/hide-hardware-info
RemainAfterExit=yes
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

View File

@ -14,6 +14,7 @@ After=local-fs.target
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/lib/security-misc/permission-hardening ExecStart=/usr/lib/security-misc/permission-hardening
RemainAfterExit=yes
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

View File

@ -12,6 +12,7 @@ After=local-fs.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/bin/mount -o remount,nosuid,nodev,noexec,hidepid=2 /proc ExecStart=/bin/mount -o remount,nosuid,nodev,noexec,hidepid=2 /proc
RemainAfterExit=yes
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

View File

@ -16,6 +16,7 @@ After=qubes-sysinit.service
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/lib/security-misc/remount-secure ExecStart=/usr/lib/security-misc/remount-secure
RemainAfterExit=yes
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

View File

@ -12,6 +12,7 @@ After=local-fs.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/lib/security-misc/remove-system.map ExecStart=/usr/lib/security-misc/remove-system.map
RemainAfterExit=yes
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target