[patch] initialize selinux avc after forking
hp at redhat.com
Tue Nov 2 12:13:45 PST 2004
On Tue, 2004-11-02 at 14:40 -0500, Colin Walters wrote:
> 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.
Looks good to me
More information about the dbus