All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5 13/24] dbus: selinux file context support
Date: Wed, 13 May 2015 16:39:26 -0500	[thread overview]
Message-ID: <1431553177-7280-14-git-send-email-clayton.shotwell@rockwellcollins.com> (raw)
In-Reply-To: <1431553177-7280-1-git-send-email-clayton.shotwell@rockwellcollins.com>

From: Matt Weber <matthew.weber@rockwellcollins.com>

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>

---
Changes v4 -> v5
  - No changes

Changes v1 -> v4:
  - Did not exist
---
 package/dbus/S30dbus |  4 ++++
 package/dbus/dbus.mk | 14 ++++++++++++++
 2 files changed, 18 insertions(+)
 mode change 100755 => 100644 package/dbus/S30dbus

diff --git a/package/dbus/S30dbus b/package/dbus/S30dbus
old mode 100755
new mode 100644
index 0d15c73..be51807
--- a/package/dbus/S30dbus
+++ b/package/dbus/S30dbus
@@ -17,6 +17,10 @@
 [ -d /var/run/dbus ] || mkdir -p /var/run/dbus
 [ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
 [ -d /tmp/dbus ] || mkdir -p /tmp/dbus
+[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
+if [ -e /sbin/restorecon ]; then
+   restorecon -R /var/run/dbus /var/lock/subsys /tmp/dbus /var/lib/dbus
+fi
 
 RETVAL=0
 
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index c810800..a5ec807 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -44,6 +44,20 @@ ifeq ($(BR2_microblaze),y)
 DBUS_CONF_OPTS += --disable-inotify
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+DBUS_CONF_OPTS += --enable-selinux
+DBUS_DEPENDENCIES += libselinux
+else
+DBUS_CONF_OPTS += --disable-selinux
+endif
+
+ifeq ($(BR2_PACKAGE_AUDIT),y)
+DBUS_CONF_OPTS += --enable-libaudit
+DBUS_DEPENDENCIES += audit libcap-ng
+else
+DBUS_CONF_OPTS += --disable-libaudit
+endif
+
 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
 DBUS_CONF_OPTS += --with-x
 DBUS_DEPENDENCIES += xlib_libX11
-- 
1.9.1

  parent reply	other threads:[~2015-05-13 21:39 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 21:39 [Buildroot] [PATCH v5 00/24] SELinux Buildroot Additions Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 01/24] sepolgen: new package Clayton Shotwell
2015-05-18 21:16   ` Thomas Petazzoni
2015-05-18 21:30     ` Clayton Shotwell
2015-05-18 21:33       ` Thomas Petazzoni
2015-05-21 21:15   ` Thomas Petazzoni
2015-05-13 21:39 ` [Buildroot] [PATCH v5 02/24] sqlite: Add host build support Clayton Shotwell
2015-05-18 21:17   ` Thomas Petazzoni
2015-05-18 21:26     ` Clayton Shotwell
2015-05-18 21:33       ` Thomas Petazzoni
2015-05-13 21:39 ` [Buildroot] [PATCH v5 03/24] setools: new package Clayton Shotwell
2015-05-18 21:31   ` Thomas Petazzoni
2015-05-19 13:22     ` Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 04/24] python-pyparsing: Add host build option Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 05/24] audit: new package Clayton Shotwell
2015-05-14 17:31   ` Samuel Martin
2015-05-18 13:51     ` Clayton Shotwell
2015-05-21 21:33   ` Thomas Petazzoni
2015-05-22 18:28     ` Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 06/24] policycoreutils: " Clayton Shotwell
2015-05-15  5:29   ` Samuel Martin
2015-05-15  5:55     ` Samuel Martin
2015-05-13 21:39 ` [Buildroot] [PATCH v5 07/24] refpolicy: " Clayton Shotwell
2015-05-13 22:01   ` Ryan Barnett
2015-05-15  6:00   ` Samuel Martin
2015-05-18 14:03     ` Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 08/24] busybox: applets as individual binaries Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 09/24] busybox: selinux support Clayton Shotwell
2015-05-15  6:22   ` Samuel Martin
2015-05-18 14:14     ` Clayton Shotwell
2015-05-18 14:30       ` Thomas Petazzoni
2015-05-18 14:31         ` Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 10/24] linux-pam: " Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 11/24] busybox: added linux-pam support Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 12/24] sysvinit: added libselinux dependency Clayton Shotwell
2015-05-13 21:39 ` Clayton Shotwell [this message]
2015-05-13 21:39 ` [Buildroot] [PATCH v5 14/24] openssh: selinux and pam support Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 15/24] util-linux: selinux, audit, " Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 16/24] vim: selinux support Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 17/24] rsyslog: fix config file comment style Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 18/24] qemu x86 selinux: added common selinux support files Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 19/24] qemu x86 selinux: base br defconfig Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 20/24] libsemanage: cleanup python use and license definition Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 21/24] bash: added option to disable locale support Clayton Shotwell
2015-05-14  0:42   ` Matthew Weber
2015-05-13 21:39 ` [Buildroot] [PATCH v5 22/24] squashfs: Add xattr support Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 23/24] mtd: " Clayton Shotwell
2015-05-13 21:39 ` [Buildroot] [PATCH v5 24/24] cpio: new package Clayton Shotwell
2015-05-15  7:26   ` Samuel Martin
2015-05-18 14:09     ` Clayton Shotwell
2015-05-18 14:13       ` Thomas Petazzoni
2015-05-18 14:16         ` Clayton Shotwell
2015-05-18 14:24           ` Samuel Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431553177-7280-14-git-send-email-clayton.shotwell@rockwellcollins.com \
    --to=clayton.shotwell@rockwellcollins.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.