summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-04-26[PATCH] more namedev whitespace cleanupskay.sievers@vrfy.org
attached is the last whitespace cleanup and debug text corrections.
2005-04-26[PATCH] only build klibc_fixups.c if we are actually using klibc.greg@kroah.com
2005-04-26[PATCH] add support for string group and string user names in udev.permissions.greg@kroah.com
This only works if you are using glibc. Patch based on patch from Marco d'Itri <md@Linux.IT>
2005-04-26[PATCH] add getgrnam and getpwnam to klibc_fixups files.greg@kroah.com
Hopefully the klibc_fixups code will not be needed eventually.
2005-04-26[PATCH] fix segfault in parsing bad udev.permissions filemd@Linux.IT
2005-04-26[PATCH] remove Makefile.klibcgreg@kroah.com
2005-04-26[PATCH] static klibc udev does not link against crt0.oolh@suse.de
On Wed, Nov 19, Greg KH wrote: > > I did 'make KLIBC=true' in the current bk tree. > > try 'make -f Makefile.klibc' in the current tree. For some reason I > couldn't figure out how to have Makefile work for both KLIBC=true and > KLIBC=false. But I didn't try too hard :) I dont understand that. please do rm -f Makefile.klibc; apply this patch and tell me what fails. works for me.
2005-04-26[PATCH] add udev-test perl script from Kay Sievers <kay.sievers@vrfy.org> ↵greg@kroah.com
which blows away my puny shell scripts.
2005-04-26[PATCH] added debian's version of udev.permissions.greg@kroah.com
Hm, should probably move all of the config file stuff to a new directory soon...
2005-04-26[PATCH] support arguments in callout execkay.sievers@vrfy.org
here is argument support for CALLOUT exec: CALLOUT, PROGRAM="/bin/echo -n xxx", BUS="usb", ID="xxx", NAME="webcam%n" results in: Nov 20 02:35:20 pim udev[30422]: get_major_minor: found major = 81, minor = 0 Nov 20 02:35:20 pim udev[30422]: exec_callout: callout to /bin/echo -n xxx Nov 20 02:35:20 pim udev[30422]: exec_callout: callout returned 'xxx' Nov 20 02:35:20 pim udev[30422]: get_attr: kernel number appended: 0 The feature is really nice, but the maximum argument count is hard coded to 8.
2005-04-26[PATCH] namedev.c - change order of fields in CALLOUTkay.sievers@vrfy.org
I want to bring the CALLOUT field ordering in line with the other methods, cause the current parsing relies on the ordering it's good to have it like the others. The BUS= is now the first expected field. Also made the last two remaining field names to uppercase and the man page callout example is updated.
2005-04-26[PATCH] namedev.c whitespace + debug text cleanupkay.sievers@vrfy.org
here is mainly a whitespace cleanup for namedev.c. I changed the dbg_parse() output a bit for better readability: current: Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER temp='/2-1.1' id='00:07.1' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER temp='/2-1' id='00:07.1' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER temp='/2-1.1' id='00:0b.0' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER temp='/2-1' id='00:0b.0' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:00:59 pim udev[25582]: do_number: NUMBER temp='/2-1.1' id='2-1.1' Nov 19 19:00:59 pim udev[25582]: do_number: device id '2-1.1' becomes 'webcam%n' - owner='', group ='', mode=0 becomes: Nov 19 19:23:40 pim udev[26091]: do_number: search '00:07.1' in '/2-1.1', path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:23:40 pim udev[26091]: do_number: search '00:07.1' in '/2-1', path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1' Nov 19 19:23:40 pim udev[26091]: do_number: search '00:0b.0' in '/2-1.1', path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:23:40 pim udev[26091]: do_number: search '00:0b.0' in '/2-1', path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1' Nov 19 19:23:40 pim udev[26091]: do_number: search '2-1.1' in '/2-1.1', path='/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.1' Nov 19 19:23:40 pim udev[26091]: do_number: found id '2-1.1', 'video0' becomes 'webcam%n' - owner='', group ='', mode=0
2005-04-26[PATCH] man page with udev.permissions wildcardkay.sievers@vrfy.org
here is the permissions wildcard text for the man page.
2005-04-26[PATCH] change to 006_bk versiongreg@kroah.com
2005-04-26[PATCH] v006udev/v006greg@kroah.com
2005-04-26[PATCH] v006 changeloggreg@kroah.com
2005-04-26[PATCH] add another line to udev.permissions in the proper format.greg@kroah.com
2005-04-26[PATCH] tweak replace_testgreg@kroah.com
2005-04-26[PATCH] fix permissions to work properly now.greg@kroah.com
Forgot about umask in mknod...
2005-04-26[PATCH] add real udev.permissions file to test directory.greg@kroah.com
2005-04-26[PATCH] fix namedev.c to build with older version of gcc.greg@kroah.com
2005-04-26[PATCH] apply permissions.conf support for wildcard and default namekay.sievers@vrfy.org
Permissions given in udev.permissions are not applied if no METHOD from udev.config is found. I've added do_kernelname() to scan for known permissions if we only use the default method. Simple support for wildcards is also added: #name:user:group:mode hdb*:2702:2702:0660 results in: drwxr-xr-x 2 root root 240 Nov 19 03:45 . drwxr-xr-x 23 root root 528 Nov 17 03:36 .. brw-r--r-- 1 root root 3, 0 Nov 19 03:45 hda brw-r--r-- 1 root root 3, 1 Nov 19 03:45 hda1 brw-r--r-- 1 root root 3, 2 Nov 19 03:45 hda2 brw-r--r-- 1 root root 3, 4 Nov 19 03:45 hda4 brw-r----- 1 kay kay 3, 64 Nov 19 03:45 hdb brw-r----- 1 kay kay 3, 65 Nov 19 03:45 hdb1 brw-r--r-- 1 root root 22, 0 Nov 19 03:45 hdc crw-r--r-- 1 root root 81, 0 Nov 19 03:34 webcam0
2005-04-26[PATCH] man page with included placeholder listkay.sievers@vrfy.org
mention the printf-like support for string substitution in the NAME field
2005-04-26[PATCH] add dumb test for all of the different modifiers.greg@kroah.com
2005-04-26[PATCH] update the TODO list with more items that people can easily do.greg@kroah.com
2005-04-26[PATCH] faster test scriptschris_friesen@sympatico.ca
I've attached a patch against 005 for both the block and tty scripts. I didn't bother running udev backgrounded, since as you say, the new code runs a lot faster.
2005-04-26[PATCH] move the test.block and test.tty scripts to the test/ directorygreg@kroah.com
2005-04-26[PATCH] add remove actions to the test scriptsgreg@kroah.com
2005-04-26[PATCH] turn DEBUG_PARSER off by default.greg@kroah.com
2005-04-26[PATCH] add some documentation for the %b modifier to the default config file.greg@kroah.com
2005-04-26[PATCH] fix make install rule for when the udev symlink is already there.greg@kroah.com
2005-04-26[PATCH] more robust config file parsing in namedev.carnd@arndb.de
After getting a number of different crashes for udev reading broken udev.config files, I decided to try to make the parser a little more robust. The behaviour is changed to stop reading the configuration file and logging the broken entry instead of silently ignoring it (is that good? It's easy to just print and continue). All strcpy()'s to a fixed length string are now implicitly limited to the bounds of the target string. I kept the -ENODEV return code for now, not sure if there should be different ones.
2005-04-26[PATCH] add bus id modifierarnd@arndb.de
On Tuesday 18 November 2003 02:14, Greg KH wrote: > On Mon, Nov 17, 2003 at 06:33:32PM +0100, Arnd Bergmann wrote: > > That would at least be part of the solution I'm looking for. How about > > extra format characters for bus_id and for the result of a callout > > program? > > Sure, I can see the use for that. Want to send a patch? :) > Take a look at the current bk tree (which has moved to > bk://linuxusb.bkbits.net/udev/ ) I've made finding that device a lot > easier now, and it works for all rule types. Great, just what I was missing. I didn't see the any link to the bk repository. Here's the patch for the bus_id. I'll need to think about the handling of callout results a bit more.
2005-04-26[PATCH] change release target in makefile.greg@kroah.com
2005-04-26[PATCH] change debug level on printf values for now.greg@kroah.com
2005-04-26[PATCH] updated demo config file.greg@kroah.com
2005-04-26[PATCH] add some documentation of the modifiers to the default config file.greg@kroah.com
2005-04-26[PATCH] add demo config file.greg@kroah.com
2005-04-26[PATCH] add printf option to label test to verify it works.greg@kroah.com
2005-04-26[PATCH] fix up printf-like functionality due to previous changes.greg@kroah.com
2005-04-26[PATCH] implement printf-like placeholder support for NAMEkay.sievers@vrfy.org
> Problem is, if you use the LABEL rule to match a device, like a SCSI > vendor, then all of the partitions, as well as the main block device, > will end up with the same name. That's why I added the "add the number" > hack to the LABEL rule. > > So yes, your patch is correct in that we shouldn't always be adding the > number to any match for LABEL (like for char devices), but if we do > that, then we break partitions. Your '%' patch fixes this, but I'd just > like to extend it a bit. Let me see what I can come up with... Oh, I see. Do you mean something like this: LABEL, BUS="usb", model="Creative Labs WebCam 3", NAME="webcam%n-%M:%m-test" results in: "webcam0-81:0-test" Nov 15 16:51:53 pim udev[16193]: get_class_dev: looking at /sys/class/video4linux/video0 Nov 15 16:51:53 pim udev[16193]: get_class_dev: class_dev->name = video0 Nov 15 16:51:53 pim udev[16193]: get_major_minor: dev = 81:0 Nov 15 16:51:53 pim udev[16193]: get_major_minor: found major = 81, minor = 0 Nov 15 16:51:53 pim udev[16193]: udev_add_device: name = webcam0-81:0-test Nov 15 16:51:53 pim udev[16193]: create_node: mknod(/udev/webcam0-81:0-test, 020666, 81, 0) implement printf-like placeholder support for NAME %n-kernel number, %M-major number, %m-minor number
2005-04-26[PATCH] get the major/minor number before we name the device.greg@kroah.com
Will come in handy later...
2005-04-26[PATCH] add scsi_id "extra" program from Patrick Mansfield <patmans@us.ibm.com>greg@kroah.com
2005-04-26[PATCH] Add multipath "extra" program from Christophe Varoqui, ↵greg@kroah.com
<christophe.varoqui@free.fr>
2005-04-26[PATCH] trailing whitespace cleanups.greg@kroah.com
2005-04-26[PATCH] splig LABEL and NUMBER into separate functions.greg@kroah.com
Now items are processed in priority order, fixing that bug.
2005-04-26[PATCH] add TOPO regression test.greg@kroah.com
2005-04-26[PATCH] move TOPOLOGY rule to it's own function.greg@kroah.com
2005-04-26[PATCH] fix bug where NUMBER and TOPOLOGY would not work for partitions.greg@kroah.com
2005-04-26[PATCH] clean up the way we find the sysdevice for a block device for namedev.greg@kroah.com