diff options
author | Ming Liu <liu.ming50@gmail.com> | 2021-02-20 13:18:16 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-02-23 20:34:51 -0800 |
commit | 0f34b25763de5286cb775f062942fe59eeef7f59 (patch) | |
tree | 202adabc1677d6f581850ccaf3732417b2326436 | |
parent | ca1c2086ad3b241db84b170726efe86f7c500632 (diff) | |
download | meta-security-0f34b25763de5286cb775f062942fe59eeef7f59.tar.gz |
initramfs-framework-ima: fix a wrong path
/etc/ima-policy > /etc/ima/ima-policy.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima index 8616f99..16ed53f 100644 --- a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima +++ b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima | |||
@@ -46,7 +46,7 @@ ima_run() { | |||
46 | # ("[Linux-ima-user] IMA policy loading via cat") and we get better error reporting when | 46 | # ("[Linux-ima-user] IMA policy loading via cat") and we get better error reporting when |
47 | # checking the write of each line. To minimize the risk of policy loading going wrong we | 47 | # checking the write of each line. To minimize the risk of policy loading going wrong we |
48 | # also remove comments and blank lines ourselves. | 48 | # also remove comments and blank lines ourselves. |
49 | if ! (set -e; while read i; do if echo "$i" | grep -q -e '^#' -e '^ *$'; then debug "Skipping IMA policy: $i"; else debug "Writing IMA policy: $i"; if echo $i; then sleep ${bootparam_ima_delay:-0}; else fatal "Invalid line in IMA policy: $i"; exit 1; fi; fi; done) </etc/ima-policy >/sys/kernel/security/ima/policy; then | 49 | if ! (set -e; while read i; do if echo "$i" | grep -q -e '^#' -e '^ *$'; then debug "Skipping IMA policy: $i"; else debug "Writing IMA policy: $i"; if echo $i; then sleep ${bootparam_ima_delay:-0}; else fatal "Invalid line in IMA policy: $i"; exit 1; fi; fi; done) </etc/ima/ima-policy >/sys/kernel/security/ima/policy; then |
50 | fatal "Could not load IMA policy." | 50 | fatal "Could not load IMA policy." |
51 | fi | 51 | fi |
52 | } | 52 | } |