summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-12-31 04:48:44 +0100
committerKay Sievers <kay@vrfy.org>2012-12-31 04:48:44 +0100
commit1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 (patch)
tree20acb3dde5ec7a3515bee87ebe6d39ba7751835b /src/udev/udev-event.c
parent6fe8ab6d57f24bcdbb18c8e40a3927090fbaeb0e (diff)
udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index b75ed33fbf..5eedf4f0df 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -842,6 +842,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 */