summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2013-01-25 10:47:52 -0500
committerAnthony G. Basile <blueness@gentoo.org>2013-01-28 17:42:47 -0500
commitab779c81460ce48e6b270977ef339b32d87c1f41 (patch)
tree06d1c74756194d17dbfd3eaa2a171a735230aa23 /src/udev/udev-event.c
parentcc9cf4c078702fcb8e88fe6f00303d821aabffce (diff)
Honor DEVUID, DEVGID in addition to DEVMODE
New behaviour in udev-197 systemd commit 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 Author: Kay Sievers <kay@vrfy.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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 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 */