3e5df9accf
Stuff was taken from Arch Linux, now all users logged in the console are authenticated via ConsoleKit. Bump revision. --HG-- extra : convert_revision : b0986ed4b1454ac2f11ecc35b23d9d8de14996a4
46 lines
2.2 KiB
Diff
46 lines
2.2 KiB
Diff
From Arch Linux.
|
|
|
|
--- hal.conf.in.drop-polkit 2009-02-04 17:07:23.000000000 -0500
|
|
+++ hal.conf.in 2009-07-29 23:15:16.866766074 -0400
|
|
@@ -25,7 +25,41 @@
|
|
send_interface="org.freedesktop.Hal.Device"/>
|
|
<allow send_destination="org.freedesktop.Hal"
|
|
send_interface="org.freedesktop.Hal.Manager"/>
|
|
+ </policy>
|
|
+
|
|
+ <!-- Only allow users at the local console to manipulate devices -->
|
|
+ <policy at_console="true">
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.DockStation"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.Leds"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.LightSensor"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.Storage"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.Volume"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
|
|
+ <allow send_destination="org.freedesktop.Hal"
|
|
+ send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
|
|
+
|
|
+ </policy>
|
|
|
|
+ <!-- well,...and root too -->
|
|
+ <policy user="root">
|
|
<allow send_destination="org.freedesktop.Hal"
|
|
send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
|
|
<allow send_destination="org.freedesktop.Hal"
|