From: Mimi Zohar <zohar@linux.ibm.com>
To: Frederick Lawler <fred@cloudflare.com>
Cc: 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>,
linux-integrity@vger.kernel.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-team@cloudflare.com
Subject: Re: [PATCH v2 1/3] integrity: Replace all uses of integrity_audit_msg() with integrity_audit_message()
Date: Tue, 15 Sep 2026 17:32:12 -0400 [thread overview]
Message-ID: <c2a8a6b2e55bc0cf062bbfea045eb1f593149e5f.camel@linux.ibm.com> (raw)
In-Reply-To: <ykq6awewbz2f4ckgwrwnubcprlta2trm24by6bw3z2q6u6mr43@gn6ajl46tc6r>
On Tue, 2026-09-15 at 16:08 -0500, Frederick Lawler wrote:
> Hi Mimi,
>
> On Tue, Sep 15, 2026 at 04:00:34PM -0400, Mimi Zohar wrote:
> > On Mon, 2026-07-27 at 17:21 -0500, Frederick Lawler wrote:
> > > integrity_audit_msg() wraps integrity_audit_message() such that
> > > error codes are hidden by passing an additional parameter to
> > > integrity_audit_message(). Since this is a wrapper, we can replace
> > > this function with integrity_audit_message() introduced in commit
> > > 2f845882ecd2 ("integrity: Add errno field in audit message")
> > >
> > > No functional change intended.
> >
> > There's an unintentional change in ima_write_policy(), which replaces the
> > existing '1' with result.
>
> Oof. Good catch. That was intended for the later patch.
>
> >
> > >
> > > Signed-off-by: Frederick Lawler <fred@cloudflare.com>
> >
> > Is renaming integrity_audit_msg() to integrity_audit_message() actually the
> > right approach here? integrity_audit_message() currently has only 2 callers vs.
> > ~20+ for integrity_audit_msg(), and the rename forces re-wrapping of every
> > multi-line call site since integrity_audit_message is 4 chars longer, bloating
> > the first patch.
> >
> > Why not simply add errno to the integrity_audit_msg() definition and callers.
> >
>
> I can switch that around. I assumed we'd want to keep _message() since
> that was wrapped by _msg(). And not dealing with the line-wrapping is
> better.
No, making integrity_audit_msg() a wrapper for integrity_audit_message was done
for expediency, instead of changing ALL the integrity_audit_msg() call sites.
Thank you for taking the time to review all the integrity_audit_msg() call sites
and adding errno..
Mimi
next prev parent reply other threads:[~2026-09-15 21:32 UTC|newest]
Thread overview: 9+ 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-09-15 20:00 ` Mimi Zohar
2026-09-15 21:08 ` Frederick Lawler
2026-09-15 21:32 ` Mimi Zohar [this message]
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
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=c2a8a6b2e55bc0cf062bbfea045eb1f593149e5f.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
all inboxes | Powered by JetHome®