]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2bc1e9af93e1c0e3d919db9270f1260ea635bf7c
treefeae835d9fa5ff28c274ac110c0e73055786798c
parent7a50a4492e9e0107eb3fef06e0744b68fc75e558
parent2a27b4654e7e5d36ef2041dff83bf5ec3f87e079
Merge tag 'kernel.sys.v5.15' of git://git.kernel.org/pub/scm/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