teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0063-rules-uaccess-add-ID_SOFTWARE_RADIO.patch

Zbigniew Jędrzejewski-Szmek 43ff24
From 4e0d085ff52a7d7858a30c651e37b18f3e92618b Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 43ff24
From: Kay Sievers <kay@vrfy.org>
Zbigniew Jędrzejewski-Szmek 43ff24
Date: Tue, 15 Jul 2014 17:35:53 +0200
Zbigniew Jędrzejewski-Szmek 43ff24
Subject: [PATCH] rules: uaccess - add ID_SOFTWARE_RADIO
Zbigniew Jędrzejewski-Szmek 43ff24
Zbigniew Jędrzejewski-Szmek 43ff24
On Tue, Jul 15, 2014 at 1:52 PM, Alick Zhao <alick9188@gmail.com> wrote:
Zbigniew Jędrzejewski-Szmek 43ff24
>>>
Zbigniew Jędrzejewski-Szmek 43ff24
>>> So maybe ID_SOFTWARE_RADIO ?
Zbigniew Jędrzejewski-Szmek 43ff24
>>
Zbigniew Jędrzejewski-Szmek 43ff24
>> Hmm, SDR is more a term for a generic technology than for a device
Zbigniew Jędrzejewski-Szmek 43ff24
>> class. To me it does not really sound like an administrator would know
Zbigniew Jędrzejewski-Szmek 43ff24
>> what this is.
Zbigniew Jędrzejewski-Szmek 43ff24
>>
Zbigniew Jędrzejewski-Szmek 43ff24
>> What exactly is the device or subsystem you want to make accessible to
Zbigniew Jędrzejewski-Szmek 43ff24
>> locally logged-in users only?
Zbigniew Jędrzejewski-Szmek 43ff24
>
Zbigniew Jędrzejewski-Szmek 43ff24
> Initially it is bladeRF, but many more are of interest: USRP, rtl-sdr,
Zbigniew Jędrzejewski-Szmek 43ff24
> HackRF, ... [1]
Zbigniew Jędrzejewski-Szmek 43ff24
>
Zbigniew Jędrzejewski-Szmek 43ff24
> I agree an administrator might not know what SDR is, since it is
Zbigniew Jędrzejewski-Szmek 43ff24
> currently still not widely known, and makes sense only for amateurs
Zbigniew Jędrzejewski-Szmek 43ff24
> and researchers. But as a SDR fan, I see many new SDR peripherals
Zbigniew Jędrzejewski-Szmek 43ff24
> are created recently, and expect to see more. So a generic ID seems
Zbigniew Jędrzejewski-Szmek 43ff24
> reasonable to me.
Zbigniew Jędrzejewski-Szmek 43ff24
>
Zbigniew Jędrzejewski-Szmek 43ff24
> [1] http://en.wikipedia.org/wiki/List_of_software-defined_radios
Zbigniew Jędrzejewski-Szmek 43ff24
Zbigniew Jędrzejewski-Szmek 43ff24
(cherry picked from commit 30632d97d9d68c8202e562f34afae8f8d6e9c377)
Zbigniew Jędrzejewski-Szmek 43ff24
---
Zbigniew Jędrzejewski-Szmek 43ff24
 src/login/70-uaccess.rules | 3 +++
Zbigniew Jędrzejewski-Szmek 43ff24
 1 file changed, 3 insertions(+)
Zbigniew Jędrzejewski-Szmek 43ff24
Zbigniew Jędrzejewski-Szmek 43ff24
diff --git a/src/login/70-uaccess.rules b/src/login/70-uaccess.rules
Zbigniew Jędrzejewski-Szmek 43ff24
index 57f619d5eb..694df2cfc8 100644
Zbigniew Jędrzejewski-Szmek 43ff24
--- a/src/login/70-uaccess.rules
Zbigniew Jędrzejewski-Szmek 43ff24
+++ b/src/login/70-uaccess.rules
Zbigniew Jędrzejewski-Szmek 43ff24
@@ -72,4 +72,7 @@ ENV{DDC_DEVICE}=="?*", TAG+="uaccess"
Zbigniew Jędrzejewski-Szmek 43ff24
 # media player raw devices (for user-mode drivers, Android SDK, etc.)
Zbigniew Jędrzejewski-Szmek 43ff24
 SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="uaccess"
Zbigniew Jędrzejewski-Szmek 43ff24
 
Zbigniew Jędrzejewski-Szmek 43ff24
+# software-defined radio communication devices
Zbigniew Jędrzejewski-Szmek 43ff24
+ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
Zbigniew Jędrzejewski-Szmek 43ff24
+
Zbigniew Jędrzejewski-Szmek 43ff24
 LABEL="uaccess_end"