summaryrefslogtreecommitdiff
path: root/bus/bus.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-03-15 18:31:30 -0400
committerColin Walters <walters@verbum.org>2010-03-16 15:57:27 -0400
commitce34415302af586ea6ca9b0da4b21a7025041ef7 (patch)
tree3119976e98553c36580bda5a613d66ece27b157c /bus/bus.c
parentf00c816c270ad5c01810231e1ed6bd54b1ab9652 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/bus.c b/bus/bus.c
index aaca3aa0..3e37e90a 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -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);