From patchwork Fri Sep 6 01:04:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 273015 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2DD652C00BC for ; Fri, 6 Sep 2013 11:05:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9184B9395E; Fri, 6 Sep 2013 01:06:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1KFJKxRoIQ+x; Fri, 6 Sep 2013 01:06:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1DFD09392F; Fri, 6 Sep 2013 01:06:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 732C51BFA8B for ; Fri, 6 Sep 2013 01:05:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D3638CAB8 for ; Fri, 6 Sep 2013 01:05:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id apg22NLntdbj for ; Fri, 6 Sep 2013 01:05:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id BAE8F8B7C9 for ; Fri, 6 Sep 2013 01:05:04 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp02.rockwellcollins.com) ([131.198.63.133]) by mail-virt.rockwellcollins.com with ESMTP; 05 Sep 2013 20:05:04 -0500 Received: from ares ([131.198.63.11]) by collinscrsmtp02.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013090520050381-751729 ; Thu, 5 Sep 2013 20:05:03 -0500 From: Ryan Barnett To: buildroot@busybox.net Date: Thu, 5 Sep 2013 20:04:23 -0500 Message-Id: <1378429464-12546-10-git-send-email-rjbarnet@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1378429464-12546-1-git-send-email-rjbarnet@rockwellcollins.com> References: <1378429464-12546-1-git-send-email-rjbarnet@rockwellcollins.com> X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP02/CedarRapids/RockwellCollins(Release 8.5.2FP2 HF162|May 16, 2011) at 09/05/2013 08:05:03 PM, Serialize by Router on CollinsCRSMTP02/CedarRapids/RockwellCollins(Release 8.5.2FP2 HF162|May 16, 2011) at 09/05/2013 08:05:03 PM, Serialize complete at 09/05/2013 08:05:03 PM X-TNEFEvaluated: 1 Subject: [Buildroot] [PATCH 09/10] dbus: add support for SELinux X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Ryan Barnett --- package/dbus/dbus.mk | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index d50f630..228b98e 100644 --- a/package/dbus/dbus.mk +++ b/package/dbus/dbus.mk @@ -21,7 +21,6 @@ DBUS_CONF_OPT = --with-dbus-user=dbus \ --disable-tests \ --disable-asserts \ --enable-abstract-sockets \ - --disable-selinux \ --disable-xml-docs \ --disable-doxygen-docs \ --disable-static \ @@ -54,6 +53,15 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y) DBUS_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system endif +# SELinux support relies on audit support so enable both +# of them if libselinux has been selected. +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +DBUS_CONF_OPT += --enable-selinux --enable-libaudit +DBUS_DEPENDENCIES += libselinux audit +else +DBUS_CONF_OPT += --disable-selinux --disable-libaudit +endif + # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink) define DBUS_REMOVE_VAR_LIB_DBUS rm -rf $(TARGET_DIR)/var/lib/dbus