dbus/bus selinux.c,1.12,1.13

Colin Walters walters at freedesktop.org
Sun Feb 6 21:32:01 PST 2005


Update of /cvs/dbus/dbus/bus
In directory gabe:/tmp/cvs-serv8537/bus

Modified Files:
	selinux.c 
Log Message:
2005-02-07  Colin Walters  <walters at verbum.org>

	* bus/selinux.c (bus_selinux_allows_send): Handle NULL for
	sender or proposed_recipient.


Index: selinux.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/selinux.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- selinux.c	9 Nov 2004 06:11:33 -0000	1.12
+++ selinux.c	7 Feb 2005 05:31:59 -0000	1.13
@@ -470,9 +470,9 @@
   if (!selinux_enabled)
     return TRUE;
 
-  if (!dbus_connection_get_unix_process_id (sender, &spid))
+  if (!sender || !dbus_connection_get_unix_process_id (sender, &spid))
     spid = 0;
-  if (!dbus_connection_get_unix_process_id (proposed_recipient, &tpid))
+  if (!proposed_recipient || !dbus_connection_get_unix_process_id (proposed_recipient, &tpid))
     tpid = 0;
 
   auxdata = dbus_new0 (DBusString, 1);



More information about the dbus-commit mailing list