aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorCasey Schaufler <[email protected]>2018-06-01 10:45:12 -0700
committerCasey Schaufler <[email protected]>2018-06-05 12:16:01 -0700
commit0f8983cf97d3327531b7843c831517cac3a1b9ed (patch)
tree04978f906764ad6794bf824545ff6b35542f443c /lib/test_overflow.c
parentb3859ee18ed287170b66b19a78191f7312ec3470 (diff)
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 <[email protected]> Reported-by: CHANDAN VN <[email protected]> Tested-by: CHANDAN VN <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions