From: Mimi Zohar <zohar@linux.ibm.com>
To: Frederick Lawler <fred@cloudflare.com>,
Roberto Sassu <roberto.sassu@huawei.com>,
Dmitry Kasatkin <dmitry.kasatkin@gmail.com>,
Eric Snowberg <eric.snowberg@oracle.com>,
Paul Moore <paul@paul-moore.com>,
James Morris <jmorris@namei.org>,
"Serge E. Hallyn" <serge@hallyn.com>
Cc: linux-integrity@vger.kernel.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-team@cloudflare.com
Subject: Re: [PATCH v2 0/3] integrity: Return error codes in audit messages
Date: Wed, 09 Sep 2026 21:23:04 -0400 [thread overview]
Message-ID: <64cd28d394d692c9a452d7262190fff6f4b6c328.camel@linux.ibm.com> (raw)
In-Reply-To: <weadqcqqw3e4snwysfnx2fszrxctppkqqgdjrkfyn7uh5poczp@dpnp6tl3mk6u>
On Wed, 2026-09-09 at 12:53 -0500, Frederick Lawler wrote:
> Hi Mimi and Roberto,
>
> On Mon, Jul 27, 2026 at 05:21:46PM -0500, Frederick Lawler wrote:
> > Commit 2f845882ecd2 ("integrity: Add errno field in audit message")
> > introduced an audit log function that can take an error code. It is
> > wrapped by integrity_audit_msg() that implicitly sets the error code
> > argument to zero. The problem is that there are uses of integrity_audit_msg()
> > such as ima_collect_measurement() that hide the failure cause for
> > the message.
> >
> > This series aims to convert integrity_audit_msg() call sites to
> > integrity_audit_message(), and then expose error codes based on the
> > following criteria:
> >
> > 1. The log depends on a result from earlier callee, and/or
> > 2. The caller function itself returns with that result
> >
> > ima_release_policy() is the only caller I thought made sense to keep as
> > is. The message doesn't correlate with a return code, nor does it
> > depend on a result from an earlier callee in the function.
> >
> > Signed-off-by: Frederick Lawler <fred@cloudflare.com>
> > ---
> > This is probably a bit more than what was asked from v1, but as I was
> > making changes and looking at other call sites, I didn't think it made
> > sense to keep integrity_audit_msg() around anymore.
> >
> > Changes in v2:
> > - Changes from v1 are now reflected in patch 3.
> > - Replace all instances of integrity_audit_msg().
> > - Convert to patch series.
> > - Link to v1: https://lore.kernel.org/r/20260716-report-hash-error-v1-1-ac19281112e4@cloudflare.com
> >
>
> I think this series may have fallen through the cracks between the merge
> windows. Shall I respin + rebase?
Thanks for the reminder. Let me take a look at it again, before you post
another version. It might take a few days until I get to it.
Thanks,
Mimi
prev parent reply other threads:[~2026-09-10 1:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 22:21 [PATCH v2 0/3] integrity: Return error codes in audit messages Frederick Lawler
2026-07-27 22:21 ` [PATCH v2 1/3] integrity: Replace all uses of integrity_audit_msg() with integrity_audit_message() Frederick Lawler
2026-07-27 22:21 ` [PATCH v2 2/3] integrity: Remove integrity_audit_msg() Frederick Lawler
2026-07-27 22:21 ` [PATCH v2 3/3] integrity: Report error code in integrity_audit_message() call sites Frederick Lawler
2026-09-09 17:53 ` [PATCH v2 0/3] integrity: Return error codes in audit messages Frederick Lawler
2026-09-10 1:23 ` Mimi Zohar [this message]
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=64cd28d394d692c9a452d7262190fff6f4b6c328.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=dmitry.kasatkin@gmail.com \
--cc=eric.snowberg@oracle.com \
--cc=fred@cloudflare.com \
--cc=jmorris@namei.org \
--cc=kernel-team@cloudflare.com \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=roberto.sassu@huawei.com \
--cc=serge@hallyn.com \
/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