[PATCH] Allow disabling SELinux
- From: Frederic Crozat <fcrozat mandriva com>
- To: gnome-vfs-list gnome org
- Subject: [PATCH] Allow disabling SELinux
- Date: Wed, 23 Aug 2006 17:47:05 +0200
Hi, the attached patch allows users to disable SELinux support in
gnome-vfs (it might be required on some distributions, like Mandriva
where we don't use selinux at all but rsbac but sometimes, selinux
libraries are installed on the build system).
Please apply.
--
Frederic Crozat <fcrozat mandriva com>
Mandriva
--- gnome-vfs-2.15.90/configure.in.disableselinux 2006-08-03 17:18:14.000000000 +0200
+++ gnome-vfs-2.15.90/configure.in 2006-08-03 17:28:35.000000000 +0200
@@ -1199,9 +1199,12 @@
dnl ****************************
dnl *** Check for libselinux ***
dnl ****************************
-SELINUX_LIBS=
+AC_ARG_ENABLE(selinux, [ --disable-selinux build without selinux support])
msg_selinux=no
-AC_CHECK_LIB(selinux, is_selinux_enabled,
+SELINUX_LIBS=
+if test "x$enable_selinux" != "xno"; then
+
+ AC_CHECK_LIB(selinux, is_selinux_enabled,
[AC_CHECK_HEADERS(selinux/selinux.h,
[AC_SEARCH_LIBS(lgetfilecon_raw, selinux,
[AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available])
@@ -1209,6 +1212,7 @@
msg_selinux=yes])
])
])
+fi
AC_SUBST(SELINUX_LIBS)
dnl **************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]