summaryrefslogtreecommitdiff
path: root/udev_rules.c
AgeCommit message (Collapse)Author
2005-06-27add ID_TYPE to the id probersKay Sievers
Export the type of device from ata_id and scsi_id, also strip leading and trailing whitespace and substitute consecutive whitespace with a single underline char. From: Hannes Reinecke <hare@suse.de> Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26store the imported device information in the udevdbKay Sievers
Any program can query with udevinfo for persistent device attributes evaluated on device discovery now. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT allow to import program returned keys into the envKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25unify execute_command() and execute_program()Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25IMPORT=<file> allow to import a shell-var style config-fileKay Sievers
This allows to source-in a file into the udev environment to have the defined keys available for later processing by udev itself or the forked helper programs. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-24allow rules to be compiled to one binary fileKay Sievers
All the rule files can be compiled into a single file, which can be mapped into the udev process to avoid parsing the rules with every event. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-20prepare for module loading rules and add MODALIAS keyKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: handle all events - not only class and block devicesKay Sievers
Handle all events with rules. If udev is expected to handle hotplug.d/ the exernal helper must be called. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: clear lists if a new value is assignedKay Sievers
Former values are cleared if SYMLINK=<value> is used. To add a value SYMLINK+=<value> is now needed. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05udev: allow final assignments :=Kay Sievers
The use of KEY:=<value> will make the key unchangeable by later rules. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-04-26[PATCH] add RUN key to be able to run rule based notificationkay.sievers@vrfy.org
SUBSYSTEM=="block", RUN="/sbin/program" will execute the program only for block device events. ACTION="remove", SUBSYSTEM=="block", RUN"/sbin/program" will execute the program, if a block device is removed.
2005-04-26[PATCH] move execute_program to utils + add action to init_devicekay.sievers@vrfy.org
2005-04-26[PATCH] correct correction for error path for PROGRAM executionkay.sievers@vrfy.org
2005-04-26[PATCH] correct error path for PROGRAM executionkay.sievers@vrfy.org
2005-04-26[PATCH] check for strlen()==0 before accessing strlen()-1kay.sievers@vrfy.org
2005-04-26[PATCH] allow to match against empty key valueskay.sievers@vrfy.org
2005-04-26[PATCH] read %s{}-sysfs values at any device in the chainkay.sievers@vrfy.org
2005-04-26[PATCH] udev_rules.c: don't change sysfs_device while walking up the device ↵kay.sievers@vrfy.org
chain
2005-04-26[PATCH] remove untrusted chars read from sysfs-values or returned by PROGRAMkay.sievers@vrfy.org
Better remove characters that are useless in a device node name. It may be a security risk to pass any character read from e.g. a sysfs attribute to a shell script we execute later. Prevent the modification of the libsysfs attribute value cache. Clear PROGRAM result if the execution encountered an error.
2005-04-26[PATCH] support log-priority levels in udev.confkay.sievers@vrfy.org
2005-04-26[PATCH] correct rule match for devices without a physical devicekay.sievers@vrfy.org
2005-04-26[PATCH] remove unneeded code, libsysfs does this for uskay.sievers@vrfy.org
2005-04-26[PATCH] add ENV{} key to match agains environment variableskay.sievers@vrfy.org
2005-04-26[PATCH] simplify sysfs_pair handlingkay.sievers@vrfy.org
2005-04-26[PATCH] support =, ==, !=, += for the key match and assignmentkay.sievers@vrfy.org
2005-04-26[PATCH] add OPTION="last_rule" to skip any later rulekay.sievers@vrfy.org
2005-04-26[PATCH] rename namedev_dev to udev_rulekay.sievers@vrfy.org