aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorStephen Smalley <[email protected]>2025-02-20 19:29:36 +0000
committerAnna Schumaker <[email protected]>2025-02-25 20:07:24 +0000
commit9084ed79ddaaaa1ec01cd304af9fb532c26252db (patch)
tree641ca5f17465cdc54df025981d040e051b6b597c /net/unix/af_unix.c
parentsunrpc: suppress warnings for unused procfs functions (diff)
downloadkernel-9084ed79ddaaaa1ec01cd304af9fb532c26252db.tar.gz
kernel-9084ed79ddaaaa1ec01cd304af9fb532c26252db.zip
lsm,nfs: fix memory leak of lsm_context
commit b530104f50e8 ("lsm: lsm_context in security_dentry_init_security") did not preserve the lsm id for subsequent release calls, which results in a memory leak. Fix it by saving the lsm id in the nfs4_label and providing it on the subsequent release call. Fixes: b530104f50e8 ("lsm: lsm_context in security_dentry_init_security") Signed-off-by: Stephen Smalley <[email protected]> Acked-by: Paul Moore <[email protected]> Acked-by: Casey Schaufler <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions