mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
nsresource: fix GID check in io.systemd.UserDatabase.GetGroupRecord method
Fixes a bug in 8aee931e7ae1adb01eeac0e1e4c0aef6ed3969ec (v256).
This commit is contained in:
parent
dbe61d9ec7
commit
e0111277e4
@ -282,7 +282,7 @@ static int vl_method_get_group_record(sd_varlink *link, sd_json_variant *paramet
|
||||
if (offset >= userns_info->size) /* Outside of range? */
|
||||
goto not_found;
|
||||
|
||||
if (gid_is_valid(p.gid) && p.uid != userns_info->start + offset)
|
||||
if (gid_is_valid(p.gid) && p.gid != userns_info->start + offset)
|
||||
return sd_varlink_error(link, "io.systemd.UserDatabase.ConflictingRecordFound", NULL);
|
||||
|
||||
} else if (gid_is_valid(p.gid)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user