diff options
| author | Stephen Smalley <[email protected]> | 2025-02-20 19:29:36 +0000 |
|---|---|---|
| committer | Anna Schumaker <[email protected]> | 2025-02-25 20:07:24 +0000 |
| commit | 9084ed79ddaaaa1ec01cd304af9fb532c26252db (patch) | |
| tree | 641ca5f17465cdc54df025981d040e051b6b597c /net/unix/af_unix.c | |
| parent | sunrpc: suppress warnings for unused procfs functions (diff) | |
| download | kernel-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
