2007-08-10 18:36:59 +08:00
|
|
|
# do not edit this file, it will be overwritten on update
|
|
|
|
|
2015-03-12 23:34:18 +08:00
|
|
|
# run a command on remove events
|
|
|
|
ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
|
2015-03-27 22:42:04 +08:00
|
|
|
ACTION=="remove", GOTO="default_end"
|
2015-03-12 23:34:18 +08:00
|
|
|
|
2013-03-20 08:26:17 +08:00
|
|
|
SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
|
|
|
|
|
2013-04-25 08:02:40 +08:00
|
|
|
# select "system RTC" or just use the first one
|
|
|
|
SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
|
|
|
|
SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
|
|
|
|
|
2013-03-20 08:26:17 +08:00
|
|
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
|
|
|
|
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
|
|
|
|
ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
|
|
|
|
|
2015-03-12 23:34:18 +08:00
|
|
|
ACTION!="add", GOTO="default_end"
|
2013-01-28 04:46:36 +08:00
|
|
|
|
2012-04-15 20:06:48 +08:00
|
|
|
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
|
|
|
|
SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
|
|
|
|
SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
|
2014-02-27 18:19:09 +08:00
|
|
|
SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620"
|
|
|
|
SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620"
|
|
|
|
SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620"
|
2012-04-15 20:06:48 +08:00
|
|
|
SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
|
2009-04-28 17:24:25 +08:00
|
|
|
KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2012-04-15 20:06:48 +08:00
|
|
|
SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2014-06-12 20:59:53 +08:00
|
|
|
SUBSYSTEM=="input", GROUP="input"
|
2013-10-21 09:49:03 +08:00
|
|
|
SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2012-01-10 08:34:15 +08:00
|
|
|
SUBSYSTEM=="video4linux", GROUP="video"
|
|
|
|
SUBSYSTEM=="graphics", GROUP="video"
|
|
|
|
SUBSYSTEM=="drm", GROUP="video"
|
2013-01-28 04:46:36 +08:00
|
|
|
SUBSYSTEM=="dvb", GROUP="video"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2012-01-10 08:34:15 +08:00
|
|
|
SUBSYSTEM=="sound", GROUP="audio", \
|
2011-05-27 08:50:29 +08:00
|
|
|
OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
|
2009-09-17 02:08:50 +08:00
|
|
|
|
2013-01-28 04:46:36 +08:00
|
|
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
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-02 03:41:43 +08:00
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
|
2010-07-11 18:32:12 +08:00
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
|
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-02 03:41:43 +08:00
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
|
2010-07-11 18:32:12 +08:00
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2012-01-10 08:34:15 +08:00
|
|
|
KERNEL=="parport[0-9]*", GROUP="lp"
|
|
|
|
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
|
|
|
|
SUBSYSTEM=="ppdev", GROUP="lp"
|
|
|
|
KERNEL=="lp[0-9]*", GROUP="lp"
|
|
|
|
KERNEL=="irlpt[0-9]*", GROUP="lp"
|
2011-07-05 11:37:13 +08:00
|
|
|
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2009-01-05 19:34:55 +08:00
|
|
|
SUBSYSTEM=="block", GROUP="disk"
|
2011-11-08 06:21:29 +08:00
|
|
|
SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom"
|
2009-05-22 22:44:53 +08:00
|
|
|
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
|
2012-04-15 20:06:48 +08:00
|
|
|
KERNEL=="sch[0-9]*", GROUP="cdrom"
|
2009-09-17 02:08:50 +08:00
|
|
|
KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
|
|
|
|
KERNEL=="pktcdvd", GROUP="cdrom"
|
2009-01-03 23:25:15 +08:00
|
|
|
|
2009-05-22 22:44:53 +08:00
|
|
|
SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
|
|
|
|
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
|
2007-08-10 18:36:59 +08:00
|
|
|
KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
|
2014-06-18 09:37:32 +08:00
|
|
|
KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
|
|
|
|
KERNEL=="btrfs-control", GROUP="disk"
|
2009-09-17 02:08:50 +08:00
|
|
|
KERNEL=="rawctl", GROUP="disk"
|
|
|
|
SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
|
|
|
|
SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
|
2008-12-09 11:18:21 +08:00
|
|
|
SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2013-10-21 09:49:03 +08:00
|
|
|
KERNEL=="rfkill", MODE="0664"
|
2013-01-28 04:46:36 +08:00
|
|
|
KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
|
2007-08-10 18:36:59 +08:00
|
|
|
|
2013-01-28 04:46:36 +08:00
|
|
|
KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
|
2010-05-25 21:10:21 +08:00
|
|
|
|
2017-03-27 18:34:24 +08:00
|
|
|
KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@"
|
|
|
|
|
2017-03-01 04:28:21 +08:00
|
|
|
SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
|
|
|
|
|
2015-03-12 23:34:18 +08:00
|
|
|
LABEL="default_end"
|