[PATCH] security: Add missing const
Guicai Ma
maguicai at kylinos.cn
Thu Nov 26 03:31:12 UTC 2026
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
added them here. The posting only reached the LSM side.
Reviewed-by: Guicai Ma <maguicai at kylinos.cn>
Thanks,
Guicai Ma
More information about the Linux-security-module-archive
mailing list