Skip to content

Commit

Permalink
Revert "remove no longer required remount-service systemd unit"
Browse files Browse the repository at this point in the history
This reverts commit 479ab61.

Kicksecure#152
  • Loading branch information
adrelanos committed Nov 6, 2023
1 parent 24b4d59 commit 95d1cfb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/systemd/system-preset/50-security-misc.preset
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ disable hide-hardware-info.service
## Disable for now until development finished / tested.
disable permission-hardening.service

## Disable for now until development finished / tested.
disable remount-secure.service

## Disable due to pkexec issues.
disable proc-hidepid.service
21 changes: 21 additions & 0 deletions lib/systemd/system/remount-secure.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Copyright (C) 2019 - 2023 ENCRYPTED SUPPORT LP <[email protected]>
## 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/Kicksecure/security-misc

DefaultDependencies=no
Before=sysinit.target
Requires=local-fs.target
After=local-fs.target

After=qubes-sysinit.service

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/remount-secure

[Install]
WantedBy=sysinit.target

0 comments on commit 95d1cfb

Please sign in to comment.