• Paul Moore's avatar
    NetLabel: SELinux cleanups · 9f2ad665
    Paul Moore authored
    This patch does a lot of cleanup in the SELinux NetLabel support code.  A
    summary of the changes include:
    
    * Use RCU locking for the NetLabel state variable in the skk_security_struct
      instead of using the inode_security_struct mutex.
    * Remove unnecessary parameters in selinux_netlbl_socket_post_create().
    * Rename selinux_netlbl_sk_clone_security() to
      selinux_netlbl_sk_security_clone() to better fit the other NetLabel
      sk_security functions.
    * Improvements to selinux_netlbl_inode_permission() to help reduce the cost of
      the common case.
    Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
    Signed-off-by: default avatarJames Morris <jmorris@namei.org>
    9f2ad665
selinux_netlabel.h 3.54 KB