• Linus Torvalds's avatar
    Merge tag 'selinux-pr-20230626' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · 729b39ec
    Linus Torvalds authored
    Pull selinux updates from Paul Moore:
    
     - Thanks to help from the MPTCP folks, it looks like we have finally
       sorted out a proper solution to the MPTCP socket labeling issue, see
       the new security_mptcp_add_subflow() LSM hook.
    
     - Fix the labeled NFS handling such that a labeled NFS share mounted
       prior to the initial SELinux policy load is properly labeled once a
       policy is loaded; more information in the commit description.
    
     - Two patches to security/selinux/Makefile, the first took the cleanups
       in v6.4 a bit further and the second removed the grouped targets
       support as that functionality doesn't appear to be properly supported
       prior to make v4.3.
    
     - Deprecate the "fs" object context type in SELinux policies. The fs
       object context type was an old vestige that was introduced back in
       v2.6.12-rc2 but never really used.
    
     - A number of small changes that remove dead code, clean up some
       awkward bits, and generally improve the quality of the code. See the
       individual commit descriptions for more information.
    
    * tag 'selinux-pr-20230626' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
      selinux: avoid bool as identifier name
      selinux: fix Makefile for versions of make < v4.3
      selinux: make labeled NFS work when mounted before policy load
      selinux: cleanup exit_sel_fs() declaration
      selinux: deprecated fs ocon
      selinux: make header files self-including
      selinux: keep context struct members in sync
      selinux: Implement mptcp_add_subflow hook
      security, lsm: Introduce security_mptcp_add_subflow()
      selinux: small cleanups in selinux_audit_rule_init()
      selinux: declare read-only data arrays const
      selinux: retain const qualifier on string literal in avtab_hash_eval()
      selinux: drop return at end of void function avc_insert()
      selinux: avc: drop unused function avc_disable()
      selinux: adjust typos in comments
      selinux: do not leave dangling pointer behind
      selinux: more Makefile tweaks
    729b39ec
subflow.c 57.1 KB