From: kay.sievers@vrfy.org Date: Sat, 18 Dec 2004 11:22:16 +0000 (+0100) Subject: [PATCH] initial merge of gentoo udev.permissions into udev.rules X-Git-Tag: 051~42 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=878f3218e109df0afde4fe8936f6920295b282a4;p=systemd [PATCH] initial merge of gentoo udev.permissions into udev.rules --- diff --git a/etc/udev/gentoo/udev.rules b/etc/udev/gentoo/udev.rules index 6a53e88d..0787bcc2 100644 --- a/etc/udev/gentoo/udev.rules +++ b/etc/udev/gentoo/udev.rules @@ -19,10 +19,17 @@ BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYM # devfs-names for ide-devices (uncomment only one) # /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names -BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="%c{3}" +BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="%c{3}", MODE="0660" + +# disk devices +KERNEL="sd*", NAME="%k", GROUP="disk", MODE="0660" +KERNEL="dasd*", NAME="%k", GROUP="disk", MODE="0660" +KERNEL="ataraid*", NAME="%k", GROUP="disk", MODE="0660" # dri devices -KERNEL="card*", NAME="dri/card%n" +KERNEL="card*", NAME="dri/card%n", GROUP="video", MODE="0660" +KERNEL="nvidia*", NAME="%k", GROUP="video", MODE="0660" +KERNEL="3dfx*", NAME="%k", GROUP="video", MODE="0660" # alsa devices KERNEL="controlC[0-9]*", NAME="snd/%k" @@ -52,30 +59,30 @@ KERNEL="device-mapper", NAME="mapper/control" KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k" # floppy devices -KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k" +KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k", GROUP="floppy", MODE="0660" # i2c devices KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k" # input devices -KERNEL="mice", NAME="input/%k" -KERNEL="mouse*", NAME="input/%k" -KERNEL="event*", NAME="input/%k" -KERNEL="js*", NAME="input/%k" -KERNEL="ts*", NAME="input/%k" +KERNEL="mice", NAME="input/%k", MODE="0644" +KERNEL="mouse*", NAME="input/%k", MODE="0644" +KERNEL="event*", NAME="input/%k", MODE="0600" +KERNEL="js*", NAME="input/%k", MODE="664" +KERNEL="ts*", NAME="input/%k", MODE="0600" # loop devices -KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k" +KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k", GROUP="disk", MODE="0660" # md block devices -KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k" +KERNEL="md[0-9]*", NAME="md/%n", SYMLINK="%k", GROUP="disk", MODE="0660" # misc devices KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k" KERNEL="psaux", NAME="misc/%k", SYMLINK="%k" -KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" +KERNEL="rtc", NAME="misc/%k", SYMLINK="%k", MODE="0664" KERNEL="uinput", NAME="misc/%k", SYMLINK="%k" -KERNEL="inotify", NAME="misc/%k", SYMLINK="%k" +KERNEL="inotify", NAME="misc/%k", SYMLINK="%k", MODE="0666" # netlink devices KERNEL="route", NAME="netlink/%k" @@ -94,51 +101,69 @@ KERNEL="tap*", NAME="netlink/%k" # network devices KERNEL="tun", NAME="net/%k" -# pty devices -KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k" -KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k" - # ramdisk devices KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k" # raw devices -KERNEL="raw[0-9]*", NAME="raw/%k" +KERNEL="raw[0-9]*", NAME="raw/%k", GROUP="disk", MODE="0660" +KERNEL="ram*", NAME="%k", GROUP="disk", MODE="0660" # sound devices -KERNEL="adsp", NAME="sound/%k", SYMLINK="%k" -KERNEL="adsp[0-9]*", NAME="sound/%k", SYMLINK="%k" -KERNEL="audio", NAME="sound/%k", SYMLINK="%k" -KERNEL="audio[0-9]*", NAME="sound/%k", SYMLINK="%k" -KERNEL="dsp", NAME="sound/%k", SYMLINK="%k" -KERNEL="dsp[0-9]*", NAME="sound/%k", SYMLINK="%k" -KERNEL="mixer", NAME="sound/%k", SYMLINK="%k" -KERNEL="mixer[0-9]*", NAME="sound/%k", SYMLINK="%k" -KERNEL="sequencer", NAME="sound/%k", SYMLINK="%k" -KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k" +KERNEL="adsp", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="adsp[0-9]*", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="audio", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="audio[0-9]*", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="dsp", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="dsp[0-9]*", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="mixer", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="mixer[0-9]*", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="sequencer", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" +KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k", GROUP="audio", MODE="0660" # tty devices -KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k" -KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k" -KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n" +KERNEL="console", NAME="%k", GROUP="tty", MODE="0600" +KERNEL="tty", NAME="%k", GROUP="tty", MODE="0666" +KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="ttyS[0-9]*", NAME="tts/%n", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n", GROUP="tty", MODE="0600" +KERNEL="ippp0", NAME="", GROUP="tty", MODE="0660" +KERNEL="isdn*", NAME="", GROUP="tty", MODE="0660" +KERNEL="dcbri*", NAME="", GROUP="tty", MODE="0660" +KERNEL="ircomm*", NAME="", GROUP="tty", MODE="0660" + +# pty devices +KERNEL="ptmx", NAME="%k", GROUP="tty", MODE="0666" +KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK="%k", GROUP="tty", MODE="0660" + +# vc devices +KERNEL="vcs", NAME="vcc/0", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="vcs[0-9]*", NAME="vcc/%n", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="vcsa", NAME="vcc/a0", SYMLINK="%k", GROUP="tty", MODE="0660" +KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k", GROUP="tty", MODE="0660" + +# memory devices¶ +KERNEL="random", NAME="%k", MODE="0666" +KERNEL="urandom", NAME="%k", MODE="0444" +KERNEL="mem", NAME="%k", MODE="0640" +KERNEL="kmem", NAME="%k", MODE="0640" +KERNEL="port", NAME="%k", MODE="0640" +KERNEL="full", NAME="%k", MODE="0666" +KERNEL="null", NAME="%k", MODE="0666" +KERNEL="zero", NAME="%k", MODE="0666" # usb devices KERNEL="hiddev*", NAME="usb/%k" KERNEL="auer*", NAME="usb/%k" -KERNEL="legousbtower*", NAME="usb/%k" +KERNEL="legousbtower*", NAME="usb/%k", GROUP="usb", MODE="0660" KERNEL="dabusb*", NAME="usb/%k" -BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k" - -# vc devices -KERNEL="vcs", NAME="vcc/0", SYMLINK="%k" -KERNEL="vcs[0-9]*", NAME="vcc/%n", SYMLINK="%k" -KERNEL="vcsa", NAME="vcc/a0", SYMLINK="%k" -KERNEL="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK="%k" +BUS="usb", KERNEL="lp[0-9]*", NAME="usb/%k", GROUP="lp", MODE="0660" # v4l devices -KERNEL="video[0-9]*", NAME="v4l/video%n", SYMLINK="video%n" -KERNEL="radio[0-9]*", NAME="v4l/radio%n" -KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi%n" -KERNEL="vtx[0-9]*", NAME="v4l/vtx%n" +KERNEL="video[0-9]*", NAME="v4l/video%n", SYMLINK="video%n", GROUP="video", MODE="0660" +KERNEL="radio[0-9]*", NAME="v4l/radio%n", GROUP="video", MODE="0660" +KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi%n", GROUP="video", MODE="0660" +KERNEL="vtx[0-9]*", NAME="v4l/vtx%n", GROUP="video", MODE="0660" # Asterix Zaptel devices KERNEL="zapctl", NAME="zap/ctl" @@ -147,3 +172,45 @@ KERNEL="zapchannel", NAME="zap/channel" KERNEL="zappseudo", NAME="zap/pseudo" KERNEL="zap[0-9]*", NAME="zap/%n" +# pilot/palm devices +KERNEL="pilot", NAME="%k", GROUP="uucp", MODE="0660" +¶ +# jaz devices +KERNEL="jaz*", NAME="%k", GROUP="disk", MODE="0660" +¶ +# zip devices +KERNEL="pocketzip*", NAME="%k", GROUP="disk", MODE="0660" +KERNEL="zip*", NAME="%k", GROUP="disk", MODE="0660" + +# ls120 devices +KERNEL="ls120", NAME="%k", GROUP="disk", MODE="0660" + +# lp devices +KERNEL="lp*", NAME="%k", GROUP="lp", MODE="0660" +KERNEL="irlpt", NAME="%k", GROUP="lp", MODE="0660" +KERNEL="usblp", NAME="%k", GROUP="lp", MODE="0660" +KERNEL="lp*", NAME="%k", GROUP="lp", MODE="0660" + +# tape devices +KERNEL="ht*", NAME="%k", GROUP="tape", MODE="0660" +KERNEL="nht*", NAME="%k", GROUP="tape", MODE="0660" +KERNEL="pt*", NAME="%k", GROUP="tape", MODE="0660" +KERNEL="npt*", NAME="%k", GROUP="tape", MODE="0660" +KERNEL="st*", NAME="%k", GROUP="tape", MODE="0660" +KERNEL="nst*", NAME="%k", GROUP="tape", MODE="0660" + +# diskonkey devices +KERNEL="diskonkey*", NAME="%k", GROUP="disk", MODE="0660" + +# rem_ide devices +KERNEL="microdrive*", NAME="%k", GROUP="disk", MODE="0660" + +# kbd devices +KERNEL="kbd", NAME="%k", MODE="0664" + +# Sony Vaio Jogdial sonypi device +KERNEL="sonypi", NAME="%k", MODE="0666" + +# gpm devices +KERNEL="gpmctl", NAME="%k", MODE="0700" +