From: Mimi Zohar <zohar@linux.ibm.com>
To: Petr Vorel <pvorel@suse.cz>, ltp@lists.linux.it
Cc: linux-integrity@vger.kernel.org, selinux@vger.kernel.org,
Cyril Hrubis <chrubis@suse.cz>, Coiby Xu <coxu@redhat.com>
Subject: Re: [PATCH 2/2] ima_{conditionals,policy}: Handle policy required to be signed
Date: Fri, 12 Sep 2025 09:23:45 -0400 [thread overview]
Message-ID: <b8723148a39083cab0b43f9c7fa5ce18d696f99d.camel@linux.ibm.com> (raw)
In-Reply-To: <20250912073210.47637-3-pvorel@suse.cz>
On Fri, 2025-09-12 at 09:32 +0200, Petr Vorel wrote:
> Since kernel 6.6 policy needs to be signed on enabled UEFI secure boot.
> Skip testing in that case.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=56dc986a6b20b
>
> This fixes errors:
>
> ima_policy 2 TINFO: verify that policy file is not opened concurrently and able to loaded multiple times
> ima_policy 2 TFAIL: problem loading or extending policy (may require policy to be signed)
> https://openqa.suse.de/tests/18723792#step/ima_conditionals/6
>
> ima_conditionals 1 TINFO: verify measuring user files when requested via uid
> echo: write error: Permission denied
> ima_conditionals 1 TBROK: echo measure uid=65534 > /sys/kernel/security/ima/policy failed
>
> Ideally there would be test which check that unsigned policy cannot be
> written.
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
Thanks, Petr.
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
At some point, consider adding support for signing policy rules, if the
private/public keypair is provided.
Mimi
next prev parent reply other threads:[~2025-09-12 13:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-12 7:32 [PATCH 0/2] LTP IMA pre-release fixes Petr Vorel
2025-09-12 7:32 ` [PATCH 1/2] ima_policy.sh: Optimize check for policy writable Petr Vorel
2025-09-12 13:18 ` Mimi Zohar
2025-09-15 8:10 ` [LTP] " Avinesh Kumar
2025-09-15 11:55 ` Cyril Hrubis
2025-09-12 7:32 ` [PATCH 2/2] ima_{conditionals,policy}: Handle policy required to be signed Petr Vorel
2025-09-12 13:23 ` Mimi Zohar [this message]
2025-09-16 16:41 ` Petr Vorel
2025-09-15 12:12 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8723148a39083cab0b43f9c7fa5ce18d696f99d.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=chrubis@suse.cz \
--cc=coxu@redhat.com \
--cc=linux-integrity@vger.kernel.org \
--cc=ltp@lists.linux.it \
--cc=pvorel@suse.cz \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).