[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sysvinit] Re: Build failure with selinux enabled
From: |
Petter Reinholdtsen |
Subject: |
[sysvinit] Re: Build failure with selinux enabled |
Date: |
Sat, 20 Mar 2010 09:19:37 +0100 |
User-agent: |
Mutt/1.4.2.2i |
[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