[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 ExecStart=bash -c '[ -f $IMA_SECFS_POLICY ] && [ -f $IMA_POLICY ] && cat $IMA_POLICY > $IMA_SECFS_POLICY' TimeoutStartSec=0 [Install] WantedBy=basic.target