* [LTP] [COMMITTED] [PATCH 1/1] ima/ima_measurements.sh: Add info about tests expecting tcb policy
@ 2018-04-27 13:43 Petr Vorel
2018-04-27 13:46 ` Mimi Zohar
0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2018-04-27 13:43 UTC (permalink / raw)
To: ltp
IMA tests assume tcb policy [1]. But only measurement tests are failing,
let's puts the info only for them.
This should be better detected [1] as after tests running for first time
tcb policy is loaded by ima_policy.sh test.
Suggested-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
[1] https://lists.linux.it/pipermail/ltp/2018-April/007924.html
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/security/integrity/ima/tests/ima_measurements.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh b/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
index 294e29d30..88eabd2a3 100755
--- a/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
+++ b/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
@@ -37,6 +37,8 @@ setup()
DIGEST_INDEX=
grep -q "ima-ng" $ASCII_MEASUREMENTS && DIGEST_INDEX=1
grep -q "ima-sig" $ASCII_MEASUREMENTS && DIGEST_INDEX=2
+
+ tst_res TINFO "IMA measurement tests assume tcb policy to be loaded (ima_policy=tbc)"
}
# TODO: find support for rmd128 rmd256 rmd320 wp256 wp384 tgr128 tgr160
--
2.16.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [COMMITTED] [PATCH 1/1] ima/ima_measurements.sh: Add info about tests expecting tcb policy
2018-04-27 13:43 [LTP] [COMMITTED] [PATCH 1/1] ima/ima_measurements.sh: Add info about tests expecting tcb policy Petr Vorel
@ 2018-04-27 13:46 ` Mimi Zohar
2018-05-01 14:02 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: Mimi Zohar @ 2018-04-27 13:46 UTC (permalink / raw)
To: ltp
On Fri, 2018-04-27 at 15:43 +0200, Petr Vorel wrote:
> IMA tests assume tcb policy [1]. But only measurement tests are failing,
> let's puts the info only for them.
>
> This should be better detected [1] as after tests running for first time
> tcb policy is loaded by ima_policy.sh test.
>
> Suggested-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
>
> [1] https://lists.linux.it/pipermail/ltp/2018-April/007924.html
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/kernel/security/integrity/ima/tests/ima_measurements.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh b/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
> index 294e29d30..88eabd2a3 100755
> --- a/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
> +++ b/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
> @@ -37,6 +37,8 @@ setup()
> DIGEST_INDEX=
> grep -q "ima-ng" $ASCII_MEASUREMENTS && DIGEST_INDEX=1
> grep -q "ima-sig" $ASCII_MEASUREMENTS && DIGEST_INDEX=2
> +
> + tst_res TINFO "IMA measurement tests assume tcb policy to be loaded (ima_policy=tbc)"
> }
^tcb
> # TODO: find support for rmd128 rmd256 rmd320 wp256 wp384 tgr128 tgr160
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-01 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-27 13:43 [LTP] [COMMITTED] [PATCH 1/1] ima/ima_measurements.sh: Add info about tests expecting tcb policy Petr Vorel
2018-04-27 13:46 ` Mimi Zohar
2018-05-01 14:02 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox