Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> writes: > Samir Bellabes wrote: >> Allow a module to update security informations when a socket is closed. > Is security_inode_free() too late for doing it? > > static void ccs_inode_free_security(struct inode *inode) > { > if (inode->i_sb && inode->i_sb->s_magic == SOCKFS_MAGIC) > ccs_update_socket_tag(inode, 0); > } I don't think it's too late. But in sock_close() we are sure to deal with a inode which is a socket. In ccs_inode_free_security(), we need to add small to check if the inode is a socket or something else. sam -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html