[PATCH] security: clarify task_prctl hook documentation
Paul Moore
paul at paul-moore.com
Thu Jul 2 18:59:22 UTC 2026
On Jun 15, 2026 Bill Roberts <bill.roberts at arm.com> wrote:
>
> The task_prctl hook comment incorrectly described the hook as checking
> whether a prctl operation is allowed. In reality, the hook exists for
> LSMs to handle LSM-specific prctl operations.
>
> Update the function description and kernel-doc comment to reflect the
> actual behavior. The old wording appears to have been copied from other
> permission-check hooks despite differing semantics.
>
> Signed-off-by: Bill Roberts <bill.roberts at arm.com>
> Acked-by: Casey Schaufler <casey at schaufler-ca.com>
> Reviewed-by: Serge Hallyn <serge at hallyn.com>
> ---
> security/security.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Good catch, thanks! Merged into lsm/dev.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list