be68cca
[Unit]
be68cca
Description=Reset SELinux policy to factory default
be68cca
DefaultDependencies=no
be68cca
Requires=local-fs.target
be68cca
Conflicts=shutdown.target
be68cca
After=local-fs.target
be68cca
Before=sysinit.target shutdown.target
be68cca
ConditionSecurity=selinux
be68cca
ConditionKernelCommandLine=|selinux-factory-reset
be68cca
ConditionPathExists=|!/var/lib/selinux/%I/active/policy.kern
be68cca
be68cca
[Service]
be68cca
ExecStart=/usr/libexec/selinux/selinux-factory-reset %I
be68cca
Type=oneshot
be68cca
TimeoutSec=0
be68cca
RemainAfterExit=yes
be68cca
StandardInput=tty