summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
AgeCommit message (Collapse)Author
2011-05-16libudev: device - use DEVMODE from kernel as the default modeKay Sievers
2011-04-24libudev: list - use bit flags for 'sort' and 'unique'Kay Sievers
2011-04-23simplify rules file overwrite logicKay Sievers
The udev list already provides all we need, if we use the basename as the key, and request sorting and uniqueness.
2011-04-20udevd: rules files - accept empty or /dev/null linksKay Sievers
2011-04-20timeout handling without alarm()Kay Sievers
2011-04-14require explicit "db_persist" to exclude device info from --db-cleanupKay Sievers
2011-04-14"db_persist=" -> "db_persist"Kay Sievers
2011-04-14udevd: do not nice processesKay Sievers
2011-04-13udevadm: info --cleanup-dbKay Sievers
Most of the udev database from initramfs should be deleted before starting udev in the real root. udevadm: info --cleanup-db deletes all database entries in /run/udev. Events that processed IMPORT{db}, or mark devices explicitely as persistent, will be excluded.
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2011-03-15move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd ↵Kay Sievers
startup
2010-12-14check ifindex > 0 instead of subsystem == "net"Kay Sievers
2010-11-12udev-rules.c: change import property buffer to 16384 bytesHarald Hoyer
import_program_into_properties() should have the same line length as import_file_into_properties() see also https://bugzilla.redhat.com/show_bug.cgi?id=652318
2010-08-03malloc()+memset() -> calloc()Yin Kangkai
2010-08-02udevd: fix some memory leaks in error pathYin Kangkai
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
2010-07-07allow final assignment for OPTIONS:="nowatch"Kay Sievers
A final assignemnt operator will disable any device watching by inotify, and any possible later rules setting "watch" again will be ignored.
2010-05-31IMPORT{cmdline}: start at first char after '='Kay Sievers
2010-05-31add IMPORT{cmdline}Kay Sievers
2010-05-27while (1) -> for (;;)Kay Sievers
2010-05-25fix compilation with --enable-debugKay Sievers
2010-05-20create static nodes provided by kernel modules to allow module autoloadingKay Sievers
2010-05-12reset process priority before executing RUN+=Kay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581235
2010-05-07add info message when empty NAME is givenKay Sievers
2010-05-05warn when renaming kernel-provided nodes instead of adding symlinksKay Sievers
2010-05-03remove debug output during rules parsingKay Sievers
2010-04-22use the usual TAG+=, TAG= logicKay Sievers
2010-04-22all to match against a given TAG==Kay Sievers
2010-04-22add TAG= to improve event filtering and device enumerationKay Sievers
2010-04-21fix previous commitKay Sievers
2010-04-21remove left-over from ignore_remove and all_partitionsKay Sievers
2010-04-13remove "ignore_remove" optionKay Sievers
2010-04-13remove "all_partitions" optionKay Sievers
We can not predict the major/minor of non-existing devices: $ grep . /sys/class/block/sd*/dev /sys/class/block/sda1/dev:259:524288 /sys/class/block/sda2/dev:259:262144 /sys/class/block/sda3/dev:259:786432 /sys/class/block/sda4/dev:259:131072 /sys/class/block/sda/dev:259:0 /sys/class/block/sdb/dev:259:655360 /sys/class/block/sdc/dev:259:393216 If this functionality is still needed for some broken hardware, it needs to be solved with a tool not part of the udev package. Because such option is unreliable and unsafe to use.
2010-04-12replace "add|change" with "!remove"Kay Sievers
2010-04-12allow IMPORT{db}="KEY"Kay Sievers
2010-03-10libbudev-private: rename udev_list_entry_get_flag()Kay Sievers
2009-11-16print warning for BUS=, SYSFS{}=, ID=Kay Sievers
2009-11-16remove "ignore_device"Kay Sievers
There is no way to ignore an event these days. Libudev events can not be suppressed. It only prevents RUN keys from being executed, which results in an inconsistent behavior in current setups.
2009-11-04udevd: create /dev/.udev/rules.d/ before watching it wit inotifyKay Sievers
This should also address: On Tue, Nov 3, 2009 at 16:21, Marco d'Itri <md@linux.it> wrote: > udev_rules_new() in udev/udev-rules.c unconditionally creates the > directory. > This is a problem because the function is called also by e.g. udevadm > test, and creating /dev/.udev/ when it does not exist is an unacceptable > side effect which will break everything else that checks for its > existence to know if udev is running.
2009-10-28remove "last_rule" optionKay Sievers
Its use breaks too many things which expect to be run from independent later rules, and is an idication that something needs to be fixed properly instead.
2009-09-16fix SYMLINK{} option parsingKay Sievers
2009-09-09simplify "symlink name stack"Kay Sievers
With well defined and kernel-supplied node names, we no longer need to support a possible stack of conflicting symlinks and node names. Only symlinks with identical names can be claimed by multiple devices. This shrinks the former /dev/.udev/names/ significantly. Also the /dev/{block,char}/MAJ:MIN" links are excluded from the name stack - they are unique and can not conflict.
2009-09-08fix randonm findings from llvm-clang-analyzerKay Sievers
Thanks to Lennart for the log file!
2009-09-07fix whitespaceKay Sievers
2009-09-07util_run_program: restore signal mask before executing event RUN commandsJeremy Kerr
External programs triggered by events (via RUN=) will inherit udev's signal mask, which is set to block all but SIGALRM. For most utilities, this is OK, but if we start daemons from RUN=, we run into trouble (especially as SIGCHLD is blocked). This change saves the original sigmask when udev starts, and restores it just before we exec() the external command. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2009-09-07Revert "udev-rules.c: remove 'first_token' variable"Kay Sievers
That was a mistake. The variable is needed to be set before we parse the file. Thanks a lot to Alan Jenkins for spotting this. This reverts commit 710fdac1e49276683abe927472fe1b336960edd8.
2009-09-01udev-rules.c: parse_file() - fix possible buffer overflowFlorian Zumbiehl
2009-09-01udev-rules.c: remove 'first_token' variableKay Sievers
2009-09-01ude_rules.c: fix possible NULL pointer dereference in get_key()Florian Zumbiehl
2009-08-30use nanosleep() instead of usleep()Daniel Mierswa
POSIX.1-2001 declares usleep() function obsolete and POSIX.1-2008 removes it. [Kay Sievers] - include time.h - use const for timespec - scsi_id: drop rand() in retry loop - modem-probe: rename msuspend() to msleep()
2009-08-19warn about non-readable or empty rules fileKay Sievers