14 lines
357 B
Desktop File
14 lines
357 B
Desktop File
[Unit]
|
|
Description=Load the IMA Policy
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
Environment=IMA_SECFS_POLICY=/sys/kernel/security/ima/policy
|
|
Environment=IMA_POLICY=/etc/ima/ima-policy.POST-SYSTEMD
|
|
ExecStart=bash -c '[ -f $IMA_SECFS_POLICY ] && [ -f $IMA_POLICY ] && cat $IMA_POLICY > $IMA_SECFS_POLICY'
|
|
TimeoutStartSec=0
|
|
|
|
[Install]
|
|
WantedBy=basic.target
|