integrity/ima-policy-load.sh: s/echo -n/printf

master
Harald Hoyer 2016-10-20 13:58:25 +02:00
parent b08ad7f7d8
commit fc44fdb5ac
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ load_ima_policy()
# check the existence of the IMA policy file
[ -f "${IMAPOLICYPATH}" ] && {
info "Loading the provided IMA custom policy";
echo -n "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
printf '%s' "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
cat "${IMAPOLICYPATH}" > ${IMASECDIR}/policy
}