mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
acl: properly handle if devices are tagged as uaccess but do not have a device node
This commit is contained in:
parent
4cd1eaa545
commit
d2d4b03899
@ -12,6 +12,6 @@ ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT"
|
||||
|
||||
ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"
|
||||
|
||||
TAG=="uaccess", RUN+="@rootlibexecdir@/systemd-uaccess $env{DEVNAME} $env{ID_SEAT}"
|
||||
TAG=="uaccess", ENV{MAJOR}!="", RUN+="@rootlibexecdir@/systemd-uaccess $env{DEVNAME} $env{ID_SEAT}"
|
||||
|
||||
LABEL="seat_late_end"
|
||||
|
@ -265,9 +265,9 @@ int devnode_acl_all(struct udev *udev,
|
||||
|
||||
node = udev_device_get_devnode(d);
|
||||
if (!node) {
|
||||
/* In case people mistag devices with nodes, we need to ignore this */
|
||||
udev_device_unref(d);
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
continue;
|
||||
}
|
||||
|
||||
log_debug("Fixing up %s for seat %s...", node, sn);
|
||||
|
Loading…
Reference in New Issue
Block a user