Merge pull request #158 from dracut-mailing-devs/1476391783-27231-1-git-send-email-stefanb@linux.vnet.ibm.com
98integrity: support validating the IMA policy file signaturemaster
commit
a69d137338
|
|
@ -30,7 +30,8 @@ load_ima_policy()
|
|||
# check the existence of the IMA policy file
|
||||
[ -f "${IMAPOLICYPATH}" ] && {
|
||||
info "Loading the provided IMA custom policy";
|
||||
cat ${IMAPOLICYPATH} > ${IMASECDIR}/policy;
|
||||
echo -n "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
|
||||
cat "${IMAPOLICYPATH}" > ${IMASECDIR}/policy
|
||||
}
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue