]> err.no Git - systemd/commit
udevd: be more careful when matching against parents
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Sat, 1 Nov 2008 16:32:16 +0000 (17:32 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 1 Nov 2008 16:32:16 +0000 (17:32 +0100)
commitd15fcce4b3e90a27eb911bd954efd07219c1c9db
tree336bf613c116de88d917e17cfe731b4886f4be03
parent11ae7578505caa8df5604c6c86c82e9558439b30
udevd: be more careful when matching against parents

I'm worried about what will happen with things like

KERNELS=="*" # pointless rule
KERNELS=="doesnt-match" # another pointless rule

Since TK_RULE < TK_M_PARENTS_MAX, we will try to match all three tokens
against parents of the current device.  I can't think of a bad case,
but it's not exactly good either.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
udev/udev-rules.c