diff options
author | Colin Walters <walters@verbum.org> | 2010-03-15 18:31:30 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-03-16 15:57:27 -0400 |
commit | ce34415302af586ea6ca9b0da4b21a7025041ef7 (patch) | |
tree | 3119976e98553c36580bda5a613d66ece27b157c /bus/bus.c | |
parent | f00c816c270ad5c01810231e1ed6bd54b1ab9652 (diff) |
Make SELinux initialization failure fatal
https://bugzilla.redhat.com/show_bug.cgi?id=572769
Previously we'd just continue if AVC initialization failed, but
that didn't really work because then we'd later crash in
avc_has_perm.
Simply treat initialization failures as fatal, and hopefully we
can get data from the system log.
Diffstat (limited to 'bus/bus.c')
-rw-r--r-- | bus/bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -803,9 +803,9 @@ bus_context_new (const DBusString *config_file, if (!bus_selinux_full_init ()) { - _dbus_warn ("SELinux initialization failed\n"); + bus_context_log (context, DBUS_SYSTEM_LOG_FATAL, "SELinux enabled but AVC initialization failed; check system log\n"); } - + if (!process_config_postinit (context, parser, error)) { _DBUS_ASSERT_ERROR_IS_SET (error); |