2011-05-26 00:21:16 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2011-05-26 00:21:16 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
ACTION=="remove", GOTO="uaccess_end"
|
|
|
|
ENV{MAJOR}=="", GOTO="uaccess_end"
|
|
|
|
|
|
|
|
# PTP/MTP protocol devices, cameras, portable media players
|
|
|
|
SUBSYSTEM=="usb", ENV{ID_USB_INTERFACES}=="*:060101:*", TAG+="uaccess"
|
|
|
|
|
|
|
|
# Digicams with proprietary protocol
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{ID_GPHOTO2}=="?*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# SCSI and USB scanners
|
|
|
|
ENV{libsane_matched}=="yes", TAG+="uaccess"
|
|
|
|
|
|
|
|
# HPLIP devices (necessary for ink level check and HP tool maintenance)
|
|
|
|
ENV{ID_HPLIP}=="1", TAG+="uaccess"
|
|
|
|
|
|
|
|
# optical drives
|
|
|
|
SUBSYSTEM=="block", ENV{ID_CDROM}=="1", TAG+="uaccess"
|
|
|
|
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", TAG+="uaccess"
|
|
|
|
|
|
|
|
# Sound devices
|
2013-07-07 16:32:34 +00:00
|
|
|
SUBSYSTEM=="sound", TAG+="uaccess" \
|
|
|
|
OPTIONS+="static_node=snd/timer", OPTIONS+="static_node=snd/seq"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# ffado is an userspace driver for firewire sound cards
|
|
|
|
SUBSYSTEM=="firewire", ENV{ID_FFADO}=="1", TAG+="uaccess"
|
|
|
|
|
|
|
|
# Webcams, frame grabber, TV cards
|
|
|
|
SUBSYSTEM=="video4linux", TAG+="uaccess"
|
|
|
|
SUBSYSTEM=="dvb", TAG+="uaccess"
|
|
|
|
|
|
|
|
# IIDC devices: industrial cameras and some webcams
|
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", TAG+="uaccess"
|
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", TAG+="uaccess"
|
|
|
|
# AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and more
|
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", TAG+="uaccess"
|
|
|
|
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
|
|
|
|
|
|
|
|
# DRI video devices
|
2013-11-12 17:11:43 +00:00
|
|
|
SUBSYSTEM=="drm", KERNEL=="card*|renderD*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# KVM
|
|
|
|
SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
|
|
|
|
|
|
|
|
# smart-card readers
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
2012-07-24 18:13:46 +00:00
|
|
|
# (USB) authentication devices
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{ID_SECURITY_TOKEN}=="?*", TAG+="uaccess"
|
2012-07-24 18:13:46 +00:00
|
|
|
|
2011-05-26 00:21:16 +00:00
|
|
|
# PDA devices
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{ID_PDA}=="?*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# Programmable remote control
|
|
|
|
ENV{ID_REMOTE_CONTROL}=="1", TAG+="uaccess"
|
|
|
|
|
|
|
|
# joysticks
|
|
|
|
SUBSYSTEM=="input", ENV{ID_INPUT_JOYSTICK}=="?*", TAG+="uaccess"
|
|
|
|
|
|
|
|
# color measurement devices
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{COLOR_MEASUREMENT_DEVICE}=="?*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# DDC/CI device, usually high-end monitors such as the DreamColor
|
2014-07-15 00:04:47 +00:00
|
|
|
ENV{DDC_DEVICE}=="?*", TAG+="uaccess"
|
2011-05-26 00:21:16 +00:00
|
|
|
|
|
|
|
# media player raw devices (for user-mode drivers, Android SDK, etc.)
|
|
|
|
SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
|
|
|
|
|
rules: uaccess - add ID_SOFTWARE_RADIO
On Tue, Jul 15, 2014 at 1:52 PM, Alick Zhao <alick9188@gmail.com> wrote:
>>>
>>> So maybe ID_SOFTWARE_RADIO ?
>>
>> Hmm, SDR is more a term for a generic technology than for a device
>> class. To me it does not really sound like an administrator would know
>> what this is.
>>
>> What exactly is the device or subsystem you want to make accessible to
>> locally logged-in users only?
>
> Initially it is bladeRF, but many more are of interest: USRP, rtl-sdr,
> HackRF, ... [1]
>
> I agree an administrator might not know what SDR is, since it is
> currently still not widely known, and makes sense only for amateurs
> and researchers. But as a SDR fan, I see many new SDR peripherals
> are created recently, and expect to see more. So a generic ID seems
> reasonable to me.
>
> [1] http://en.wikipedia.org/wiki/List_of_software-defined_radios
2014-07-15 15:35:53 +00:00
|
|
|
# software-defined radio communication devices
|
|
|
|
ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
|
|
|
|
|
2011-05-26 00:21:16 +00:00
|
|
|
LABEL="uaccess_end"
|