hal ChangeLog,1.282,1.283 hal.conf.in,1.3,1.4

David Zeuthen david at freedesktop.org
Fri Sep 3 11:28:58 PDT 2004


Update of /cvs/hal/hal
In directory gabe:/tmp/cvs-serv31473

Modified Files:
	ChangeLog hal.conf.in 
Log Message:
2004-09-03  David Zeuthen  <david at fubar.dk>

	Patch from Martin Pitt <martin at piware.de>.

	* hal.conf.in: Drop AgentManager interface. Allow both HAL_USER
	and root to own the org.freedesktop.Hal service.
	
	* hald/Makefile.am: Link with libcap
	
	* hald/hald.c: (usage), (drop_privileges), (main):
	add option --drop-privileges which causes hald not to run as root,
	but as @HAL_USER@ in @HAL_GROUP@ and all additional groups set in
	/etc/group, and keeping the necessary capabilities to do its
	job. This does _not_ change the default behaviour, if the option
	is not specified, hald runs as root, as before.



Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.282
retrieving revision 1.283
diff -u -d -r1.282 -r1.283
--- ChangeLog	3 Sep 2004 17:47:07 -0000	1.282
+++ ChangeLog	3 Sep 2004 18:28:56 -0000	1.283
@@ -2,6 +2,22 @@
 
 	Patch from Martin Pitt <martin at piware.de>.
 
+	* hal.conf.in: Drop AgentManager interface. Allow both HAL_USER
+	and root to own the org.freedesktop.Hal service.
+	
+	* hald/Makefile.am: Link with libcap
+	
+	* hald/hald.c: (usage), (drop_privileges), (main):
+	add option --drop-privileges which causes hald not to run as root,
+	but as @HAL_USER@ in @HAL_GROUP@ and all additional groups set in
+	/etc/group, and keeping the necessary capabilities to do its
+	job. This does _not_ change the default behaviour, if the option
+	is not specified, hald runs as root, as before.
+
+2004-09-03  David Zeuthen  <david at fubar.dk>
+
+	Patch from Martin Pitt <martin at piware.de>.
+
 	* hald/linux/block_class_device.c: (cdrom_get_properties),
 	(detect_media):
 	* hald/linux/input_class_device.c: (input_class_pre_process):

Index: hal.conf.in
===================================================================
RCS file: /cvs/hal/hal/hal.conf.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- hal.conf.in	2 Jan 2004 12:11:24 -0000	1.3
+++ hal.conf.in	3 Sep 2004 18:28:56 -0000	1.4
@@ -9,7 +9,7 @@
 
   <!-- Only user @HAL_USER@ can own the HAL service and be an agent -->
   <!-- policy user="@HAL_USER@" We require root to sniff mii registers -->
-  <policy user="root">
+  <policy user="@HAL_USER@">
     <allow own="org.freedesktop.Hal"/>
 
     <allow send_interface="org.freedesktop.Hal.AgentManager"
@@ -28,7 +28,7 @@
 
   <!-- Any user in the @HAL_GROUP@ group can use the AgentManager interface -->
   <!-- policy group="@HAL_GROUP@" Doesn't work on dbus 0.20. Works in CVS -->
-  <policy user="root">
+  <policy user="@HAL_USER@">
     <allow send_interface="org.freedesktop.Hal.AgentManager"
            send_destination="org.freedesktop.Hal"/>
     <allow receive_interface="org.freedesktop.Hal.AgentManager"




More information about the hal-commit mailing list