sd-device-monitor: do not trigger assertion when uid_map is not empty
Follow-up for c0aa23cf1e.
This commit is contained in:
committed by
Lennart Poettering
parent
05d5db01b7
commit
f91c23f785
@@ -469,6 +469,7 @@ static bool check_sender_uid(sd_device_monitor *m, uid_t uid) {
|
||||
return true;
|
||||
|
||||
if (m->n_uid_range == SIZE_MAX) {
|
||||
m->n_uid_range = 0;
|
||||
r = uid_range_load_userns(&m->mapped_userns_uid_range, &m->n_uid_range, NULL);
|
||||
if (r < 0)
|
||||
log_monitor_errno(m, r, "Failed to load UID ranges mapped to the current user namespace, ignoring: %m");
|
||||
|
||||
Reference in New Issue
Block a user