diff options
author | Ming Liu <liu.ming50@gmail.com> | 2021-02-20 13:18:21 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-02-23 20:34:51 -0800 |
commit | ffab25f929d8e78a909e1a2b362c05be83dee4bf (patch) | |
tree | a249480344cf0c79f4d7a66037a3e5e0efd6d659 | |
parent | 4dc646c8cee3774e32011db534cc9f4fb8915fa3 (diff) | |
download | meta-security-ffab25f929d8e78a909e1a2b362c05be83dee4bf.tar.gz |
initramfs-framework-ima: let ima_enabled return 0
Otherwise, ima script would not run as intended.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima index 16ed53f..cff26a3 100644 --- a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima +++ b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima/ima | |||
@@ -6,6 +6,7 @@ ima_enabled() { | |||
6 | if [ "$bootparam_no_ima" = "true" ]; then | 6 | if [ "$bootparam_no_ima" = "true" ]; then |
7 | return 1 | 7 | return 1 |
8 | fi | 8 | fi |
9 | return 0 | ||
9 | } | 10 | } |
10 | 11 | ||
11 | ima_run() { | 12 | ima_run() { |