diff options
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r-- | src/udev/udev-event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index cbcb3f5ab2..9beb46574e 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -849,6 +849,12 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules, if (event->dev_db != NULL) udev_node_update_old_links(dev, event->dev_db); + if (!event->owner_set) + event->uid = udev_device_get_devnode_uid(dev); + + if (!event->group_set) + event->gid = udev_device_get_devnode_gid(dev); + if (!event->mode_set) { if (udev_device_get_devnode_mode(dev) > 0) { /* kernel supplied value */ |