• Linus Torvalds's avatar
    Merge tag 'apparmor-pr-2024-01-18' of... · 237c31cb
    Linus Torvalds authored
    Merge tag 'apparmor-pr-2024-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor
    
    Pull AppArmor updates from John Johansen:
     "This adds a single feature, switch the hash used to check policy from
      sha1 to sha256
    
      There are fixes for two memory leaks, and refcount bug and a potential
      crash when a profile name is empty. Along with a couple minor code
      cleanups.
    
      Summary:
    
      Features
       - switch policy hash from sha1 to sha256
    
      Bug Fixes
       - Fix refcount leak in task_kill
       - Fix leak of pdb objects and trans_table
       - avoid crash when parse profie name is empty
    
      Cleanups
       - add static to stack_msg and nulldfa
       - more kernel-doc cleanups"
    
    * tag 'apparmor-pr-2024-01-18' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor:
      apparmor: Fix memory leak in unpack_profile()
      apparmor: avoid crash when parsed profile name is empty
      apparmor: fix possible memory leak in unpack_trans_table
      apparmor: free the allocated pdb objects
      apparmor: Fix ref count leak in task_kill
      apparmor: cleanup network hook comments
      apparmor: add missing params to aa_may_ptrace kernel-doc comments
      apparmor: declare nulldfa as static
      apparmor: declare stack_msg as static
      apparmor: switch SECURITY_APPARMOR_HASH from sha1 to sha256
    237c31cb
apparmorfs.c 66 KB