1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00
Commit Graph

98 Commits

Author SHA1 Message Date
Kay Sievers
9fc643a414 rules: do not call path_id for virtual devices 2009-06-04 03:21:33 +02:00
Kay Sievers
12a7c14b86 rules: add SUBSYSTEM match to scsi rules
On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
> I've been looking at what is responsible for all the path lookup activity in
> coldplug.  On my debian stable system, it looks like every device gets its
> parent looked up in sysfs.  I think this is due to SUBSYSTEMS matches.
>
> I see the udev default rules are different, but it looks like they still
> test for SUBSYSTEMS on every single device. Should we add SUBSYSTEM="scsi_generic"
> to these three rules?
2009-05-22 16:44:53 +02:00
Kay Sievers
1e5e05730a Revert "rules: v4l do not mix vbi and video nodes"
This reverts commit 6205f1186e.
2009-05-14 00:32:25 +02:00
Kay Sievers
6205f1186e rules: v4l do not mix vbi and video nodes 2009-05-13 17:55:08 +02:00
Kay Sievers
f07996885d delete vol_id and require util-linux-ng's blkid 2009-05-11 04:12:23 +02:00
Kay Sievers
d67e32aeb2 rules: fix ieee1394 rules 2009-05-05 12:43:42 +02:00
Kay Sievers
efca104ccf oops, removed ppp entry from rules got committed 2009-05-04 14:10:05 +02:00
Kay Sievers
cb14f4543a handle devtmpfs nodes
UDev follows the kernel given name, and re-uses the kernel created
device node. If the kernel and spcecified udev rules disagree, the
udev specified node node is created and the kernel-created on is
deleted.
2009-05-04 04:52:31 +02:00
Kay Sievers
3157c02d2b rules: remove initramfs comment 2009-05-03 14:44:23 +02:00
Kay Sievers
998d9788e7 rules: add "event*" match 2009-05-01 17:52:21 +02:00
Kay Sievers
6d34b6af12 rules: add rfcomm* to group dialout
https://bugs.launchpad.net/bugs/368109
2009-04-28 11:24:25 +02:00
Kay Sievers
c311b393be rules: input - fix comments 2009-04-27 03:50:48 +02:00
Kay Sievers
4d3657816a rules: input - add links for USB/platform non-kbd/mouse devices 2009-04-27 03:23:41 +02:00
Andre Przywara
57ec3a57f1 rules: create /dev/cpu/<n>/cpuid world readable
I don't see any security implications, to be actually useful,
/dev/cpu/<n>/cpuid should be world readable. The cpuid instruction
can be called from userspace anyway, so there is nothing to hide.
The device does not support any write operation, so 0444 should
suffice.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
2009-04-24 00:29:53 +02:00
Kay Sievers
f907449eee cdrom_id: add and use ID_CDROM_MEDIA to decide if we run vol_id
Some broken mobile phones offer a faked cdrom drive with a media
without any tracks.
2009-04-21 03:27:14 +02:00
Kay Sievers
7a87d34f8a rules: remove DVB shell script 2009-04-16 22:35:59 +02:00
Kay Sievers
116254097a send monitor events back to netlink socket
Instead of of our own private monitor socket, we send the
processed event back to our netlink socket, to the multicast
group 2 -- so any number of users can listen to udev events,
just like they can listen to kernel emitted events on group 1.
2009-03-29 04:24:39 +02:00
Kay Sievers
a0aa1d76d0 rules: replace IDE driver with media match 2009-03-25 13:40:55 +01:00
Kay Sievers
65336f8614 rules: serial - support ttyACM devices 2009-03-24 01:55:47 +01:00
Kay Sievers
c4390e0711 rules: remove ram* from persisten disk links blacklist 2009-03-23 21:09:02 +01:00
David Brownell
684028b5be rules: exclude mtd* from persistent disk links 2009-03-23 21:03:00 +01:00
Borislav Petkov
c51446e893 rules: rename ide-floppy to ide-gd
The driver's name changed in the 2.6.28 timeframe.
2009-03-22 15:10:06 +01:00
Kay Sievers
3b8103d45f rules: fix extra quote in 50-udev-default.rules
Patch from Gerardo Exequiel Pozzi.
2009-03-18 02:32:12 +01:00
Michal Soltys
376f0a1ef5 rules: md-raid.rules fix
md/array_state in case of partition doesn't exist, so all uevents
for partitions didn't execute any SYMLINK rules

Signed-off-by: Michal Soltys <soltys@ziu.info>
2009-03-16 01:29:19 +01:00
Kay Sievers
45bcd16ca5 udevd: switch watch symlinks to devpath
Some broken tools get confused following links to /sys, switch
to link targets carrying the devpath instead of the syspath, like
the queue links.
2009-03-05 00:35:58 +01:00
Kay Sievers
56a7cb1271 rules: Fedora update 2009-03-04 12:44:08 +01:00
Kay Sievers
7e827bcde8 usb_id: add ID_USB_INTERFACES=:0e0100:0e0200:010100:010200: 2009-02-26 17:05:58 +01:00
Kay Sievers
dc9aa5e941 rules: include loop block devices in persistent links 2009-02-16 22:22:57 +01:00
Kay Sievers
64746532e8 rules: add "watch" option to dm and md rules 2009-02-13 16:02:36 +01:00
Kay Sievers
88ec7bb754 rules: move OPTIONS to separate rule
A failing IMPORT+ match would prevent the OPTIONS+= action
from being applied.
2009-02-11 21:54:43 +01:00
Scott James Remnant
f24036d63b rules: update persistent storage rules to use inotify watches 2009-02-11 17:44:03 +00:00
Kay Sievers
b822542608 rules: fix md "change"/"remove" handling
On Thu, Feb 5, 2009 at 08:43, Harald Hoyer <harald@redhat.com> wrote:
> Radek Vykydal <rvykydal@redhat.com> encountered a problem with md devices.
> If the raid is about to be removed a "change" and "remove" event is sent.
2009-02-05 14:03:17 +01:00
Kay Sievers
198882e9ae rules: dm - add escape for uuid links with whitespace 2009-01-30 13:18:59 +01:00
Matthias Schwarzott
57d057d28d rules: Gentoo update 2009-01-27 11:56:45 +01:00
Kay Sievers
66d9b44f83 rules: add drm devices to group "video"
https://bugs.launchpad.net/bugs/317430
2009-01-15 17:06:14 +01:00
Kay Sievers
18cff5c3b2 rules: fix typo in ide cd rule
Thanks to Scott, who found that.
2009-01-10 17:44:09 +01:00
Lennart Poettering
8b739dec53 fix naming for tape nst devices in /dev/tape/by-path/
$env{ID_PATH} includes the "-nst" suffix anyway, so we shouldn't append
it a second time as part of the rule creating the device file symlink.

Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-10 01:40:16 +01:00
Kay Sievers
34ac42b98d rules: zaptel - add "dialout" group 2009-01-05 17:51:22 +01:00
Kay Sievers
b6c8f986ec rules: reorder block rules 2009-01-05 12:34:55 +01:00
Kay Sievers
1aa8fdf779 rules: Ubuntu merge - s/uucp/dialout/ 2009-01-04 17:01:47 +01:00
Kay Sievers
e1cc6b6a81 rules: replace DVB shell script rule 2009-01-03 22:30:05 +01:00
Kay Sievers
8553cf06b9 rules: Ubuntu merge - use group "tape" 2009-01-03 16:25:15 +01:00
Kay Sievers
cc02d72c82 rules: Ubuntu merge - use group "cdrom" 2009-01-03 15:50:17 +01:00
Kay Sievers
01acecef8f rules: input - make sure needed variables are set 2009-01-02 03:26:44 +01:00
Kay Sievers
49bb7a8a2a rules: provide /dev/raw/rawctl
On Fri, Dec 26, 2008 at 01:26, Karel Zak <kzak@redhat.com> wrote:
> On Fri, Dec 26, 2008 at 12:39:16AM +0100, Kay Sievers wrote:
>> On Fri, Dec 26, 2008 at 00:26, Karel Zak <kzak@redhat.com> wrote:

>> >  The upstream raw(8) command supports /dev/rawctl and also
>> >  /dev/raw/rawctl.  I think it makes more sense to use raw/rawctl when
>> >  you have all your raw devices in raw/ subdirectory (e.g. /dev/raw/raw<N>).
>>
>> The raw tool looks for /dev/rawctl first and the fallback to
>> /dev/raw/rawctl is named DEVFS_*. Should we turn that order around and
>> remove the devfs notion from the raw tool and let udev create a
>> dev/raw/rawctl node?
>
>  Yeah. Fixed, committed and pushed.
>
>  $ strace -e open ./raw
>  open("/dev/raw/rawctl", O_RDWR)         = -1 ENOENT (No such file or directory)
>  open("/dev/rawctl", O_RDWR)             = -1 ENOENT (No such file or directory)
>
>  I have also removed the #ifdef OLD_RAW_DEVS (/dev/raw<N>) junk.
2008-12-26 01:41:36 +01:00
Kay Sievers
58dc66fdb7 rules: isdn - remove /dev/isdn/capi20 symlink 2008-12-22 17:11:01 +01:00
Kay Sievers
20e9677d22 rules: put alsa in group "audio" 2008-12-22 16:19:38 +01:00
Kay Sievers
6c172fd41d rules: remove /dev/dsp /dev/audio 2008-12-22 16:16:46 +01:00
Kay Sievers
a7cb7d79f7 rules: second round merging with Ubuntu rules 2008-12-22 16:15:37 +01:00
Kay Sievers
a8cf7cf2c7 rules: do not put raw1394 in "video" group
A note on /dev/raw1394's security implications:
1. You cannot access local memory through raw1394, except
for ROMs and CSRs that are exposed to other nodes any way.

2. It is extremely hard to manipulate data on attached
SBP-2 devices (FireWire storage devices).

3. You can disturb operation of the FireWire bus, e.g.
creating a DoS situation for audio/video applications, for
SBP-2 devices, or eth1394 network interfaces.

4. If another PC is attached to the FireWire bus, it may be
possible to read or overwrite the entire RAM of that remote PC.
This depends on the PC's configuration. Most FireWire controllers
support this feature (yes, it's not a bug, or at least wasn't
intended to be one...) but not all OSs enable the feature.

Actually, a cheap setup to achieve #1 by #4 is to have two
FireWire controllers in the PC and connect them.

https://bugs.launchpad.net/ubuntu/+source/kino/+bug/6290/comments/21
2008-12-22 14:58:11 +01:00