Linux Security Modules development
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serge@hallyn.com>
To: Guicai Ma <maguicai@kylinos.cn>
Cc: Alejandro Colomar <alx@kernel.org>,
	Paul Moore <paul@paul-moore.com>,
	James Morris <jmorris@namei.org>,
	John Johansen <john.johansen@canonical.com>,
	Georgia Garcia <georgia.garcia@canonical.com>,
	apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org
Subject: Re: [PATCH] security: Add missing const
Date: Wed, 2 Dec 2026 11:34:47 -0600	[thread overview]
Message-ID: <axBWt30cKhwOHCQh@hallyn.com> (raw)
In-Reply-To: <20261126033112.2007696-1-maguicai@kylinos.cn>

On Wed, Nov 25, 2026 at 10:31:12PM -0500, Guicai Ma wrote:
> The change is correct: after this point split is only read, through
> pointer subtraction against *ns_name, split++, the strncmp() against
> "//", and skipn_spaces(), which already takes a const char *.  strnchr()
> returns a pointer derived from the const fqname, so the qualifier is
> safe and behaviour is unchanged.
> 
> Built security/apparmor/lib.o with the patch applied (arm64, W=1): no
> warnings.
> 
> One note on recipients: get_maintainer.pl also lists John Johansen,
> Georgia Garcia and apparmor@lists.ubuntu.com for this file, so I have

Yup, John and Georgia would be the primary maintainers, in fact.  Thanks.

> added them here.  The posting only reached the LSM side.
> 
> Reviewed-by: Guicai Ma <maguicai@kylinos.cn>

lgtm too,

Reviewed-by: Serge Hallyn <serge@hallyn.com>

> 
> Thanks,
> Guicai Ma

thanks,
-serge

      reply	other threads:[~2026-12-02 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 18:22 [PATCH] security: Add missing const Alejandro Colomar
2026-11-25 18:25 ` sashiko-bot
2026-11-26  3:31 ` Guicai Ma
2026-12-02 17:34   ` Serge E. Hallyn [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=axBWt30cKhwOHCQh@hallyn.com \
    --to=serge@hallyn.com \
    --cc=alx@kernel.org \
    --cc=apparmor@lists.ubuntu.com \
    --cc=georgia.garcia@canonical.com \
    --cc=jmorris@namei.org \
    --cc=john.johansen@canonical.com \
    --cc=linux-security-module@vger.kernel.org \
    --cc=maguicai@kylinos.cn \
    --cc=paul@paul-moore.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