• Linus Torvalds's avatar
    Merge tag 'selinux-pr-20220801' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · 79802ada
    Linus Torvalds authored
    Pull selinux updates from Paul Moore:
     "A relatively small set of patches for SELinux this time, eight patches
      in total with really only one significant change.
    
      The highlights are:
    
       - Add support for proper labeling of memfd_secret anonymous inodes.
    
         This will allow LSMs that implement the anonymous inode hooks to
         apply security policy to memfd_secret() fds.
    
       - Various small improvements to memory management: fixed leaks, freed
         memory when needed, boundary checks.
    
       - Hardened the selinux_audit_data struct with __randomize_layout.
    
       - A minor documentation tweak to fix a formatting/style issue"
    
    * tag 'selinux-pr-20220801' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
      selinux: selinux_add_opt() callers free memory
      selinux: Add boundary check in put_entry()
      selinux: fix memleak in security_read_state_kernel()
      docs: selinux: add '=' signs to kernel boot options
      mm: create security context for memfd_secret inodes
      selinux: fix typos in comments
      selinux: drop unnecessary NULL check
      selinux: add __randomize_layout to selinux_audit_data
    79802ada
secretmem.c 6.55 KB