Files
systemd/src/test
Dan Nicholson 9217255427 test-process-util: Handle unprivileged setrlimit success
Currently test_setpriority_closest assumes that setting RLIMIT_NICE to 30 will
fail if the process is unprivileged. If it succeeds, it assumes that the
process is privileged and setresuid and setresgid will succeed.

However, if RLIMIT_NICE is already >= 30, then setrlimit will succeed even if
the process is unprivileged. Guard against that by checking for permission
errors in setresuid and setresgid and skipping the full test if so.

Fixes #22896.
2023-11-08 21:29:16 +00:00
..
2021-11-25 15:03:06 +01:00
2023-04-21 16:29:15 +02:00
2023-03-10 09:47:39 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2023-03-10 09:47:39 +01:00
2022-11-08 18:21:10 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2022-06-02 14:14:22 +09:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2023-01-10 15:16:26 +01:00
2023-09-28 16:44:42 -04:00
2021-11-25 15:03:06 +01:00
2023-08-13 10:27:04 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2023-03-10 09:47:39 +01:00
2022-06-02 14:14:22 +09:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2021-11-25 15:03:06 +01:00
2023-03-10 09:47:39 +01:00
2021-11-25 15:03:06 +01:00
2023-10-04 08:58:10 +09:00
2022-11-08 18:21:10 +01:00