summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRichard Haines <richard_c_haines@btinternet.com>2014-03-07 10:36:52 +0000
committerStephen Hemminger <stephen@networkplumber.org>2014-03-10 13:20:49 -0700
commit116ac9270b6d5eb0605774bcd59f0bd079865126 (patch)
tree1c2a70e6fb43058304cded54ad88698043d8801f /configure
parent81ebcb2ae9c93fd8dffcc498eedc2f39be7fabae (diff)
ss: Add support for retrieving SELinux contexts
The process SELinux contexts can be added to the output using the -Z option. Using the -z option will show the process and socket contexts (see the man page for details). For netlink sockets: if valid process show process context, if pid = 0 show kernel initial context, if unknown show "unavailable". Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index da01c19b..d5170f0a 100755
--- a/configure
+++ b/configure
@@ -231,6 +231,18 @@ EOF
rm -f $TMPDIR/ipsettest.c $TMPDIR/ipsettest
}
+check_selinux()
+# SELinux is a compile time option in the ss utility
+{
+ if ${PKG_CONFIG} libselinux --exists
+ then
+ echo "HAVE_SELINUX:=y" >>Config
+ echo "yes"
+ else
+ echo "no"
+ fi
+}
+
echo "# Generated config based on" $INCLUDE >Config
check_toolchain
@@ -253,3 +265,6 @@ check_ipt_lib_dir
echo -n "libc has setns: "
check_setns
+
+echo -n "SELinux support: "
+check_selinux