From: msizanoen1 Date: Tue, 27 Dec 2022 04:57:12 +0000 (+0700) Subject: udev: match device tags in rules using current device tags X-Git-Tag: v253-rc1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=310249903986957997b76bc52441cabb5843aad8;p=thirdparty%2Fsystemd.git udev: match device tags in rules using current device tags This ensures that udev scripts using `TAG-="..."` and expecting later udev rules to honor it will work properly. An use case is removing the `uaccess` tag from a device without overriding the original file and ensuring that `73-seat-uaccess.rules` won't run the uaccess builtin later. --- diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 3b0cdda74e0..52bf66ab0b9 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1641,7 +1641,7 @@ static int udev_rule_apply_token_to_event( case TK_M_PARENTS_TAG: { const char *val; - FOREACH_DEVICE_TAG(dev, val) + FOREACH_DEVICE_CURRENT_TAG(dev, val) if (token_match_string(token, val)) return token->op == OP_MATCH; return token->op == OP_NOMATCH;