Blame 0136-integrity-ima-policy-load.sh-s-echo-n-printf.patch
|
Harald Hoyer |
53404a |
From fc44fdb5ac0bf73377439a9ea1458f235033f3ea Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53404a |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53404a |
Date: Thu, 20 Oct 2016 13:58:25 +0200
|
|
Harald Hoyer |
53404a |
Subject: [PATCH] integrity/ima-policy-load.sh: s/echo -n/printf
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
---
|
|
Harald Hoyer |
53404a |
modules.d/98integrity/ima-policy-load.sh | 2 +-
|
|
Harald Hoyer |
53404a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
53404a |
|
|
Harald Hoyer |
53404a |
diff --git a/modules.d/98integrity/ima-policy-load.sh b/modules.d/98integrity/ima-policy-load.sh
|
|
Harald Hoyer |
53404a |
index 5460d02..85cd3b9 100755
|
|
Harald Hoyer |
53404a |
--- a/modules.d/98integrity/ima-policy-load.sh
|
|
Harald Hoyer |
53404a |
+++ b/modules.d/98integrity/ima-policy-load.sh
|
|
Harald Hoyer |
53404a |
@@ -30,7 +30,7 @@ load_ima_policy()
|
|
Harald Hoyer |
53404a |
# check the existence of the IMA policy file
|
|
Harald Hoyer |
53404a |
[ -f "${IMAPOLICYPATH}" ] && {
|
|
Harald Hoyer |
53404a |
info "Loading the provided IMA custom policy";
|
|
Harald Hoyer |
53404a |
- echo -n "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
|
|
Harald Hoyer |
53404a |
+ printf '%s' "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
|
|
Harald Hoyer |
53404a |
cat "${IMAPOLICYPATH}" > ${IMASECDIR}/policy
|
|
Harald Hoyer |
53404a |
}
|
|
Harald Hoyer |
53404a |
|