[patch] initialize selinux avc after forking

Joerg Barfurth Joerg.Barfurth at Sun.COM
Wed Nov 3 07:54:26 PST 2004


Hi,

Colin Walters wrote:

> Index: bus/test-main.c
> ===================================================================
> RCS file: /cvs/dbus/dbus/bus/test-main.c,v
> retrieving revision 1.19
> diff -u -d -u -r1.19 test-main.c
> --- bus/test-main.c	23 Aug 2004 16:09:53 -0000	1.19
> +++ bus/test-main.c	2 Nov 2004 18:15:58 -0000
> @@ -56,7 +56,9 @@
>  test_pre_hook (void)
>  {
>    
> -  if (_dbus_getenv ("DBUS_TEST_SELINUX") && !bus_selinux_init ())
> +  if (_dbus_getenv ("DBUS_TEST_SELINUX")
> +      && !bus_selinux_pre_init ()
> +      && !bus_selinux_full_init ())
>      die ("could not init selinux support");
>  }
>  

The logic of the test looks garbled to me.

Ciao, Jörg

-- 
Joerg Barfurth              Sun Microsystems - Desktop - Hamburg
 >>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer                         joerg.barfurth at sun.com
OpenOffice.org Configuration          http://util.openoffice.org





More information about the dbus mailing list