[Petter Reinholdtsen]
> The current svn source fail to build with SE linux enabled.

I investigated some more, and the MNT_DETACH was introduced after
glibc 2.7, which is the version in Debian Lenny on my laptop.  It is
present in 2.10 in the Debian unstable repository.  This patch might
solve the issue.  It solve the build problem, at least.  I am unsure
which kernel have a umount2() call that understand this argument.

Index: src/init.c
===================================================================
--- src/init.c  (revision 44)
+++ src/init.c  (working copy)
@@ -55,6 +55,9 @@
 #ifdef WITH_SELINUX
 #include <selinux/selinux.h>
 #include <sys/mount.h>
+#  ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */
+#    define MNT_DETACH 2
+#  endif
 #endif



Happy hacking,
-- 
Petter Reinholdtsen


Reply via email to