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:
parent
98dcb8f4c7
commit
28add648a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user