summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-11-13 20:35:06 +0100
committerKay Sievers <kay@vrfy.org>2014-11-13 20:35:06 +0100
commitadeba5008eac3105ae59256dedd087ebe006a9e6 (patch)
tree5b8dd3f0e7c6e47b560e89fd48f3039e1201a78e /src/udev/udev-event.c
parent41b848b0ea674dba135d5d5f82b87d126d967fcf (diff)
udev: support ENV{}=="" global property matches
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 5585b78cc3..34f5348a2c 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -787,9 +787,10 @@ static int rename_netif(struct udev_event *event) {
}
void udev_event_execute_rules(struct udev_event *event,
- usec_t timeout_usec,
- usec_t timeout_warn_usec,
- struct udev_rules *rules, const sigset_t *sigmask) {
+ usec_t timeout_usec, usec_t timeout_warn_usec,
+ struct udev_list *properties_list,
+ struct udev_rules *rules,
+ const sigset_t *sigmask) {
struct udev_device *dev = event->dev;
if (udev_device_get_subsystem(dev) == NULL)
@@ -803,7 +804,10 @@ void udev_event_execute_rules(struct udev_event *event,
if (major(udev_device_get_devnum(dev)) != 0)
udev_watch_end(event->udev, dev);
- udev_rules_apply_to_event(rules, event, timeout_usec, timeout_warn_usec, sigmask);
+ udev_rules_apply_to_event(rules, event,
+ timeout_usec, timeout_warn_usec,
+ properties_list,
+ sigmask);
if (major(udev_device_get_devnum(dev)) != 0)
udev_node_remove(dev);
@@ -837,7 +841,10 @@ void udev_event_execute_rules(struct udev_event *event,
}
}
- udev_rules_apply_to_event(rules, event, timeout_usec, timeout_warn_usec, sigmask);
+ udev_rules_apply_to_event(rules, event,
+ timeout_usec, timeout_warn_usec,
+ properties_list,
+ sigmask);
/* rename a new network interface, if needed */
if (udev_device_get_ifindex(dev) > 0 && streq(udev_device_get_action(dev), "add") &&