2017-04-17 14:21:07 -04:00
|
|
|
[Unit]
|
2018-03-29 02:57:06 -04:00
|
|
|
Description=Protect Qubes VM execution environment at startup
|
2018-04-12 15:24:46 -04:00
|
|
|
Documentation=https://github.com/tasket/Qubes-VM-hardening
|
2017-04-20 19:20:25 -04:00
|
|
|
After=qubes-sysinit.service
|
2017-04-21 11:26:55 -04:00
|
|
|
Before=qubes-mount-dirs.service
|
|
|
|
DefaultDependencies=false
|
2018-03-29 23:52:43 -04:00
|
|
|
#OnFailure=rescue.target
|
|
|
|
#OnFailureJobMode=replace-irreversibly
|
2017-04-17 14:21:07 -04:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=no
|
2018-03-29 09:54:31 -04:00
|
|
|
# privdirs must begin with /rw
|
2018-03-29 23:52:43 -04:00
|
|
|
# Environment="privdirs=/rw/config /rw/usrlocal /rw/bind-dirs"
|
2018-03-29 02:57:06 -04:00
|
|
|
ExecStart=/usr/lib/qubes/init/vm-boot-protect.sh
|
2018-04-02 10:55:55 -04:00
|
|
|
Restart=no
|
2017-04-17 14:21:07 -04:00
|
|
|
|
|
|
|
[Install]
|
2017-04-20 19:20:25 -04:00
|
|
|
WantedBy=sysinit.target
|