• Linus Torvalds's avatar
    Merge tag 'apparmor-pr-2023-11-03' of... · 6bdfe2d8
    Linus Torvalds authored
    Merge tag 'apparmor-pr-2023-11-03' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
    
    Pull apparmor updates from John Johansen:
     "This adds initial support for mediating io_uring and userns creation.
      Adds a new restriction that tightens the use of change_profile, and a
      couple of optimizations to reduce performance bottle necks that have
      been found when retrieving the current task's secid and allocating
      work buffers.
    
      The majority of the patch set continues cleaning up and simplifying
      the code (fixing comments, removing now dead functions, and macros
      etc). Finally there are 4 bug fixes, with the regression fix having
      had a couple months of testing.
    
      Features:
       - optimize retrieving current task secid
       - add base io_uring mediation
       - add base userns mediation
       - improve buffer allocation
       - allow restricting unprivilege change_profile
    
      Cleanups:
       - Fix kernel doc comments
       - remove unused declarations
       - remove unused functions
       - remove unneeded #ifdef
       - remove unused macros
       - mark fns static
       - cleanup fn with unused return values
       - cleanup audit data
       - pass cred through to audit data
       - refcount the pdb instead of using duplicates
       - make SK_CTX macro an inline fn
       - some comment cleanups
    
      Bug fixes:
       - fix regression in mount mediation
       - fix invalid refenece
       - use passed in gfp flags
       - advertise avaiability of extended perms and disconnected.path"
    
    * tag 'apparmor-pr-2023-11-03' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor: (39 commits)
      apparmor: Fix some kernel-doc comments
      apparmor: Fix one kernel-doc comment
      apparmor: Fix some kernel-doc comments
      apparmor: mark new functions static
      apparmor: Fix regression in mount mediation
      apparmor: cache buffers on percpu list if there is lock contention
      apparmor: add io_uring mediation
      apparmor: add user namespace creation mediation
      apparmor: allow restricting unprivileged change_profile
      apparmor: advertise disconnected.path is available
      apparmor: refcount the pdb
      apparmor: provide separate audit messages for file and policy checks
      apparmor: pass cred through to audit info.
      apparmor: rename audit_data->label to audit_data->subj_label
      apparmor: combine common_audit_data and apparmor_audit_data
      apparmor: rename SK_CTX() to aa_sock and make it an inline fn
      apparmor: Optimize retrieving current task secid
      apparmor: remove unused functions in policy_ns.c/.h
      apparmor: remove unneeded #ifdef in decompress_zstd()
      apparmor: fix invalid reference on profile->disconnected
      ...
    6bdfe2d8
lsm.c 58.3 KB