• Linus Torvalds's avatar
    Merge tag 'safesetid-6.0' of https://github.com/micah-morton/linux · 87fe1adb
    Linus Torvalds authored
    Pull SafeSetID updates from Micah Morton:
     "This contains one commit that touches common kernel code, one that
      adds functionality internal to the SafeSetID LSM code, and a few other
      commits that only modify the SafeSetID LSM selftest.
    
      The commit that touches common kernel code simply adds an LSM hook in
      the setgroups() syscall that mirrors what is done for the existing LSM
      hooks in the setuid() and setgid() syscalls. This commit combined with
      the SafeSetID-specific one allow the LSM to filter setgroups() calls
      according to configured rule sets in the same way that is already done
      for setuid() and setgid()"
    
    * tag 'safesetid-6.0' of https://github.com/micah-morton/linux:
      LSM: SafeSetID: add setgroups() testing to selftest
      LSM: SafeSetID: Add setgroups() security policy handling
      security: Add LSM hook to setgroups() syscall
      LSM: SafeSetID: add GID testing to selftest
      LSM: SafeSetID: selftest cleanup and prepare for GIDs
      LSM: SafeSetID: fix userns bug in selftest
    87fe1adb
security.c 66.6 KB