50-udev-default.rules revision 6c29f2b942358d4dd9d3e7c65c13c3612dded3cc
ee9c9500ab13c1093fc3feaf2aa5a0d330d0bfadKay Sievers# do not edit this file, it will be overwritten on update
c343be283b7152554bac0c02493a4e1759c163f7Kay SieversSUBSYSTEM=="block", SYMLINK{unique}+="block/%M:%m"
c343be283b7152554bac0c02493a4e1759c163f7Kay SieversSUBSYSTEM!="block", SYMLINK{unique}+="char/%M:%m"
b3ae710c251d0ce5cf2cef63208e325497b5e323Zbigniew Jędrzejewski-SzmekKERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
f957632b960a0a42999b38ded7089fa602b41745Kay SieversKERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
f957632b960a0a42999b38ded7089fa602b41745Kay SieversKERNEL=="ptmx", GROUP="tty", MODE="0666"
f957632b960a0a42999b38ded7089fa602b41745Kay SieversKERNEL=="tty", GROUP="tty", MODE="0666"
f957632b960a0a42999b38ded7089fa602b41745Kay SieversKERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
a40593a0d0d740efa387e35411e1e456a6c5aba7Lennart PoetteringKERNEL=="console", MODE="0600"
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay SieversKERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
466784c8710e5cb0e0b86a16506d992d7ec5b619Kay SieversKERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
55d32caf94d8df547ca763be52b0c35bb6388606Lennart PoetteringKERNEL=="ppp", MODE="0600"
f38afcd0c7f558ca5bf0854b42f8c6954f8ad7f3Lennart PoetteringKERNEL=="mwave", NAME="modems/mwave", GROUP="dialout"
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringKERNEL=="hvc*|hvsi*", GROUP="dialout"
81429136905a6204875174b60a179333b7f3c9e4Kay SieversKERNEL=="null|zero|full|random|urandom", MODE="0666"
e7b4d43ec3d5eb0099a3978f98a46f3c15443b23Lennart PoetteringKERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
81429136905a6204875174b60a179333b7f3c9e4Kay SieversKERNEL=="mouse*|mice|event*", NAME="input/%k", MODE="0640"
fbe1a1a94f19112d7e5d60c40d87487ad24e2ce4Lennart PoetteringKERNEL=="ts[0-9]*|uinput", NAME="input/%k", MODE="0640"
7f035ea56bc0b75327c54e8aa4a56d57ed00dd6dLennart PoetteringKERNEL=="js[0-9]*", NAME="input/%k", MODE="0644"
7f035ea56bc0b75327c54e8aa4a56d57ed00dd6dLennart PoetteringSUBSYSTEM=="video4linux", GROUP="video"
9d6db739ce1eaa3eace21801fd606d523b73c8f4Lennart PoetteringKERNEL=="vttuner*", GROUP="video"
b6b63571ae3eca1741d54172922961af972b8f20Lennart PoetteringKERNEL=="vtx*|vbi*", GROUP="video"
9d6db739ce1eaa3eace21801fd606d523b73c8f4Lennart PoetteringKERNEL=="winradio*", GROUP="video"
49ee032fc3b694a1b45be9d08a2b97ab3eb93f75Lennart PoetteringKERNEL=="agpgart", MODE="0600", GROUP="video"
49ee032fc3b694a1b45be9d08a2b97ab3eb93f75Lennart PoetteringKERNEL=="card[0-9]*", NAME="dri/%k"
49ee032fc3b694a1b45be9d08a2b97ab3eb93f75Lennart PoetteringKERNEL=="pmu", GROUP="video"
6992efee44d3affd17dd9174e8673ae63ba01ec7Lennart PoetteringKERNEL=="nvidia*|nvidiactl*", GROUP="video"
6992efee44d3affd17dd9174e8673ae63ba01ec7Lennart PoetteringSUBSYSTEM=="graphics", GROUP="video"
699bd879efdf17c663b66fac8ca4f9cd4a946260Lennart PoetteringSUBSYSTEM=="drm", GROUP="video"
9d6db739ce1eaa3eace21801fd606d523b73c8f4Lennart PoetteringSUBSYSTEM=="dvb", ENV{DVB_ADAPTER_NUM}=="?*", NAME="dvb/adapter$env{DVB_ADAPTER_NUM}/$env{DVB_DEVICE_TYPE}$env{DVB_DEVICE_NUM}", GROUP="video"
9d6db739ce1eaa3eace21801fd606d523b73c8f4Lennart Poettering# FireWire (dv1394 and video1394 drivers)
f1f520e8dfe2072a6d8c50d35bc9f2f145596aa5Lennart PoetteringKERNEL=="dv1394-[0-9]*", NAME="dv1394/%n", GROUP="video"
f1f520e8dfe2072a6d8c50d35bc9f2f145596aa5Lennart PoetteringKERNEL=="video1394-[0-9]*", NAME="video1394/%n", GROUP="video"
bc07548926ec5ed7b13df8d3656654f238e0b9a7Lennart Poettering# FireWire (firewire-core driver: IIDC devices, AV/C devices)
bc07548926ec5ed7b13df8d3656654f238e0b9a7Lennart PoetteringSUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
b6b63571ae3eca1741d54172922961af972b8f20Lennart PoetteringSUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
3f77a1b19f5a8ce33566f7f6e28e94c08ea30841Kay Sievers# libusb device nodes
3f77a1b19f5a8ce33566f7f6e28e94c08ea30841Kay SieversSUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0664"
e2a69298819b58f008be61d314f8ab95ccaec427Lennart PoetteringKERNEL=="parport[0-9]*", GROUP="lp"
e2a69298819b58f008be61d314f8ab95ccaec427Lennart PoetteringSUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
58f55364fa00a6a4706df2c4a01c6967f432e531Lennart PoetteringSUBSYSTEM=="ppdev", GROUP="lp"
58f55364fa00a6a4706df2c4a01c6967f432e531Lennart PoetteringSUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
27f1e9ebf6f9e7ff8a898f894c1b38cbdecfa77cLennart PoetteringKERNEL=="lp[0-9]*", GROUP="lp"
27f1e9ebf6f9e7ff8a898f894c1b38cbdecfa77cLennart PoetteringKERNEL=="irlpt[0-9]*", GROUP="lp"
27f1e9ebf6f9e7ff8a898f894c1b38cbdecfa77cLennart Poettering# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
ce4a52a500965ae6c2f95787f5346112ed56bbaeLennart Poettering# the ones from the old usblp kernel module
2834ffe78d7fd8be118429aa1449ac72641638c2Lennart PoetteringSUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"
2834ffe78d7fd8be118429aa1449ac72641638c2Lennart PoetteringSUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="660"
0b30586904d3d20dd93136917d24fe00bf6081eeLennart PoetteringSUBSYSTEM=="block", GROUP="disk"
229811628584b370e3fa7e8524d66be46c5a4661Lennart PoetteringKERNEL=="fd[0-9]", GROUP="floppy"
a940778fb1dd16479f455bab3ac6cbdbc5b06165Lennart PoetteringKERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy $root/%k"
a940778fb1dd16479f455bab3ac6cbdbc5b06165Lennart PoetteringKERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", OPTIONS+="all_partitions"
a940778fb1dd16479f455bab3ac6cbdbc5b06165Lennart PoetteringSUBSYSTEM=="block", KERNEL=="sr[0-9]*", SYMLINK+="scd%n", GROUP="cdrom"
e8a152c62dd2003731a59e0dffef4336c63110b9Lennart PoetteringSUBSYSTEM=="block", KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="cdrom", GROUP="cdrom"
a01647e53727107d82382bc5c9d98c894e8f386cLennart PoetteringSUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
3de03738fc970496d2d3da668c72767a48ccc41bLennart PoetteringKERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k", GROUP="cdrom"
3de03738fc970496d2d3da668c72767a48ccc41bLennart PoetteringKERNEL=="pktcdvd", NAME="pktcdvd/control", GROUP="cdrom"
8891f695c71bd4c266d827c9aaedbbbbaf79d3ebLennart PoetteringKERNEL=="ht[0-9]*|nht[0-9]*", GROUP="tape"
8891f695c71bd4c266d827c9aaedbbbbaf79d3ebLennart PoetteringKERNEL=="pt[0-9]*|npt[0-9]*|pht[0-9]*", GROUP="tape"
8891f695c71bd4c266d827c9aaedbbbbaf79d3ebLennart PoetteringSUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
2b1c3767515672dfd0f5e0a9c9d7ac3a16a6a361Lennart Poettering# block-related
81429136905a6204875174b60a179333b7f3c9e4Kay SieversKERNEL=="sch[0-9]*", GROUP="disk"
1df52dd282cd6014ace8ca2279dd90d9ea52d2a4Lennart PoetteringSUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
37efac5ddb21fd91ed420c070ed07f375e78b3b9Lennart PoetteringKERNEL=="pg[0-9]*", GROUP="disk"
37efac5ddb21fd91ed420c070ed07f375e78b3b9Lennart PoetteringKERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
7348b3adb324614132cf376f478e883bd7de28f1Lennart PoetteringKERNEL=="rawctl", NAME="raw/rawctl", GROUP="disk"
7348b3adb324614132cf376f478e883bd7de28f1Lennart PoetteringSUBSYSTEM=="raw", KERNEL=="raw[0-9]*", NAME="raw/%k", GROUP="disk"
f55b9bdfae46e3683c74c30f1d063642a41368a5Lennart PoetteringSUBSYSTEM=="bsg", NAME="bsg/%k"
f55b9bdfae46e3683c74c30f1d063642a41368a5Lennart PoetteringSUBSYSTEM=="aoe", NAME="etherd/%k", GROUP="disk", MODE="0220"
f55b9bdfae46e3683c74c30f1d063642a41368a5Lennart PoetteringSUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
e107ed185ef08945102834234a05ec51bb438685Lennart PoetteringKERNEL=="tun", NAME="net/%k", MODE="0666"
81429136905a6204875174b60a179333b7f3c9e4Kay SieversKERNEL=="rfkill", MODE="0644"
e30fa16e27cbd48f960113a1d72d9a15c3b2d67bLennart PoetteringKERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid", MODE="0444"
e30fa16e27cbd48f960113a1d72d9a15c3b2d67bLennart PoetteringKERNEL=="msr[0-9]*", NAME="cpu/%n/msr"
f598ac3e28b729dd0b1d0a881df3e16465687a2bLennart PoetteringKERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
01083ad094664e5c685060f4fb35a05ea2f212edLennart Poettering# miscellaneous
01083ad094664e5c685060f4fb35a05ea2f212edLennart PoetteringKERNEL=="fuse", MODE="0666"
b107b705cc97d3033e37c44229deb37b5aa31df5Lennart PoetteringSUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc"
b107b705cc97d3033e37c44229deb37b5aa31df5Lennart PoetteringKERNEL=="auer[0-9]*", NAME="usb/%k"
edb2935c5c5b95c42b8679086f60da5eafad74cbLennart PoetteringKERNEL=="hw_random", NAME="hwrng"
edb2935c5c5b95c42b8679086f60da5eafad74cbLennart PoetteringKERNEL=="mmtimer", MODE="0644"
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart PoetteringKERNEL=="rflash[0-9]*", MODE="0400"
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart PoetteringKERNEL=="rrom[0-9]*", MODE="0400"
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart PoetteringKERNEL=="sxctl", NAME="specialix_sxctl"
769918ecd30c0f7ee6e87b9aa6226d956bd2f530Lennart PoetteringKERNEL=="rioctl", NAME="specialix_rioctl"
6a3f892a23db71544d0439355f96c44350dafa8fLennart PoetteringKERNEL=="iowarrior[0-9]*", NAME="usb/%k"
2a781fc9bd33982c81e5ff75974a442a33d4f167Lennart PoetteringKERNEL=="hiddev[0-9]*", NAME="usb/%k"
2a781fc9bd33982c81e5ff75974a442a33d4f167Lennart PoetteringKERNEL=="legousbtower[0-9]*", NAME="usb/%k"
6a3f892a23db71544d0439355f96c44350dafa8fLennart PoetteringKERNEL=="dabusb[0-9]*", NAME="usb/%k"
6a3f892a23db71544d0439355f96c44350dafa8fLennart PoetteringKERNEL=="usbdpfp[0-9]*", NAME="usb/%k"
efc141b8ffbfa1e449da40ce27fccaa81428f779Lennart PoetteringKERNEL=="cpad[0-9]*", NAME="usb/%k"
d28315e4aff91560ed4c2fc9f876ec8bfc559f2dJan Engelhardt# do not delete static device nodes
efc141b8ffbfa1e449da40ce27fccaa81428f779Lennart PoetteringACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove"
efc141b8ffbfa1e449da40ce27fccaa81428f779Lennart PoetteringACTION=="remove", NAME=="", TEST=="/lib/udev/devices/%k", OPTIONS+="ignore_remove"