summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-02-05 17:03:20 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-02-09 10:04:27 +0100
commita10cf06d1fe04bd6df92448284306f97c0bfdcf8 (patch)
treefaf20ade5d00052134a856fee831e0928e382e01 /tdecore
parent228610fd9e305fe3979f7306b267910c2bf454a0 (diff)
downloadtdelibs-a10cf06d1fe04bd6df92448284306f97c0bfdcf8.tar.gz
tdelibs-a10cf06d1fe04bd6df92448284306f97c0bfdcf8.zip
tdehwlib: Add allowed access for plugdev group members.
This is useful if the system no longer supports policy at_console. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7f7f7322f9986a25ceef33dc2f47853846e2ec88)
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf b/tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
index b897da36b..c50a5144d 100644
--- a/tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
+++ b/tdecore/tdehw/hwlibdaemons/dbus/org.trinitydesktop.hardwarecontrol.conf
@@ -37,6 +37,34 @@
send_interface="org.trinitydesktop.hardwarecontrol.Power"/>
</policy>
+ <policy group="plugdev">
+ <!-- Users who are members of the plugdev group are allowed access -->
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.freedesktop.DBus.Introspectable"/>
+
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.freedesktop.DBus.Properties"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol.Brightness"
+ send_interface="org.freedesktop.DBus.Properties"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol.CPUGovernor"
+ send_interface="org.freedesktop.DBus.Properties"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol.InputEvents"
+ send_interface="org.freedesktop.DBus.Properties"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol.Power"
+ send_interface="org.freedesktop.DBus.Properties"/>
+
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.trinitydesktop.hardwarecontrol"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.trinitydesktop.hardwarecontrol.Brightness"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.trinitydesktop.hardwarecontrol.CPUGovernor"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.trinitydesktop.hardwarecontrol.InputEvents"/>
+ <allow send_destination="org.trinitydesktop.hardwarecontrol"
+ send_interface="org.trinitydesktop.hardwarecontrol.Power"/>
+ </policy>
+
<policy context="default">
<!-- Everyone else is denied access -->
<deny own="org.trinitydesktop.hardwarecontrol"/>