1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
Commit Graph

40 Commits

Author SHA1 Message Date
Kay Sievers
79f3b4a161 rules: rfkill has no group, so use 0644
Thanks to Marco d'Itri<md@linux.it> for noticing.
2009-08-16 21:07:39 +02:00
Alan Jenkins
214a6c791c fix spelling
Fix spelling in docbook comments, code comments, and a local variable
name.  Thanks to "ispell -h" for docbook HTML and "scspell" for source
code.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-08 15:42:05 +02:00
Stefan Richter
f0fb82d821 rules: set group ownership of new firewire driver device files
The newer firewire-core driver exposes per-device character device files,
called /dev/fw[0-9]*, in contrast to the older raw1394, video1394, dv1394
drivers which created one global file or per-controller files.

This allows to set ownership, permissions, or/ and access control lists
for each device file based on device type markers obtained from sysfs.
The "units" attribute which is used for this purpose has become available
in Linux 2.6.31(-rc1) by commit 0210b66dd88a2a1e451901b00378a2068b6ccb35.

The added rules match identifiers of

  - IIDC devices:
    industrial cameras and some webcams,

  - AV/C devices:
    camcorders, set-top boxes, TV sets, audio devices, and similar
    devices.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
2009-07-01 23:43:17 +02:00
Marcel Holtmann
213f0355c0 rules: make RFKILL control device world readable 2009-06-05 15:09:05 +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
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
6d34b6af12 rules: add rfcomm* to group dialout
https://bugs.launchpad.net/bugs/368109
2009-04-28 11:24:25 +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
7a87d34f8a rules: remove DVB shell script 2009-04-16 22:35:59 +02: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
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
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
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
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
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
Kay Sievers
6b956a9983 rules: remove legacy symlinks 2008-12-22 13:34:54 +01:00
Kay Sievers
f0bbea6696 rules: rtc - create rtc compat link only for cmos type rtc 2008-12-21 13:48:55 +01:00
Kay Sievers
d4e0db3c5d rules: remove /dev/raw/raxctl symlink, it's a devfs leftover 2008-12-21 13:42:08 +01:00
Kay Sievers
41e7f55711 rules: more changes toward Ubuntu rules merge
dv1394*: no kernel name symlink
lp*: no par* symlink
hwrng: no kernel name symlink
2008-12-21 13:17:37 +01:00
Kay Sievers
23456b19eb rules: more changes toward Ubuntu rules merge
specialix_rioctl: no kernel name symlink
specialix_sxctl: no kernel name symlink
bus/usb: 0644 -> 0664
ppdev: lp
dri: 0666 -> 0660
js: no kernel name symlink
2008-12-21 13:01:40 +01:00
Kay Sievers
a31f59b570 rules: first simple step merging with Ubuntu rules 2008-12-19 16:49:56 +01:00
Kay Sievers
2fc635fb67 rules: move aoe rules to default rules file 2008-12-09 04:18:21 +01:00
Piter PUNK
3101190851 rules: add usb device nodes 2008-11-28 02:01:51 +01:00
Piter PUNK
453ca4f907 rules: /dev/null -> X0R
/dev/X0R        null            symbolic        Required by iBCS-2
Note: /dev/X0R is <letter X>-<digit 0>-<letter R>
2008-11-28 01:18:15 +01:00
Kay Sievers
874c43e42a rules: merge group "video" into default rules 2008-11-19 21:47:07 +01:00
Kay Sievers
87fb336f39 rules: remove "add" match from usb device node rule 2008-10-30 16:11:49 +01:00
Kay Sievers
ba6e84fe6a rules: remove SCSI timeouts
On Thu, Oct 30, 2008 at 03:55, Tejun Heo <tj@kernel.org> wrote:
The appropriate default timeout differs depending on the transport and
the type of the attached device, so the above two rules harm more than
help.  The affect of the above two rules weren't visible for some
reason but with recent block layer timeout update, they actually work
and cause problems.
2008-10-30 09:20:03 +01:00
Kay Sievers
4df1d70329 connect /sys and /dev with /sys/dev/{block,char}/<maj>:<min> and /dev/{block,char}/<maj>:<min> 2008-10-07 00:18:55 +02:00
Kay Sievers
3870186374 rules: add nvram 2008-08-11 10:34:18 +02:00
Kay Sievers
f63dc3b74f rules: mode 0660 for group "disk" 2008-07-30 13:20:31 +02:00
Kay Sievers
282988c4f8 move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/
None of these rules is supposed to be changed by users, so move
them out of /etc. Custom rules, and automatically generated rules
stay in /etc. All rules are still processed in lexical order,
regardless which directory they live in.
2008-07-18 15:56:03 +02:00