diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2018-06-01 20:45:12 +0300 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2018-06-05 22:16:01 +0300 |
commit | 0f8983cf97d3327531b7843c831517cac3a1b9ed (patch) | |
tree | 04978f906764ad6794bf824545ff6b35542f443c /net/caif/cfdgml.c | |
parent | b3859ee18ed287170b66b19a78191f7312ec3470 (diff) | |
download | linux-0f8983cf97d3327531b7843c831517cac3a1b9ed.tar.xz |
Smack: Fix memory leak in smack_inode_getsecctx
Fix memory leak in smack_inode_getsecctx
The implementation of smack_inode_getsecctx() made
incorrect assumptions about how Smack presents a security
context. Smack does not need to allocate memory to support
security contexts, so "releasing" a Smack context is a no-op.
The code made an unnecessary copy and returned that as a
context, which was never freed. The revised implementation
returns the context correctly.
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reported-by: CHANDAN VN <chandan.vn@samsung.com>
Tested-by: CHANDAN VN <chandan.vn@samsung.com>
Diffstat (limited to 'net/caif/cfdgml.c')
0 files changed, 0 insertions, 0 deletions