diff options
author | Richard Haines <richard_c_haines@btinternet.com> | 2014-03-07 10:36:52 +0000 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2014-03-10 13:20:49 -0700 |
commit | 116ac9270b6d5eb0605774bcd59f0bd079865126 (patch) | |
tree | 1c2a70e6fb43058304cded54ad88698043d8801f /configure | |
parent | 81ebcb2ae9c93fd8dffcc498eedc2f39be7fabae (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-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |