sysvinit-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sysvinit] Re: Build failure with selinux enabled


From: Werner Fink
Subject: Re: [sysvinit] Re: Build failure with selinux enabled
Date: Mon, 22 Mar 2010 10:59:33 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, Mar 20, 2010 at 09:19:37AM +0100, Petter Reinholdtsen wrote:
> [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
> 

At least the current kernel which is used for SELinux should
know about as this mount wrapper is used within the selinux
library its self.

       Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]