summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2006-03-29move all *_id programs to /lib/udev/Kay Sievers
2006-01-26don't add $SUBSYSTEM automatically as $1 to programsKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-16fix BUS, ID, $id usageKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16remove "udev_db" option from config fileKay Sievers
All udev state is kept in /$udev_root/.udev/ now. No option to configure that anymore, it will always be there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-10fix tests and remove no longer useful stuffKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-09remove our own copy of klibcKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-02test: add "driver" and "bus" links to test sysfs treeKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28remove no longer working udevd-test programKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27fix the new warnings I asked forKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27use DESTDIR on uninstall, no need to pass prefix to submakeKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-09-14add install test to 'make buildtest'Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14EXTRAS: cleanup and sync all MakefilesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06add edd_id tool to match BIOS EDD disk informationKay Sievers
Thanks to: John Hull <John_Hull@Dell.com> Matt Domsch <Matt_Domsch@Dell.com> Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30Makefile: remove all the duplicated rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-29udev_test.pl: we replace untrusted chars with '_'Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28start to enforce plain ascii or valid utf8Kay Sievers
No device node or symlink can have other characters as plain readable ascii or valid utf8. The /dev/disk/by-label/* symlinks can no longer contain weird stuff read from untrusted sources. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-16ENV{TEST}=="1" compares and ENV{TEST}="1" sets the environmentKay Sievers
This can be uses to export stuff to the event environment or to carry a state from one rule to another, like enabling/disabling later rules conditionally. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11added cdrom_id to the build checkGreg KH
2005-08-09add firmware_helper to load firmwareKay Sievers
From: Bill Nottingham <notting@redhat.com> Changed reading of firmware blob to mmap and let firmware_helper follow the setting of the log level with UDEV_LOG.
2005-07-19create_floppy_devices: add tool to create floppy nodes based on sysfs infoHannes Reinecke
2005-07-16allow rules to have labels and skip to next labelKay Sievers
This will allow us to have whole blocks of rules to skip conditionally. The following section creates the node "yes": GOTO="TEST" NAME="no" NAME="no2", LABEL="NO" NAME="yes", LABEL="TEST" NAME="no3"
2005-07-13dasd_id: add s390 disk-label proberHannes Reinecke
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-12IMPORT: add {parent} to import the persistent data of the parent deviceKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12allow multiple values to be matched with KEY=="value1|value2"Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix symlink values separated by multiple spacesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-07fix typo in group assignmentKay Sievers
Thanks to: Georgi Georgiev
2005-07-04add usb_id program to generate usb-storage device identifiersKay Sievers
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-06-30prepare RELEASE-NOTESKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25add ata_id to read serial numbers from ATA drivesKay Sievers
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-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-08udevd: allow starting of udevd with stopped exec-queueKay Sievers
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: move dev.d/ handling to external helperKay Sievers
Modern rules are expected to call notification and postprocessing with the RUN key. For compatibility the current behavior can be emulated with an external helper. 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-05-18remove detach_state files from the sysfs test tree.Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10Update permissions on test scripts so they will run properly now.Greg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-10hopefully fix up the symlinks in the test directoryGreg KH
Thanks to Kay for pointing this out. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-09[PATCH] Writing udev rules docs updateDaniel Drake
Here's a long overdue update to the udev rules docs, based on lots of user feedback from the last few months. Mostly updates to keep up with the new udev features, some clarifications and wording improvements. I added a section on rules for palm pilots due to the excessive amount of mail I get about them. I removed the nvidia stuff because it's out of date. Added another section about debugging using logs and udevtest. Removed the thanks list because I haven't been updating it and there are too many people to name now, sorry..!
2005-05-05Added symlinks thanks to Kay's script and git hacking.Greg KH
Now the tests should work again...
2005-04-26[PATCH] fix stupid all_partitions bugtklauser@access.unizh.ch
> On Mon, 2005-04-11 at 14:55 +0200, Norbert Preining wrote: > > On Mon, 11 Apr 2005, Kay Sievers wrote: > > > > brw-rw---- 1 root root 8, 0 2005-04-10 14:58 /dev/sdcard > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard1 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard2 > > > > brw-rw---- 1 root root 8, 1 2005-04-10 14:58 /dev/sdcard3 > > > > > > This looks broken. > > > > Good to hear. Yeah, I guess it's broken. In create_node() in udev_add.c there is always added 1 to the minor number, thus the error. The attached patch should fix this.
2005-04-26[PATCH] add test for make -j4 to build-checkkay.sievers@vrfy.org
2005-04-26[PATCH] udev-test.pl: add test for DEVNAME export to RUN environmentkay.sievers@vrfy.org
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] 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] 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.