Merge tag 'kernel.sys.v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Aug 2021 19:16:05 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Aug 2021 19:16:05 +0000 (12:16 -0700)
commite55f0c439a2681a3c299bedd99ebe998049fa508
treefeae835d9fa5ff28c274ac110c0e73055786798c
parent67b03f93a30facabf105b8b8632e3b9b6ef9200a
parent2863643fb8b92291a7e97ba46e342f1163595fa8
Merge tag 'kernel.sys.v5.15' of git://git./linux/kernel/git/brauner/linux

Pull set_user()  update from Christian Brauner:
 "This contains a single fix to set_user() which aligns permission
  checks with the corresponding fork() codepath. No one involved in this
  could come up with a reason for the difference.

  A capable caller can already circumvent the check when they fork where
  the permission checks are already for the relevant capabilities in
  addition to also allowing to exceed nproc when it is the init user.

  So apply the same logic to set_user()"

* tag 'kernel.sys.v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
  set_user: add capability check when rlimit(RLIMIT_NPROC) exceeds