Re: [PATCH] security: clarify task_prctl hook documentation

From: Paul Moore

Date: Thu Jul 02 2026 - 15:05:41 EST


On Jun 15, 2026 Bill Roberts <bill.roberts@xxxxxxx> 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@xxxxxxx>
> Acked-by: Casey Schaufler <casey@xxxxxxxxxxxxxxxx>
> Reviewed-by: Serge Hallyn <serge@xxxxxxxxxx>
> ---
> security/security.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)

Good catch, thanks! Merged into lsm/dev.

--
paul-moore.com