Commit Graph

9814 Commits

Author SHA1 Message Date
kay.sievers@vrfy.org 5b8ba50aa2 [PATCH] udev.8 tweak numeric id text
04-udev.8-tweak-numeric-id-text.diff
  o change "return value" to "returned string"
  o add textual owner/group example for udev.permissions
  o mention klibc compile as special case for udev.permissions
  o remove duplicated numeric owner clause
2005-04-26 21:13:04 -07:00
kay.sievers@vrfy.org 5499d31905 [PATCH] udev-test.pl add subdir test
03-udev-test.pl-add-subdir-test.diff
  o duplicate existing test and change it to explicitely test the subdir handling
2005-04-26 21:13:04 -07:00
kay.sievers@vrfy.org 6968d494d7 [PATCH] namedev.c strcat tweak
02-namedev.c-strcat-tweak.diff
  o cat the substitution to the already known end of the string instead of searching it another time
2005-04-26 21:13:04 -07:00
kay.sievers@vrfy.org f7b4eca455 [PATCH] overall whitespace + debug text conditioning
01-overall-whitespace+debug-text-conditioning.diff
  o cleanup whitespace
  o clarify a few comments
  o enclose all printed debug string values in ''
2005-04-26 21:13:03 -07:00
arnd@arndb.de 74894b53f8 [PATCH] klibc makefile fixes 2005-04-26 21:13:02 -07:00
greg@kroah.com fee6f4150d [PATCH] get rid of functions in klibc_fixups that are now in klibc 2005-04-26 21:13:02 -07:00
greg@kroah.com 02cbdf5eb9 [PATCH] sync up with the 0.84 version of klibc 2005-04-26 21:13:02 -07:00
greg@kroah.com 7e1b28e8fa [PATCH] fix udev init.d script to handle all class devices in sysfs. 2005-04-26 21:13:02 -07:00
greg@kroah.com 89f38d18ce [PATCH] fix the test.block and test.tty scripts due to their moveing. Also add a test.all script. 2005-04-26 21:13:02 -07:00
kay.sievers@vrfy.org f8f00338a1 [PATCH] udev-test.pl - tweaks
I found two missing characters and optimized $PWD.
2005-04-26 21:13:02 -07:00
greg@kroah.com 58a16d607b [PATCH] 007_bk version change to Makefile. 2005-04-26 21:13:02 -07:00
greg@kroah.com 44132eca4e [PATCH] v007 release 2005-04-26 21:13:02 -07:00
greg@kroah.com f02763a95b [PATCH] v007 Changelog 2005-04-26 21:13:02 -07:00
greg@kroah.com a86d6f5672 [PATCH] update default config file with a CALLOUT rule, and more documentation. 2005-04-26 21:13:02 -07:00
greg@kroah.com 67922099bf [PATCH] updated the man page with the latest format specifier changes. 2005-04-26 21:13:02 -07:00
greg@kroah.com f3b04a2e0a [PATCH] added ability to put format specifiers in the CALLOUT program string. 2005-04-26 21:13:02 -07:00
greg@kroah.com e5fbfe0a13 [PATCH] tweak udev-test.pl to report '0' errors if that's what happened. 2005-04-26 21:13:02 -07:00
kay.sievers@vrfy.org c124eafa23 [PATCH] - format char for CALLOUT output
here is a patch for inserting the callout output into NAME=.
ID= supports the usual wildcard to compare with the output.

I've moved all wildcard matching to a function cause this was the third occurrence.
Also attached is the last whitespace cleanup and debug text corrections.
The callout patch depends on the whitespace patch.


CALLOUT, BUS="usb", PROGRAM="/bin/echo -n return", ID="ret*", NAME="webcam-%c-"

results in:

Nov 21 17:33:51 pim udev[20399]: get_major_minor: found major = 81, minor = 0
Nov 21 17:33:51 pim udev[20399]: exec_callout: callout to '/bin/echo -n return'
Nov 21 17:33:51 pim udev[20399]: exec_callout: callout returned 'return'
Nov 21 17:33:51 pim udev[20399]: get_attr: substitute callout output 'return'
Nov 21 17:33:51 pim udev[20399]: udev_add_device: name = webcam-return-
Nov 21 17:33:51 pim udev[20399]: create_node: mknod(/udev/webcam-return-, 020660, 81, 0)
2005-04-26 21:13:02 -07:00
kay.sievers@vrfy.org 53dc383ee9 [PATCH] more namedev whitespace cleanups
attached is the last whitespace cleanup and debug text corrections.
2005-04-26 21:13:02 -07:00
greg@kroah.com 6a670d61bc [PATCH] only build klibc_fixups.c if we are actually using klibc. 2005-04-26 21:13:02 -07:00
greg@kroah.com 10950dfe84 [PATCH] add support for string group and string user names in udev.permissions.
This only works if you are using glibc.

Patch based on patch from Marco d'Itri <md@Linux.IT>
2005-04-26 21:13:02 -07:00
greg@kroah.com 2023350eec [PATCH] add getgrnam and getpwnam to klibc_fixups files.
Hopefully the klibc_fixups code will not be needed eventually.
2005-04-26 21:13:02 -07:00
md@Linux.IT 04a81cac0a [PATCH] fix segfault in parsing bad udev.permissions file 2005-04-26 21:13:02 -07:00
greg@kroah.com 388e2a6a47 [PATCH] remove Makefile.klibc 2005-04-26 21:06:26 -07:00
olh@suse.de ed83913730 [PATCH] static klibc udev does not link against crt0.o
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 21:06:26 -07:00
greg@kroah.com a367f04ee0 [PATCH] add udev-test perl script from Kay Sievers <kay.sievers@vrfy.org> which blows away my puny shell scripts. 2005-04-26 21:06:25 -07:00
greg@kroah.com 75d0730c84 [PATCH] added debian's version of udev.permissions.
Hm, should probably move all of the config file stuff to a new directory soon...
2005-04-26 21:06:25 -07:00
kay.sievers@vrfy.org bc43451131 [PATCH] support arguments in callout exec
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 21:06:25 -07:00
kay.sievers@vrfy.org cb08e0f253 [PATCH] namedev.c - change order of fields in CALLOUT
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 21:06:25 -07:00
kay.sievers@vrfy.org 8f43a65e4f [PATCH] namedev.c whitespace + debug text cleanup
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 21:06:25 -07:00
kay.sievers@vrfy.org d0a4a110b7 [PATCH] man page with udev.permissions wildcard
here is the permissions wildcard text for the man page.
2005-04-26 21:06:25 -07:00
greg@kroah.com 95d3e90130 [PATCH] change to 006_bk version 2005-04-26 21:06:25 -07:00
greg@kroah.com 378fe59875 [PATCH] v006 2005-04-26 21:06:25 -07:00
greg@kroah.com b981d07a19 [PATCH] v006 changelog 2005-04-26 21:06:25 -07:00
greg@kroah.com 4d595658c7 [PATCH] add another line to udev.permissions in the proper format. 2005-04-26 21:06:25 -07:00
greg@kroah.com d6d413dab7 [PATCH] tweak replace_test 2005-04-26 21:06:25 -07:00
greg@kroah.com 5bd1061cd6 [PATCH] fix permissions to work properly now.
Forgot about umask in mknod...
2005-04-26 21:06:25 -07:00
greg@kroah.com 3258c82887 [PATCH] add real udev.permissions file to test directory. 2005-04-26 21:06:25 -07:00
greg@kroah.com a1b8786ae6 [PATCH] fix namedev.c to build with older version of gcc. 2005-04-26 21:06:25 -07:00
kay.sievers@vrfy.org 09e52d5126 [PATCH] apply permissions.conf support for wildcard and default name
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 21:06:25 -07:00
kay.sievers@vrfy.org 4b710f033e [PATCH] man page with included placeholder list
mention the printf-like support for string substitution in the NAME field
2005-04-26 21:06:25 -07:00
greg@kroah.com db7a38df63 [PATCH] add dumb test for all of the different modifiers. 2005-04-26 21:06:25 -07:00
greg@kroah.com cd55637f42 [PATCH] update the TODO list with more items that people can easily do. 2005-04-26 21:06:25 -07:00
chris_friesen@sympatico.ca 8e5d592525 [PATCH] faster test scripts
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 21:06:25 -07:00
greg@kroah.com 17f73597fe [PATCH] move the test.block and test.tty scripts to the test/ directory 2005-04-26 21:06:25 -07:00
greg@kroah.com 1ac5204774 [PATCH] add remove actions to the test scripts 2005-04-26 21:06:24 -07:00
greg@kroah.com a43180955a [PATCH] turn DEBUG_PARSER off by default. 2005-04-26 21:06:24 -07:00
greg@kroah.com c34c7c5018 [PATCH] add some documentation for the %b modifier to the default config file. 2005-04-26 21:06:24 -07:00
greg@kroah.com baa936855e [PATCH] fix make install rule for when the udev symlink is already there. 2005-04-26 21:06:24 -07:00
arnd@arndb.de 70033702cd [PATCH] more robust config file parsing in namedev.c
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 21:06:24 -07:00