From ab779c81460ce48e6b270977ef339b32d87c1f41 Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Fri, 25 Jan 2013 10:47:52 -0500 Subject: Honor DEVUID, DEVGID in addition to DEVMODE New behaviour in udev-197 systemd commit 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 Author: Kay Sievers Signed-off-by: Anthony G. Basile --- src/udev/udev-event.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/udev/udev-event.c') 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 */ -- cgit v1.2.3-54-g00ecf