chiark / gitweb /
udev: allow removing tags via TAG-="foobar"
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 11:25:21 +0000 (13:25 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:22:16 +0000 (15:22 +0200)
commit8e3ba3772cadf6a8292b0da533062dd4d377af67
tree8d2830f26abacc98a53bd89ae1d7c3bc7d6ba744
parent2e1dd622ee7020a608c3397768ea245dcb6409d1
udev: allow removing tags via TAG-="foobar"

This extends the udev parser to support OP_REMOVE (-=) and adds support
for TAG-= to remove previously set tags. We don't fail if the tag didn't
exist.

This is pretty handy if we ship default rules for seat-assignments and
users want to exclude specific devices from that. They can easily add
rules that drop any automatically added "seat" tags again.
man/udev.xml
src/libudev/libudev-device.c
src/libudev/libudev-private.h
src/udev/udev-rules.c