[Ocfs2-devel] freeing memory allocated in	security_inode_init_security()
    Mimi Zohar 
    zohar at linux.vnet.ibm.com
       
    Wed May  4 12:18:18 PDT 2011
    
    
  
Hi,
Although it isn't documented in security.c, the LSM
security_inode_init_security() hook allocates memory for xattr name and
value, expecting the caller to release the memory afterwards.
I'm making my way through the different filesystems adding a subsequent
call to evm_inode_post_init_security().  I see the call to
ocfs2_init_security_and_acl() calls ocfs2_init_security_get(), which in
turn calls security_inode_init_security(), but am having a hard time
finding where the name and value are subsequently freed.  Would
appreciate if someone could point it out.
thanks,
Mimi
    
    
More information about the Ocfs2-devel
mailing list