Patchwork [08/10] coreutils: add support for SELinux

login
register
mail settings
Submitter Ryan Barnett
Date Sept. 6, 2013, 1:04 a.m.
Message ID <1378429464-12546-9-git-send-email-rjbarnet@rockwellcollins.com>
Download mbox | patch
Permalink /patch/273014/
State Changes Requested
Headers show

Comments

Ryan Barnett - Sept. 6, 2013, 1:04 a.m.
Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
---
 package/coreutils/coreutils.mk |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Thomas Petazzoni - Sept. 8, 2013, 4:36 p.m.
Dear Ryan Barnett,

On Thu, 5 Sep 2013 20:04:22 -0500, Ryan Barnett wrote:
> 
> Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
> ---
>  package/coreutils/coreutils.mk |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
> index 17c81f7..9c18d85 100644
> --- a/package/coreutils/coreutils.mk
> +++ b/package/coreutils/coreutils.mk
> @@ -16,6 +16,13 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
>  COREUTILS_DEPENDENCIES = busybox
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
> +COREUTILS_DEPENDENCIES += libselinux
> +COREUTILS_CONF_OPT += --with-selinux
> +else
> +COREUTILS_CONF_OPT += --without-selinux
> +endif
> +
>  COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false hostname \
>  	ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
>  	uname join
> @@ -59,6 +66,7 @@ COREUTILS_CONF_OPT = --disable-rpath \
>  		--disable-dependency-tracking \
>  		--enable-install-program=hostname
>  
> +

Nitpick: unneeded change.

Other than that, looks good.

Thomas

Patch

diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 17c81f7..9c18d85 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -16,6 +16,13 @@  ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 COREUTILS_DEPENDENCIES = busybox
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+COREUTILS_DEPENDENCIES += libselinux
+COREUTILS_CONF_OPT += --with-selinux
+else
+COREUTILS_CONF_OPT += --without-selinux
+endif
+
 COREUTILS_BIN_PROGS = cat chgrp chmod chown cp date dd df dir echo false hostname \
 	ln ls mkdir mknod mv pwd rm rmdir vdir sleep stty sync touch true \
 	uname join
@@ -59,6 +66,7 @@  COREUTILS_CONF_OPT = --disable-rpath \
 		--disable-dependency-tracking \
 		--enable-install-program=hostname
 
+
 define COREUTILS_TOUCH_UNAME_C
 	# ensure uname.c file's timestamp does not change,
 	# so help2man does not run