<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi James,<br><br>Thanks for the patch.I also did the same and was able to remove the segmentation fault. As i told it was crashing in <span style="font-weight: bold;">sidtab_context_to_sid </span>in the line c->htable[hvalue] as becuase at that htable was not initialized at that point and gets initilized in <span style="font-weight: bold;">bus_selinux_full_init</span>.<br><br>But now after that when i confine the gconf daemon and try to run it is getting killed as it is not able to become the owner of the service name.I have included that domain and service name in system.conf file.While debuging dbus daemon i found that <span style="font-weight: bold;">sidtab_insert</span> from <span style="font-weight: bold;">sidtab_context_to_sid </span>was not becomming successfull for this
somwhow.I m still working on it.<br>Do you have any idea regarding the same?<br><br>Regards,<br>Shaunak<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> James Carter <jwcart2@tycho.nsa.gov><br><b><span style="font-weight: bold;">To:</span></b> dbus@lists.freedesktop.org<br><b><span style="font-weight: bold;">Cc:</span></b> SHAUNAK SAHA <indiaservice@citibankcorp.com><br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, 2 October, 2008 1:02:38 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [PATCH] Fix problem where call involving the SELinux AVC occurs before the AVC is initialized<br></font><br>This patch moves the call to bus_selinux_full_init so that it is before<br>the call to
process_config_postinit.<br>---<br><br>diff --git a/bus/bus.c b/bus/bus.c<br>index a28a267..6255330 100644<br>--- a/bus/bus.c<br>+++ b/bus/bus.c<br>@@ -736,6 +736,11 @@ bus_context_new (const DBusString *config_file,<br> if (print_pid_pipe && _dbus_pipe_is_valid (print_pid_pipe) &&<br> !_dbus_pipe_is_stdout_or_stderr (print_pid_pipe))<br> _dbus_pipe_close (print_pid_pipe, NULL);<br>+<br>+ if (!bus_selinux_full_init ())<br>+ {<br>+ _dbus_warn ("SELinux initialization failed\n");<br>+ }<br> <br> if (!process_config_postinit (context, parser, error))<br> {<br>@@ -765,11 +770,6 @@ bus_context_new (const DBusString *config_file,<br> bus_selinux_audit_init ();<br> #endif<br> }<br>-<br>- if (!bus_selinux_full_init ())<br>- {<br>- _dbus_warn ("SELinux
initialization failed\n");<br>- }<br> <br> dbus_server_free_data_slot (&server_data_slot);<br> <br><br>-- <br>James Carter <<a ymailto="mailto:jwcart2@tycho.nsa.gov" href="mailto:jwcart2@tycho.nsa.gov">jwcart2@tycho.nsa.gov</a>><br>National Security Agency<br><br>_______________________________________________<br>dbus mailing list<br><a ymailto="mailto:dbus@lists.freedesktop.org" href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br></div></div></div><br>
<!--1--><hr size=1></hr> Get perfect Email ID for your Resume. <a href="http://in.rd.yahoo.com/tagline_dbid_1/*http://in.promos.yahoo.com/address" target="_blank">Get before others grab.</a></body></html>