• Linus Torvalds's avatar
    Merge tag 'apparmor-pr-2022-12-14' of... · 93761c93
    Linus Torvalds authored
    Merge tag 'apparmor-pr-2022-12-14' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
    
    Pull apparmor updates from John Johansen:
     "Features:
       - switch to zstd compression for profile raw data
    
      Cleanups:
       - simplify obtaining the newest label on a cred
       - remove useless static inline functions
       - compute permission conversion on policy unpack
       - refactor code to share common permissins
       - refactor unpack to group policy backwards compatiblity code
       - add __init annotation to aa_{setup/teardown}_dfa_engine()
    
      Bug Fixes:
       - fix a memleak in
           - multi_transaction_new()
           - free_ruleset()
           - unpack_profile()
           - alloc_ns()
       - fix lockdep warning when removing a namespace
       - fix regression in stacking due to label flags
       - fix loading of child before parent
       - fix kernel-doc comments that differ from fns
       - fix spelling errors in comments
       - store return value of unpack_perms_table() to signed variable"
    
    * tag 'apparmor-pr-2022-12-14' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor: (64 commits)
      apparmor: Fix uninitialized symbol 'array_size' in policy_unpack_test.c
      apparmor: Add __init annotation to aa_{setup/teardown}_dfa_engine()
      apparmor: Fix memleak in alloc_ns()
      apparmor: Fix memleak issue in unpack_profile()
      apparmor: fix a memleak in free_ruleset()
      apparmor: Fix spelling of function name in comment block
      apparmor: Use pointer to struct aa_label for lbs_cred
      AppArmor: Fix kernel-doc
      LSM: Fix kernel-doc
      AppArmor: Fix kernel-doc
      apparmor: Fix loading of child before parent
      apparmor: refactor code that alloc null profiles
      apparmor: fix obsoleted comments for aa_getprocattr() and audit_resource()
      apparmor: remove useless static inline functions
      apparmor: Fix unpack_profile() warn: passing zero to 'ERR_PTR'
      apparmor: fix uninitialize table variable in error in unpack_trans_table
      apparmor: store return value of unpack_perms_table() to signed variable
      apparmor: Fix kunit test for out of bounds array
      apparmor: Fix decompression of rawdata for read back to userspace
      apparmor: Fix undefined references to zstd_ symbols
      ...
    93761c93
policy_unpack.h 5 KB