SOURCES: ipsec-tools-selinux-check.patch (NEW) - upstream, selinux...
zawadaa
zawadaa at pld-linux.org
Mon Oct 1 21:42:50 CEST 2007
Author: zawadaa Date: Mon Oct 1 19:42:50 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- upstream, selinux proper check
---- Files affected:
SOURCES:
ipsec-tools-selinux-check.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/ipsec-tools-selinux-check.patch
diff -u /dev/null SOURCES/ipsec-tools-selinux-check.patch:1.1
--- /dev/null Mon Oct 1 21:42:50 2007
+++ SOURCES/ipsec-tools-selinux-check.patch Mon Oct 1 21:42:45 2007
@@ -0,0 +1,32 @@
+diff -urpN ipsec-tools/configure.ac ipsec-tools.config/configure.ac
+--- ipsec-tools/configure.ac 2007-07-18 07:07:50.000000000 -0500
++++ ipsec-tools.config/configure.ac 2007-09-11 11:42:07.000000000 -0500
+@@ -767,6 +767,10 @@ yes
+ esac
+ AC_MSG_RESULT($kernel_secctx)
+
++AC_CHECK_HEADER(selinux/selinux.h,
++ [AC_CHECK_LIB(selinux, avc_init, [selinux_support=yes],
++ [selinux_support=no])], [selinux_support=no])
++
+ AC_MSG_CHECKING(whether to support Security Context)
+ AC_ARG_ENABLE(security-context,
+ [ --enable-security-context enable Security Context(yes/no/kernel)],
+@@ -779,10 +783,14 @@ if test "$enable_security_context" = "ye
+ if test "$kernel_secctx" = "no" ; then
+ AC_MSG_ERROR([Security Context requested, but no kernel support! Aborting.])
+ else
+- AC_DEFINE([HAVE_SECCTX], [], [Enable Security Context])
+- SECCTX_OBJS="security.o"
+- AC_SUBST(SECCTX_OBJS)
+- LIBS="$LIBS -lselinux"
++ if test "$selinux_support" = "no"; then
++ AC_MSG_ERROR([Security Context requested, but no selinux support! Aborting.])
++ else
++ AC_DEFINE([HAVE_SECCTX], [], [Enable Security Context])
++ SECCTX_OBJS="security.o"
++ AC_SUBST(SECCTX_OBJS)
++ LIBS="$LIBS -lselinux"
++ fi
+ fi
+ fi
================================================================
More information about the pld-cvs-commit
mailing list