rpms/hal/devel hal-use-at-console.patch, NONE, 1.1 hal.spec, 1.204, 1.205
Matthias Clasen
mclasen at fedoraproject.org
Thu Jul 30 03:20:00 UTC 2009
Author: mclasen
Update of /cvs/pkgs/rpms/hal/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20841
Modified Files:
hal.spec
Added Files:
hal-use-at-console.patch
Log Message:
Allow root access to devices
hal-use-at-console.patch:
hal.conf.in | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
--- NEW FILE hal-use-at-console.patch ---
diff -up hal-0.5.13/hal.conf.in.drop-polkit hal-0.5.13/hal.conf.in
--- hal-0.5.13/hal.conf.in.drop-polkit 2009-02-04 17:07:23.000000000 -0500
+++ hal-0.5.13/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"
Index: hal.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hal/devel/hal.spec,v
retrieving revision 1.204
retrieving revision 1.205
diff -u -p -r1.204 -r1.205
--- hal.spec 29 Jul 2009 13:19:05 -0000 1.204
+++ hal.spec 30 Jul 2009 03:20:00 -0000 1.205
@@ -26,7 +26,7 @@
Summary: Hardware Abstraction Layer
Name: hal
Version: 0.5.13
-Release: 6%{?dist}
+Release: 7%{?dist}
#Release: 1.%{?alphatag}%{?dist}
URL: http://www.freedesktop.org/Software/hal
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
@@ -49,7 +49,7 @@ Patch11: hal-HDAPS-blacklist.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=507782
Patch12: hal-mdfind.patch
-Patch100: hal-0.5.12-use-at-console.patch
+Patch100: hal-use-at-console.patch
License: AFL or GPLv2
Group: System Environment/Libraries
@@ -282,6 +282,9 @@ fi
%{_datadir}/gtk-doc/html/libhal-storage/*
%changelog
+* Wed Jul 29 2009 Matthias Clasen <mclasen at redhat.com> - 0.5.13-7
+- Grant root access to devices
+
* Wed Jul 29 2009 Richard Hughes <rhughes at redhat.com> - 0.5.13-6
- Don't compile with csr, ibm or cpufreq options, this functionality is
obsolete.
More information about the fedora-extras-commits
mailing list