summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2018-06-01 20:45:12 +0300
committerCasey Schaufler <casey@schaufler-ca.com>2018-06-05 22:16:01 +0300
commit0f8983cf97d3327531b7843c831517cac3a1b9ed (patch)
tree04978f906764ad6794bf824545ff6b35542f443c /net
parentb3859ee18ed287170b66b19a78191f7312ec3470 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions