From 7e2af1c7489cbf974a57d482bb9d23c884d2aa49 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 16 Jan 2015 13:36:53 -0600 Subject: This patch adds a TOYBOX_SELINUX configuration option to control both the SELinux commands (such as chcon) and the SELinux-specific options to regular commands (such as ls -Z). This lets us #include in portability.h. I've also fixed chcon to insist on being given the a context argument. This patch also adds -Z to id and fixes id's regular output (-G should be separated by spaces, non-G output should be separated by commas, and you don't want a double comma where the egid is omitted from the list of groups). --- Config.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Config.in') diff --git a/Config.in b/Config.in index 29cf4e1f..f9437fa5 100644 --- a/Config.in +++ b/Config.in @@ -34,6 +34,13 @@ config TOYBOX_SUID chown root:root toybox; chmod +s toybox +config TOYBOX_SELINUX + bool "SELinux support" + default n + help + Include SELinux options in commands such as ls, and add + SELinux-specific commands such as chcon. + config TOYBOX_FLOAT bool "Floating point support" default y -- cgit v1.2.3