[PATCH] security: Add missing const
Serge E. Hallyn
serge at hallyn.com
Wed Dec 2 17:34:47 UTC 2026
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 at 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 at kylinos.cn>
lgtm too,
Reviewed-by: Serge Hallyn <serge at hallyn.com>
>
> Thanks,
> Guicai Ma
thanks,
-serge
More information about the Linux-security-module-archive
mailing list