1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00
Commit Graph

159 Commits

Author SHA1 Message Date
greg@kroah.com
6142386306 [PATCH] remove the lfs startup script on request of the author.
The distro now has its own version, so this one is not needed.
2005-04-26 23:21:58 -07:00
greg@kroah.com
83e1f809c9 [PATCH] clean up the aoe char device rules, and delete the block one as it's not needed. 2005-04-26 23:21:58 -07:00
greg@kroah.com
78b574cfcd [PATCH] add aoe block and char device rules to the gentoo rule file. 2005-04-26 23:21:58 -07:00
kay.sievers@vrfy.org
b9a8c4821a [PATCH] remove default_* permissions from udev.conf file
With the "permissions only rules" we can just place:
 
   MODE="0660", OWNER="root", GROUP="root"
 
at the beginning of the rules file and get exactly the same behavior.
If no values are given the compiled-in defaults are used.
2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
eb8700908c [PATCH] update Fedora config files and add some more tests 2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
87da5b2c65 [PATCH] add SUBSYSTEM rule to catch all block devices and apply the disk permissions 2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
c07068d5e0 [PATCH] update Fedora config files 2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
eabfc97367 [PATCH] handle renamed network interfaces properly if we manage hotplug.d/
If we take over the hotplug call and manage the events we don't need
to call the event fake script in dev.d/. Just set all expected values
to the new network interface name and call hotplug.d/. This way the
device renaming is completely handled inside of udev and userspace
can't get confused.
2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
a07dc29e60 [PATCH] add OnStream tape drive rules
On Sun, 2004-12-19 at 17:36 +0000, Willem Riede wrote:
Would you mind adding OnStream tape drives?
> 
> KERNEL="osst*",         NAME="%k", GROUP="tape", MODE="0660"
> KERNEL="nosst*",        NAME="%k", GROUP="tape", MODE="0660"
2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
4ae6d03f39 [PATCH] simplify rules file by setting default mode to 0660
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote:
> It may be better to use default_mode="0660", I do not think that there
> are any mode 600 devices. This would allow setting only the group for
> most of them.
2005-04-26 23:19:09 -07:00
kay.sievers@vrfy.org
2c97d705dc [PATCH] initial merge of fedora udev.permissions into udev.rules 2005-04-26 23:19:08 -07:00
kay.sievers@vrfy.org
90726e43c9 [PATCH] fix some typos in gentoo's udev.rules introduced by the merge 2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org
878f3218e1 [PATCH] initial merge of gentoo udev.permissions into udev.rules 2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org
09a9ba58c6 [PATCH] update Fedora config files 2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org
1e473f4c45 [PATCH] update Fedora config files 2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org
8b36cc0f17 [PATCH] complete removal of explicit udev permissions config file 2005-04-26 23:17:47 -07:00
greg@kroah.com
06ed11be3e [PATCH] add more debian rules files. 2005-04-26 23:10:31 -07:00
greg@kroah.com
f01a9ca1a2 [PATCH] move distro specific config files into their own directories 2005-04-26 23:10:24 -07:00
Greg KH
5e7d9f4060 more merge fixups 2005-04-26 23:10:15 -07:00
greg@kroah.com
e0a17b749f [PATCH] update debian rules files. 2005-04-26 23:06:10 -07:00
greg@kroah.com
55b0508969 [PATCH] added asterix rules to the gentoo file. 2005-04-26 23:06:10 -07:00
greg@kroah.com
de5d2ee0a7 [PATCH] fix gentoo scsi cdrom rule
http://bugs.gentoo.org/show_bug.cgi?id=73208
2005-04-26 23:06:10 -07:00
greg@kroah.com
d18c91df7f [PATCH] use udevstart for udev.init.* files.
Thanks to Kay for pointing it out.
2005-04-26 23:06:10 -07:00
greg@kroah.com
69bef84191 [PATCH] delete a bunch of files no longer needed.
Thanks to Kay for pointing it out.
2005-04-26 23:06:10 -07:00
kay.sievers@vrfy.org
e4b5f339c7 [PATCH] update Fedora dev.d/ example and remove unused conf.d/ directory 2005-04-26 23:06:10 -07:00
Greg KH
97adaace4f more fixups 2005-04-26 22:54:32 -07:00
sschweizer@gmail.com
8a0dc204e9 [PATCH] Allow GROUP to have modifiers in it 2005-04-26 22:43:36 -07:00
kay.sievers@vrfy.org
2b41e68a08 [PATCH] replace tdb database by simple lockless file database
This makes the udev operation completely lockless by storing a
file for every node in /dev/.udevdb/* This solved the problem
with deadlocking concurrent udev processes waiting for each other
to release the file lock under heavy load.
2005-04-26 22:16:40 -07:00
azarah@nosferatu.za.org
9dfe20eff7 [PATCH] Some updates for Gentoo's udev rules
Hi,

Here is a few updates for the udev.rules.gentoo from udev package.
I will summarise it briefly:

1)  The last change you did to legacy tty's is wrong.

I say this because:
1a)  The original devfs rules had both master and slave in /dev/pty:

nosferatu linux # grep devfs_name drivers/char/pty.c
        pty_driver->devfs_name = "pty/m";
        pty_slave_driver->devfs_name = "pty/s";
nosferatu linux #


1b)  If you refer to '2.6.8.1-mm1 Tty problems?', you will see that
the /dev/tty/ directory our rules create, replaces this symlink:

nosferatu portage # ls -l /dev/tty
crw-rw-rw-  1 root tty 5, 0 Nov 14 17:06 /dev/tty
nosferatu portage #

which is used to determine the controlling tty.

2)  Somebody added the /dev/cpu/microcode rule, but it was not run
as there was an older rule before that placing it in /dev/misc (which
is wrong).  Just remove the first broken rule

3)  Some form/tab cleanups.  Reorder rules alphabetically according to
device class to make searching/editing easier.
2005-04-26 22:12:41 -07:00
greg@kroah.com
97a0e3c06e [PATCH] add cdsymlinks.sh support to gentoo rules file. 2005-04-26 22:09:26 -07:00
greg@kroah.com
3874126807 [PATCH] fix gentoo legacy tty rule
I thought I had fixed this a long time ago...
2005-04-26 22:09:26 -07:00
greg@kroah.com
069410dbb4 [PATCH] add inotify to the rules for gentoo 2005-04-26 22:08:27 -07:00
greg@kroah.com
4a760b3334 [PATCH] fix stupid cut-and-paste error for msr devices on gentoo boxes. 2005-04-26 22:06:44 -07:00
greg@kroah.com
13299c29e7 [PATCH] add debian config files.
taken from latest udev debian package.
2005-04-26 22:02:45 -07:00
greg@kroah.com
91d55528e1 [PATCH] remove the debian specific file, as they don't want to share with the rest of the world :( 2005-04-26 21:47:44 -07:00
md@Linux.IT
d30ef6b192 [PATCH] small udev patch
You should also remove etc/dev.d/default/dbus.dev which does not exist
anymore.

BTW, please remove etc/init.d/udev.debian because it is broken.
2005-04-26 21:47:44 -07:00
kpfleming@backtobasicsmgmt.com
b889880073 [PATCH] respect prefix= setting in built udev.conf (updated)
Here is a revised version of the patch. Again, it modifies the Makefile
to respect the prefix= setting when putting paths to
/etc/udev/{rules.s,permissions.d} into the built /etc/udev/udev.conf
file. It also changes the Makefile to create this file at "make" time,
not "make install" time. This allows for udevdir to be specified at
"make" time (thus putting the correct path into udev.conf), but not
specified at "make install" time (thus allowing the installation to
proceed without trying to use the wrong directory).

 Submitted By: Kevin P. Fleming <kpfleming@linuxfromscratch.org>
 Date: 2004-09-16
 Initial Package Version: 032
 Origin: David Jensen
 Description: correct udev's Makefile and template config file
 to respect the "prefix=" setting supplied when it is built; also
 build etc/udev/udev.conf at "make" time, not "make install" time
2005-04-26 21:37:02 -07:00
greg@kroah.com
1764266da0 [PATCH] kdetv wants to see device nodes in /dev 2005-04-26 21:37:02 -07:00
greg@kroah.com
a2383407b3 [PATCH] add symlink for video rule. 2005-04-26 21:37:00 -07:00
greg@kroah.com
00d063985a [PATCH] Fix old-style pty breakage in rules file for tty device.
Thanks to Martin Schlemmer <azarah@nosferatu.za.org> for the fix.
2005-04-26 21:37:00 -07:00
greg@kroah.com
c449ee6f7f [PATCH] add rules for i386 cpu devices. 2005-04-26 21:37:00 -07:00
greg@kroah.com
bf9c357633 [PATCH] add permission for legotower usb devices. 2005-04-26 21:36:59 -07:00
tao@kernel.org
b9e3301c3b [PATCH] Minor POSIX-fixes for udev
The attached patch contains a few patches against udev, to remove
use of various XSI:isms and bash:isms, and to change two scripts form
/bin/bash to /bin/sh.  None of the bash-scripts in test/ uses any
bash-specific functions as far as I know, but I didn't touch them since
they aren't used runtime.

Rationale:
* Both of the /bin/bash-scripts are totally free from bashisms, hence they
  don't need to be /bin/bash; using /bin/sh instead helps (mainly)
  embedded-people

* local and source are bash:isms (well, they exist in several other
  shells as well, but they aren't part of POSIX or any of its extensions)

* -a in tests is an XSI-extension, not part of strict POSIX, and is
  easily replaced by &&
  | http://www.opengroup.org/onlinepubs/009695399/utilities/test.html

* Use of fgrep is deprecated in POSIX in favour of grep -F (though fgrep
  will remain in use for a long time...)
  | http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html

The fgrep-change isn't really necessary, since fgrep can always be
implemented as a shell-script, but the rest of the changes would really
be appreciated.
2005-04-26 21:36:59 -07:00
azarah@gentoo.org
41ffb32e8d [PATCH] add microcode rule to permissions.gentoo file
Add microcode rule, remove duplicate rtc and psaux rules,
  and order alphabetically.
2005-04-26 21:36:59 -07:00
greg@kroah.com
ea08d6fc3e [PATCH] add permission rule for jogdial device. 2005-04-26 21:36:59 -07:00
greg@kroah.com
58ecc5d77f [PATCH] fix permission problem with input event and ts nodes for gentoo 2005-04-26 21:36:58 -07:00
greg@kroah.com
ff0977b12e [PATCH] change default perms of misc/rtc to be readable by anyone. 2005-04-26 21:36:21 -07:00
greg@kroah.com
e978da492b [PATCH] tweak the gentoo default permission rules as they are wrong for tty and misc devices. 2005-04-26 21:35:47 -07:00
greg@kroah.com
7f639ff99e [PATCH] add udev.permissions.slackware file.
From Lucas de Souza Santos <lucasdss@yahoo.com.br>
2005-04-26 21:35:17 -07:00
greg@kroah.com
477f5b63ec [PATCH] add more permissions based on SuSE's recommendations. 2005-04-26 21:35:16 -07:00
greg@kroah.com
3a0b657b76 [PATCH] added rules for tun and raw devices 2005-04-26 21:35:16 -07:00
greg@kroah.com
56dbd7dfb0 [PATCH] add udev conf.d file. 2005-04-26 21:35:16 -07:00
greg@kroah.com
87afc6dea0 [PATCH] Switch the default config to point to a directory for the rules and permission files. 2005-04-26 21:35:16 -07:00
greg@kroah.com
6763c8a5a1 [PATCH] update the Red Hat .dev files to work on other distros 2005-04-26 21:35:15 -07:00
greg@kroah.com
b4eafd9467 [PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage
Thanks to Red Hat for them.
2005-04-26 21:35:15 -07:00
greg@kroah.com
e3f83d532e [PATCH] added rule to put USB printers in their proper places.
Thanks to Dan Weber <dan@mirrorlynx.com> for the info.
2005-04-26 21:35:15 -07:00
greg@kroah.com
a04913b568 [PATCH] added rules for CAPI devices.
Thanks to Marcel Holtmann <marcel@holtmann.org> for the information.
2005-04-26 21:35:15 -07:00
greg@kroah.com
0e404ee1ef [PATCH] added a dev.d alsa script to help people out.
Originally by Marco d'Itri <md@Linux.IT>
2005-04-26 21:35:15 -07:00
greg@kroah.com
d5853b48fb [PATCH] add hotplug.dev script to handle renamed network devices. 2005-04-26 21:35:13 -07:00
greg@kroah.com
150aa5aaf1 [PATCH] add netlink rules to devfs and gentoo rules files. 2005-04-26 21:35:13 -07:00
greg@kroah.com
b085ec0d56 [PATCH] added USB device rules to rules files. 2005-04-26 21:35:13 -07:00
greg@kroah.com
b579916fb5 [PATCH] clean up the gentoo rules file a bit more, adding dri rules. 2005-04-26 21:35:13 -07:00
greg@kroah.com
69b94397d3 [PATCH] fix up udev.rules to handle oss rules better.
Patch from Jordan <lx_xero@comcast.net>
2005-04-26 21:35:12 -07:00
greg@kroah.com
357f44a534 [PATCH] move udev_dbus to extras/dbus
Should build now, but might have linking problems.
2005-04-26 21:35:11 -07:00
ken@cgi101.com
3e16482d25 [PATCH] Added line to udev.permissions.redhat
Added this line to have xterms provide a prompt.
2005-04-26 21:35:08 -07:00
greg@kroah.com
2ef3bc2b70 [PATCH] Remove Debian permission files as the Debian maintainer doesn't seem to want to share :( 2005-04-26 21:35:07 -07:00
greg@kroah.com
5ba7d3d603 [PATCH] update the Gentoo rules files. 2005-04-26 21:35:07 -07:00
greg@kroah.com
c9043d4597 [PATCH] Add Red Hat rules and permissions files
Taken from udev-018-2.src.rpm from Fedora Devel.
2005-04-26 21:35:07 -07:00
kay.sievers@vrfy.org
311e9ae681 [PATCH] udev - man page update
Here is a small change to the udev man page:

  - clarify the use of the NAME{all_partitions} syntax
    and add a example to udev.rules.example
  - mention the empty NAME field to ignore the device
  - prepare a SYMLINK field for the addition of Andrey's
    "multiple symlinks" documentation :)
2005-04-26 21:35:06 -07:00
greg@kroah.com
2b7289ae88 [PATCH] update udev.rules.gentoo with new config file format. 2005-04-26 21:32:29 -07:00
greg@kroah.com
e59d338c96 [PATCH] Update the Gentoo udev.rules and udev.permissions files
These are very good devfs-like rules for others to use if they want to.
2005-04-26 21:32:29 -07:00
greg@kroah.com
1d24d9977d [PATCH] Create a udev.rules.examples file to hold odd udev.rules
These are for examples only, not for everyone to use as they cause too
many problems for different people when they are in the main udev.rules
file.
2005-04-26 21:32:29 -07:00
ext.devoteam.varoqui@sncf.fr
3217d739fb [PATCH] symlink dm-[0-9]* rule 2005-04-26 21:32:29 -07:00
greg@kroah.com
8fff7b42b4 [PATCH] start up udevd ourselves in the init script to give it some good priorities. 2005-04-26 21:32:28 -07:00
john-hotplug@fjellstad.org
24f8f09876 [PATCH] init.d debian patch
I dualboot between 2.4.x and 2.6.x right now, and although I
want udev to start up when 2.6 is booting, I don't want it to try when
2.4.x is booting.

This is a small patch to not start up udev if sysfs is not
mounted.
2005-04-26 21:32:28 -07:00
greg@kroah.com
20f86361f4 [PATCH] update the red hat init script to handle nodes that are not present
Thanks to Gentoo for the list of these files.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
88f09368b3 [PATCH] udev - switch callout part selector to {attribute}
Here we change the magic callout part number selector to the new
atribute syntax. The syntax to select the second part of the callout string:

 '%2c' is now '%c{2}'

I think it's more clear and we no longer misuse the length argument.

The old syntax is still supported, but we should remove it some
time in the future.
2005-04-26 21:32:28 -07:00
kay.sievers@vrfy.org
16378373cb [PATCH] udev - switch SYSFS_file to SYSFS{file}
Here we switch the configs and man pages to the new attribute syntax.
Also the 'partition trick' is mentioned in udev.8

I think it's more clear visible now, that inside the brackets are user
supplied values used and not some magic keys handled:

  'SYSFS_dev' is now 'SYSFS{dev}'

The old syntax is still supported.
2005-04-26 21:32:28 -07:00
greg@kroah.com
1a3b802ff2 [PATCH] update the init.d udev script based on a patch from Red Hat. 2005-04-26 21:32:27 -07:00
greg@kroah.com
552a4d426f [PATCH] remove the .udev.tdb when installing or uninstalling to be safe. 2005-04-26 21:32:27 -07:00
greg@kroah.com
66a9021760 [PATCH] remove the database at startup. 2005-04-26 21:32:27 -07:00
kay.sievers@vrfy.org
0c25b2066d [PATCH] udev - fix cdrom symlink rule
We only need to look at the device, not at the partitions.
2005-04-26 21:32:26 -07:00
azarah@nosferatu.za.org
4d803d8d04 [PATCH] make logging a config option
Once again, patch to make logging a config option.

Reason for this (since you asked for it):
 - In our setup it is easy (although still annoying) .. just edit the
   ebuild, add logging support (or remove it) and rebuild.  For say a
   binary distro, having the logging is useful for debugging some
   times, but its more a once of, or rare thing, as you do not add or
   change config files every day.  Sure, we can have logging by
   default, but many do not want ~300 lines of extra debugging in their
   logs is not pleasant, and they will complain.  Rebuilding the
   package for that binary package (given the users it is targeted to)
   is usually not within most users grasp.
2005-04-26 21:32:26 -07:00
greg@kroah.com
79080c2664 [PATCH] kill the last examples that contained the %D option. 2005-04-26 21:13:20 -07:00
mbuesch@freenet.de
25f8a5ad64 [PATCH] LFS init script update 2005-04-26 21:13:18 -07:00
kay.sievers@vrfy.org
765cbd9759 [PATCH] set default owner/group in db - update
I've edited the man page today, so this is alreay included :)

Also a few more trivials:
  o added the defaults to udev.conf.in
  o removed class_dev from get_default_mode(), to match with Hanna's
  o changed size of mode_str to MODE_SIZE
  o changed a few char compares from from 0x00 to '\0'
2005-04-26 21:13:17 -07:00
flamingice@sourmilk.net
5e4f123888 [PATCH] minor patch for devfs rules
I've attached a patch that adds a few rules to udev.rules.devfs, making it
look a little more like devfs on my system. (I have the sysfs patches from
2.6.1-rc1-mm2) I added rules for oss, misc, floppy, and input devices. The
oss rules look like trouble with a wildcard at the end of each name, but I'm
not sure how I can make it any better.

Devfs has a bunch of other devices in the floppy directory for floppies
formatted in unusual ways, but I don't see them in udev. Not that I ever used
them, since they're usually automatically detected.
2005-04-26 21:13:16 -07:00
greg@kroah.com
18f0045bc8 [PATCH] remove the %D modifier as it is not longer needed. 2005-04-26 21:13:16 -07:00
greg@kroah.com
45d57088f9 [PATCH] remove unneeded keyboard rule. 2005-04-26 21:13:16 -07:00
greg@kroah.com
1782087e4f [PATCH] added input device rules to udev.rules and udev.rules.devfs 2005-04-26 21:13:16 -07:00
kay.sievers@vrfy.org
7e5f7397f9 [PATCH] udev - CALLOUT is PROGRAM now
replace CALLOUT by PROGRAM and fix old rule format
2005-04-26 21:13:16 -07:00
greg@kroah.com
1eefb969ab [PATCH] oops, forgot to fix up the PROGRAM result from ID to RESULT in the config files. 2005-04-26 21:13:15 -07:00
elkropac@students.zcu.cz
655f414dde [PATCH] fix udev directory for Debian init script
there is also patch on debian init.d file, it uses variable $udev_dir
also when creating and removing symlinks
2005-04-26 21:13:15 -07:00
greg@kroah.com
86673eb3ed [PATCH] Add alsa device rules and a few other devfs rules.
Thanks to Libor Klepac <elkropac@students.zcu.cz> for the information
2005-04-26 21:13:15 -07:00
greg@kroah.com
71cf391508 [PATCH] convert the default rules files to the new format. 2005-04-26 21:13:15 -07:00
eike-hotplug@sf-tec.de
e64280b8b3 [PATCH] LSB init script and other stuff
I had too much time during the holidays, so I played a bit with udev. The
changes are like last time mostly on the init stuff. I'm sending you this as
a great diff which is just for comments.

What it does:
-fix a typo in Makefile
-use only one "grep -v" instead of many
-don't include BK-Files into release (shrinks the stuff to 30%!)
-add a new init script which is LSB compliant
-add some flags to choose which one to use
-use /etc/udev/udev.conf in Redhat init script as the source for the udev
directory. If this is not done then the init script may create a directory
which udev itself isn't using (I changed /udev to /Udev to avoid collisions
with /usr and ran into this)
-first check for sysfs_dir before creating udev_root (maybe someone else has
already fixed this, I saw this discussion on lkml)
2005-04-26 21:13:15 -07:00
greg@kroah.com
40041ff4f1 [PATCH] added dri rule to the default config file. 2005-04-26 21:13:15 -07:00
greg@kroah.com
8240b47514 [PATCH] added init.d udev script for debian
Thanks to Mathieu Segaud <matt@minas-morgul.org> for the file.
2005-04-26 21:13:14 -07:00
christophe@saout.de
f1db055ab2 [PATCH] add IGNORE rule type
On Wed, Dec 31, 2003 at 11:24:53AM -0800, Greg KH wrote:

> > There should be a possibility to tell udev not to create a device node.
> >
> > device-mapper: Usually set up by libdevmapper (or EVMS tools) which
> > creates the device node on its own under /dev/mapper/<name>.
> >
> > With udev a second device is created named /dev/dm-<minor> which is not
> > really needed.
>
> Good point.  Ok, I'll agree with you.  Care to make up a patch for this
> kind of feature?

Yes, I can try.

There was no way to tell not to do anything so I created one. Errors
are signalled via negative return values, so I thought that a positive,
non-zero one could mean to ignore the device. I don't like it but
perhaps you have a better solution.
2005-04-26 21:13:14 -07:00
greg@kroah.com
6a82707227 [PATCH] add cdrom rule for ide cdrom.
Rule came from Kay
2005-04-26 21:13:14 -07:00