summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2022-02-14 18:40:25 +0300
committerEric W. Biederman <ebiederm@xmission.com>2022-02-17 18:11:26 +0300
commitc923a8e7edb010da67424077cbf1a6f1396ebd2e (patch)
treee0992ba2c64368b66a5d19f87c3b99c136ec6dcd /tools/perf/scripts/python/export-to-postgresql.py
parenta55d07294f1e9b576093bdfa95422f8119941e83 (diff)
downloadlinux-c923a8e7edb010da67424077cbf1a6f1396ebd2e.tar.xz
ucounts: Move RLIMIT_NPROC handling after set_user
During set*id() which cred->ucounts to charge the the current process to is not known until after set_cred_ucounts. So move the RLIMIT_NPROC checking into a new helper flag_nproc_exceeded and call flag_nproc_exceeded after set_cred_ucounts. This is very much an arbitrary subset of the places where we currently change the RLIMIT_NPROC accounting, designed to preserve the existing logic. Fixing the existing logic will be the subject of another series of changes. Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20220216155832.680775-4-ebiederm@xmission.com Fixes: 21d1c5e386bc ("Reimplement RLIMIT_NPROC on top of ucounts") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions