98integrity: support validating the IMA policy file signature
master
Harald Hoyer 2016-10-14 11:34:39 +02:00 committed by GitHub
commit a69d137338
1 changed files with 2 additions and 1 deletions

View File

@ -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