[PATCH v2] net: corrections for security_secid_to_secctx returns

Paul Moore paul at paul-moore.com
Sun Jan 5 03:11:21 UTC 2025


On Dec 20, 2024 Casey Schaufler <casey at schaufler-ca.com> wrote:
> 
> security_secid_to_secctx() returns the size of the new context,
> whereas previous versions provided that via a pointer parameter.
> Correct the type of the value returned in nfqnl_get_sk_secctx()
> and the check for error in netlbl_unlhsh_add(). Add an error
> check.
> 
> Fixes: 2d470c778120 ("lsm: replace context+len with lsm_context")
> Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>
> ---
>  net/netfilter/nfnetlink_queue.c   | 12 +++++++-----
>  net/netlabel/netlabel_unlabeled.c |  6 +++---
>  2 files changed, 10 insertions(+), 8 deletions(-)

Looks good to me, thanks Casey.  Merged into lsm/dev.

--
paul-moore.com



More information about the Linux-security-module-archive mailing list