1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

coredump: use uid_is_system() when appropriate

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-25 16:09:00 +02:00
parent 98dcb8f4c7
commit 28add648a8

View File

@ -683,7 +683,7 @@ static int change_uid_gid(const Context *context) {
if (r < 0)
return r;
if (uid <= SYSTEM_UID_MAX) {
if (uid_is_system(uid)) {
const char *user = "systemd-coredump";
r = get_user_creds(&user, &uid, &gid, NULL, NULL, 0);