From e40d11d4079d1d351d0aa3b20c196760d1f1c505 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 22 Sep 2011 18:35:47 +0200 Subject: [PATCH 5/5] include selinux stuff in session.conf only when configured with --- bus/Makefile.am | 5 +++++ bus/session.conf.in | 2 +- cmake/bus/CMakeLists.txt | 11 ++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bus/Makefile.am b/bus/Makefile.am index 4f6a803..dcb09bc 100644 --- a/bus/Makefile.am +++ b/bus/Makefile.am @@ -8,6 +8,11 @@ INCLUDES = -I$(top_srcdir) \ EFENCE= +if DBUS_HAVE_SELINUX +DBUS_CONF_INCLUDE_SELINUX = + contexts/dbus_contexts +endif + CONFIG_IN_FILES= \ session.conf.in \ system.conf.in \ diff --git a/bus/session.conf.in b/bus/session.conf.in index e121ff9..87fc5e3 100644 --- a/bus/session.conf.in +++ b/bus/session.conf.in @@ -33,7 +33,7 @@ in this standard file --> session-local.conf - contexts/dbus_contexts + @DBUS_CONF_INCLUDE_SELINUX@