summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-09-07fix whitespaceKay Sievers
2009-09-07util_run_program(): skip multiple spaces in argv creationKay 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-07udev_queue_get_seqnum_sequence_is_finished(): fix possible file handle leakFlorian Zumbiehl
2009-09-07udevadm: remove symlink support for old commandsKay Sievers
2009-09-07test: catch possible bug in GOTO resolvingKay Sievers
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-04make raw USB printer devices accessible for lpMartin Pitt
Starting from version 1.4, cups now uses libusb and printer USB devices instead of the usblp generated /dev/usb/lpX ones. In order to not require the cups USB backend to run as root now, change raw USB printer devices to be root:lp 0660, similar to usblpX devices. This might also enable the hplip backend to not run as root, since this has always used raw device nodes. https://launchpad.net/bugs/420015
2009-09-01udev-rules.c: parse_file() - fix possible buffer overflowFlorian Zumbiehl
2009-09-01udev-rules.c: remove 'first_token' variableKay Sievers
2009-09-01udev_util_encode_string(): fix possible buffer overflowFlorian Zumbiehl
2009-09-01libudev-util.c: get_sys_link() - return error for empty link targetKay Sievers
2009-09-01util_resolve_sys_link(): fix possible buffer overflowFlorian Zumbiehl
2009-09-01ude_rules.c: fix possible NULL pointer dereference in get_key()Florian Zumbiehl
2009-09-01rules: sound - do not use /usr/bin/envMarco d'Itri
The C version of path_id does not look at the environment anymore, so there is no reason to empty it.
2009-09-01pci-db: make sure we actually read the pci.ids file instead of usb.idsLennart Poettering
Since the recent Makefile.am rework both usb-db and pci-db were built to read the usb.ids database file. This fix makes sure pci-db properly reads pci.ids instead. Originally pointed out by Marco d'Itri.
2009-08-31rules: suse - use NAME for mapper/controlKay Sievers
2009-08-31update READMEKay Sievers
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-30update TODOKay Sievers
2009-08-30util_create_path(): fix possible out of bounds array accessFlorian Zumbiehl
2009-08-30inotify_add_watch(): do not store watch, if it failedKay Sievers
On Sun, Aug 30, 2009 at 04:36, Marco d'Itri<md@linux.it> wrote: > inotify_add_watch may fail in udev_watch_begin, and then a link with > name -1 is created. > I do not know why, but it happened once on my system: > > lrwxrwxrwx 1 root root 27 Aug 4 11:27 -1 -> /devices/virtual/block/ram8
2009-08-29util_delete_path(): handle multiple leading slashesFlorian Zumbiehl
2009-08-29util_create_path(): fix errno usageKay Sievers
Based on a patch from: Florian Zumbiehl <florz@florz.de>
2009-08-29util_lookup_group(): fix memory leak if realloc() failsFlorian Zumbiehl
2009-08-29util_delete_path(): use util_strscpy()Florian Zumbiehl
2009-08-29util_unlink_secure(): chmod() before chown()Kay Sievers
Suggested by Florian Zumbiehl <florz@florz.de>.
2009-08-27doc: udevadm test *does* create nodes and links these daysKay Sievers
2009-08-27doc: writing_udev_rules updated for the new command namesMarco d'Itri
2009-08-26Revert "extras/keymap: Fix case matching for Micro-Star"Martin Pitt
This reverts commit 66bf63c05cdc4e9b09818aa5fab0b9d319a1c91c. Further debugging in https://launchpad.net/bugs/178860 showed that for some weird reason the correct key codes already come out of the "Video Bus" input device, and the previous commit would cause them to appear a second time through the standard keyboard device. This is a kernel bug in the end, but let's not break working things prematurely.
2009-08-26extras/keymap: Fix case matching for Micro-StarMartin Pitt
Some Micro-Star boards apparently have mixed case vendor, instead of all-caps. Update the glob to catch all such cases. https://launchpad.net/bugs/178860
2009-08-25assign errno for getgrnam_r()/getpwnam_r()Kay Sievers
On Mon, Aug 24, 2009 at 19:50, Lennart Poettering<lennart@poettering.net> wrote: > One little comment here: on POSIX getrnam_r() doesn't touch > errno. Instead it returns the error value as return value.
2009-08-24extras/keymap: Fix hold key on Acer Aspire 6920Martin Pitt
The Hold key locks the panel and is hardwired. It doesn't have a sensible keycode to map to, and shouldn't be overloaded either.
2009-08-24extras/modem-modeswitch: eject ZTE MF6xx fake CD-ROMsMartin Pitt
modem-modeswitch does not fully work on ZTE MF6xx modems, their fake CD-ROMs need to be properly ejected in order for the actual modem to appear. Add udev rule for this device (19d2:2000 in CD-ROM mode). https://launchpad.net/bugs/281335
2009-08-24extras/keymap: Add Acer Aspire 6920Martin Pitt
https://launchpad.net/bugs/407940
2009-08-20hid2hci: remove superfluous bmAttributes matchMario Limonciello
For the retrigger of the device on remove we were trying to match bmAttributes of self powered which is unnecessary.
2009-08-19change database file namesKay Sievers
With very deeply nested devices, We can not use a single file name to carry an entire DEVPATH. Use <subsystem>:<sysname> as the database filename, which should also simplify the handling of devices moving around, as these values will not change but still be unique. For the name stack we use the <maj>:<min> now as the filename. > On Tue, Aug 18, 2009 at 09:59:56AM -0400, Ric Wheeler wrote: > The first is that udev grumbles during boot about "file name too long" > like the following: > > Aug 17 06:49:58 megadeth udevd-event[20447]: unable to create db file > '/dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:04.0\x2f0000:17:00.0\x2f0000:18:0a.0\x2f0000:1f:00.0\x2fhost11\x2fport-11:0\x2fexpander-11:0\x2fport-11:0:0\x2fexpander-11:1\x2fport-11:1:0\x2fexpander-11:2\x2fport-11:2:17\x2fexpander-11:3\x2fport-11:3:1\x2fend_device-11:3:1\x2fbsg\x2fend_device-11:3:1': > File name too long
2009-08-19warn about non-readable or empty rules fileKay Sievers
2009-08-19print warning for NAME="%k" - it breaks the kernel supplied DEVNAMEKay Sievers
2009-08-18don't compare a non-existing function with NULLDaniel Mierswa
Obviously someone forgot something here or didn't use -ansi. Either way, index is nowhere declared so I assume the current behaviour is to check against the index() function coming from somewhere in the POSIX headers. The comparison doesn't make sense then. Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-08-16update NEWSKay Sievers
2009-08-16make: add commentKay Sievers
2009-08-16rule_generator: net - fix MATCHDEVIDKay Sievers
This got lost for some reason with an earlier change. Thanks to Marco d'Itri <md@linux.it> for noticing.
2009-08-16rules: rfkill has no group, so use 0644Kay Sievers
Thanks to Marco d'Itri<md@linux.it> for noticing.
2009-08-14udev-acl: allow to skip ACL handlingKay Sievers
2009-08-14configure.ac: version bumpKay Sievers
2009-08-14make: sort Makefile.am per target/extraKay Sievers
2009-08-14release 146Kay Sievers
2009-08-14make: fix issues from non-recursive conversionKay Sievers
2009-08-08udevd: block for 15 seconds after error when too old kernel is detectedKay Sievers
The compat code will go away some day and CONFIG_SYSFS_DEPRECATED kernels fail in too many setups now to be worth to support them.