summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2021-10-16 20:30:00 +0300
committerEric W. Biederman <ebiederm@xmission.com>2021-10-19 19:01:52 +0300
commit629715adc62b0ad27ab04d0aa73a71927f886910 (patch)
tree9a748fa28329aaf1eb4ff72bb86e496b0e8f8976 /lib/debugobjects.c
parent15bc01effefe97757ef02ca09e9d1b927ab22725 (diff)
downloadlinux-629715adc62b0ad27ab04d0aa73a71927f886910.tar.xz
ucounts: Pair inc_rlimit_ucounts with dec_rlimit_ucoutns in commit_creds
The purpose of inc_rlimit_ucounts and dec_rlimit_ucounts in commit_creds is to change which rlimit counter is used to track a process when the credentials changes. Use the same test for both to guarantee the tracking is correct. Cc: stable@vger.kernel.org Fixes: 21d1c5e386bc ("Reimplement RLIMIT_NPROC on top of ucounts") Link: https://lkml.kernel.org/r/87v91us0w4.fsf_-_@disp2133 Tested-by: Yu Zhao <yuzhao@google.com> Reviewed-by: Alexey Gladkov <legion@kernel.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions