[patch] initialize selinux avc after forking
walters at verbum.org
Tue Nov 2 11:40:00 PST 2004
We need to call avc_init *after* forking (i.e. before bus_context_new).
It creates a thread for policy reload notifications, and a fork kills
that thread. Not sure how this worked before; I think the fork might
have been moved later, to be more configurable. I split
bus_selinux_init into two functions, bus_selinux_pre_init and
bus_selinux_full_init. The former just determines whether SELinux is
enabled or not, so the config file parsing, etc can do the right thing.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2997 bytes
Desc: not available
Url : http://freedesktop.org/pipermail/dbus/attachments/20041102/ea3ed232/dbus-selinux-init.bin
More information about the dbus