1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00
Commit Graph

189 Commits

Author SHA1 Message Date
gregkh@suse.de
c29125aebb [PATCH] added frugalware udev ruleset. 2005-04-26 23:53:53 -07:00
gregkh@suse.de
677a6a84bd [PATCH] gentoo rule update for raid devices.
From Thierry Vignaud <tvignaud@mandrakesoft.com>
2005-04-26 23:53:53 -07:00
gregkh@suse.de
bc4235d38e [PATCH] fix gentoo fb permission issue. 2005-04-26 23:35:15 -07:00
greg@kroah.com
20da7623c7 [PATCH] remove gentoo permission file as it's not valid anymore. 2005-04-26 23:35:15 -07:00
greg@kroah.com
ee2427d3da [PATCH] Add infiniband to gentoo rules. 2005-04-26 23:28:12 -07:00
greg@kroah.com
990f059b1e [PATCH] Another gentoo fix, adding dvb support. 2005-04-26 23:28:12 -07:00
greg@kroah.com
d35f580b25 [PATCH] Fix gentoo bug #76056 (fb device group permissions.) 2005-04-26 23:28:12 -07:00
greg@kroah.com
fcbb427e0e [PATCH] Fix gentoo bug #81102, device nodes for the pktcdvd device. 2005-04-26 23:28:12 -07:00
md@Linux.IT
36429eef37 [PATCH] debian: update rules files 2005-04-26 23:24:20 -07:00
sschweizer@gmail.com
c7a84d7556 [PATCH] gentoo/udev.rules: add default permissions for sound devices 2005-04-26 23:24:20 -07:00
greg@kroah.com
d25e14ae1e [PATCH] gentoo fb permission fix. 2005-04-26 23:24:19 -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
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 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
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
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
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
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
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
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
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
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
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
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
greg@kroah.com
40041ff4f1 [PATCH] added dri rule to the default config file. 2005-04-26 21:13:15 -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
greg@kroah.com
6d88260a8b [PATCH] move the config files to etc/udev to clean up main directory a bit. 2005-04-26 21:13:14 -07:00
greg@kroah.com
9f7fff04ee [PATCH] add Gentoo versions of the rules and permissions files. 2005-04-26 21:13:12 -07:00