kselftests: Add test to check for rlimit changes in different user namespaces
authorAlexey Gladkov <legion@kernel.org>
Thu, 22 Apr 2021 12:27:15 +0000 (14:27 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 30 Apr 2021 19:14:03 +0000 (14:14 -0500)
commite4aebf06695c32d49f1007f9d252f97b5b2998a7
treeb3618b4ca6da9c986069a7cd862e3465b041e901
parentd7c9e99aee48e6bc0b427f3e3c658a6aba15001e
kselftests: Add test to check for rlimit changes in different user namespaces

The testcase runs few instances of the program with RLIMIT_NPROC=1 from
user uid=60000, in different user namespaces.

Signed-off-by: Alexey Gladkov <legion@kernel.org>
Link: https://lkml.kernel.org/r/28cafdcdd4abd8494b34a27f1970b666b30de8bf.1619094428.git.legion@kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
tools/testing/selftests/Makefile
tools/testing/selftests/rlimits/.gitignore [new file with mode: 0644]
tools/testing/selftests/rlimits/Makefile [new file with mode: 0644]
tools/testing/selftests/rlimits/config [new file with mode: 0644]
tools/testing/selftests/rlimits/rlimits-per-userns.c [new file with mode: 0644]