summaryrefslogtreecommitdiff
blob: ae2aa8d3f31bbafb2b44b3982e20a8b9ff9d410d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ruN hal-0.5.6-old/hald/linux2/addons/addon-storage.c hal-0.5.6/hald/linux2/addons/addon-storage.c
--- hal-0.5.6-old/hald/linux2/addons/addon-storage.c	2006-02-21 15:44:15.000000000 +0100
+++ hal-0.5.6/hald/linux2/addons/addon-storage.c	2006-02-21 15:44:15.000000000 +0100
@@ -162,6 +162,8 @@
 	char *support_media_changed_str;
 	int support_media_changed;
 
+        drop_privileges (1);
+
 	if ((udi = getenv ("UDI")) == NULL)
 		goto out;
 	if ((device_file = getenv ("HAL_PROP_BLOCK_DEVICE")) == NULL)