1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
Commit Graph

2234 Commits

Author SHA1 Message Date
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
arnd@arndb.de
ae2859df40 [PATCH] add bus id modifier
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 21:06:24 -07:00
greg@kroah.com
54e3a5d3ae [PATCH] change release target in makefile. 2005-04-26 21:06:24 -07:00
greg@kroah.com
5e6e29fd35 [PATCH] change debug level on printf values for now. 2005-04-26 21:06:24 -07:00
greg@kroah.com
fb2e1c4d6a [PATCH] updated demo config file. 2005-04-26 21:06:24 -07:00
greg@kroah.com
85f3a7c3e0 [PATCH] add some documentation of the modifiers to the default config file. 2005-04-26 21:06:24 -07:00
greg@kroah.com
e366a45961 [PATCH] add demo config file. 2005-04-26 21:06:24 -07:00
greg@kroah.com
f54b927e8b [PATCH] add printf option to label test to verify it works. 2005-04-26 21:06:24 -07:00
greg@kroah.com
7408a7fbb5 [PATCH] fix up printf-like functionality due to previous changes. 2005-04-26 21:06:24 -07:00
kay.sievers@vrfy.org
98b88dbf70 [PATCH] implement printf-like placeholder support for NAME
> 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 21:06:24 -07:00
greg@kroah.com
30defadd3f [PATCH] get the major/minor number before we name the device.
Will come in handy later...
2005-04-26 21:06:24 -07:00
greg@kroah.com
c521693b54 [PATCH] add scsi_id "extra" program from Patrick Mansfield <patmans@us.ibm.com> 2005-04-26 21:06:24 -07:00
greg@kroah.com
04a091d47e [PATCH] Add multipath "extra" program from Christophe Varoqui, <christophe.varoqui@free.fr> 2005-04-26 21:06:24 -07:00
greg@kroah.com
20ff86bd71 [PATCH] trailing whitespace cleanups. 2005-04-26 21:06:24 -07:00
greg@kroah.com
ca1cc0fe74 [PATCH] splig LABEL and NUMBER into separate functions.
Now items are processed in priority order, fixing that bug.
2005-04-26 21:06:24 -07:00
greg@kroah.com
a38c862f88 [PATCH] add TOPO regression test. 2005-04-26 21:06:23 -07:00
greg@kroah.com
8c51bbfe5f [PATCH] move TOPOLOGY rule to it's own function. 2005-04-26 21:06:23 -07:00
greg@kroah.com
8a0c11d360 [PATCH] fix bug where NUMBER and TOPOLOGY would not work for partitions. 2005-04-26 21:06:23 -07:00
greg@kroah.com
7bd22a78a1 [PATCH] clean up the way we find the sysdevice for a block device for namedev. 2005-04-26 21:06:23 -07:00
greg@kroah.com
4c7f03c33f [PATCH] updated label test script (tests for partitions now.) 2005-04-26 21:06:23 -07:00
greg@kroah.com
120d45d0a1 [PATCH] split REPLACE and CALLOUT into separate functions
Finally starting to process this in priority order, not config file order.
2005-04-26 21:06:23 -07:00
greg@kroah.com
07b80e6d55 [PATCH] add debug line for REPLACE call. 2005-04-26 21:06:23 -07:00
greg@kroah.com
75ff8da8ab [PATCH] add replace test 2005-04-26 21:06:23 -07:00
greg@kroah.com
139d41e988 [PATCH] add more sysfs test tree files. 2005-04-26 21:06:23 -07:00
greg@kroah.com
e40fec176b [PATCH] change UDEV_SYSFS_PATH environment variable due to libsysfs change. 2005-04-26 21:06:23 -07:00
greg@kroah.com
dc5cecf659 [PATCH] fix bug in klibc's isspace function. 2005-04-26 21:06:23 -07:00
dsteklof@us.ibm.com
8d8172514d [PATCH] patch for libsysfs sysfs directory handling
Here's a quick patch to:

1) Add an environment variable "SYSFS_PATH" that libsysfs will check
for when getting mount point before searching system's sysfs mount
point.

2) A quick fix to sysfs_get_link where the bug was.

I have tested this out with libsysfs and with udev. I couldn't test
with klibc because I haven't got the tree to build with klibc without
my changes either. I made the link but get an error finding
linux/linits.h. I will figure that out.

Please have a look at the patch. If it's agreeable, please test it. I
really want to add some generic path manipulation functions for the
sysfs_get_link error, rather than my patch's hack. But, I haven't had
time yet to do that. You really sounded like you needed this for
testing, so I'm sending it out to you. I should probably add a
function to set the env variable(?).
2005-04-26 21:06:23 -07:00
greg@kroah.com
e308ebb70f [PATCH] fix udev-add.c to build properly with older versions of gcc. 2005-04-26 21:06:23 -07:00
kay.sievers@vrfy.org
da86c7f02f [PATCH] more manpage tweaks
man page style fixes
  present the tiny udev in bold font :)
2005-04-26 21:06:23 -07:00
kay.sievers@vrfy.org
218eae8727 [PATCH] add support for subdirs
support subdirectory creation/removal for NAME="/devfs/is/crazy/video0"
  create parent subdirs for device node if needed
  remove subdirs when last node is removed
2005-04-26 21:06:23 -07:00
kay.sievers@vrfy.org
c19a6b304c [PATCH] add uid/gid to nodes
set uid/gid of node specified in udev.permissions
  only numeric id's are supported cause we can't resolve with
  klibc or libc before real /etc is mounted
2005-04-26 21:06:23 -07:00