• Linus Torvalds's avatar
    Merge tag 'selinux-pr-20171113' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · 8c38fb5c
    Linus Torvalds authored
    Pull SELinux updates from Paul Moore:
     "Seven SELinux patches for v4.15, although five of the seven are small
      build fixes and cleanups.
    
      Of the remaining two patches, the only one worth really calling out is
      Eric's fix for the SELinux filesystem xattr set/remove code; the other
      patch simply converts the SELinux hash table implementation to use
      kmem_cache.
    
      Eric's setxattr/removexattr tweak converts SELinux back to calling the
      commoncap implementations when the xattr is not SELinux related. The
      immediate win is to fixup filesystem capabilities in user namespaces,
      but it makes things a bit saner overall; more information in the
      commit description"
    
    * tag 'selinux-pr-20171113' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
      selinux: remove extraneous initialization of slots_used and max_chain_len
      selinux: remove redundant assignment to len
      selinux: remove redundant assignment to str
      selinux: fix build warning
      selinux: fix build warning by removing the unused sid variable
      selinux: Perform both commoncap and selinux xattr checks
      selinux: Use kmem_cache for hashtab_node
    8c38fb5c
hashtab.c 3.26 KB