summaryrefslogtreecommitdiffstats
path: root/include/ras
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2018-06-01 10:45:12 -0700
committerCasey Schaufler <casey@schaufler-ca.com>2018-06-05 12:16:01 -0700
commit0f8983cf97d3327531b7843c831517cac3a1b9ed (patch)
tree04978f906764ad6794bf824545ff6b35542f443c /include/ras
parentb3859ee18ed287170b66b19a78191f7312ec3470 (diff)
downloadlinux-stable-0f8983cf97d3327531b7843c831517cac3a1b9ed.tar.gz
linux-stable-0f8983cf97d3327531b7843c831517cac3a1b9ed.tar.bz2
linux-stable-0f8983cf97d3327531b7843c831517cac3a1b9ed.zip
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 'include/ras')
0 files changed, 0 insertions, 0 deletions