Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information