[LTP] [PATCH v2 2/2] ima_policy.sh: Require kernel 4.5+ for test02
Mimi Zohar
zohar@linux.ibm.com
Fri Aug 14 05:12:06 CEST 2026
On Mon, 2026-08-10 at 16:33 +0200, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> New in v2.
>
> @Mimi I appreciate your RBT or ABT.
Thanks, Petr.
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
>
> testcases/kernel/security/integrity/ima/tests/ima_policy.sh | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/testcases/kernel/security/integrity/ima/tests/ima_policy.sh b/testcases/kernel/security/integrity/ima/tests/ima_policy.sh
> index d66f261a81..e6f4ff133a 100755
> --- a/testcases/kernel/security/integrity/ima/tests/ima_policy.sh
> +++ b/testcases/kernel/security/integrity/ima/tests/ima_policy.sh
> @@ -60,6 +60,11 @@ test2()
> {
> tst_res TINFO "verify that policy file is not opened concurrently and able to loaded multiple times"
>
> + if tst_kvcmp -lt 4.5; then
> + tst_res TCONF "test requires kernel 4.5+"
> + return
> + fi
> +
> local p1 p2 rc1 rc2
>
> require_policy_writable
More information about the ltp
mailing list