e287a3c
To: vim_dev@googlegroups.com
e287a3c
Subject: Patch 7.4.238
e287a3c
Fcc: outbox
e287a3c
From: Bram Moolenaar <Bram@moolenaar.net>
e287a3c
Mime-Version: 1.0
e287a3c
Content-Type: text/plain; charset=UTF-8
e287a3c
Content-Transfer-Encoding: 8bit
e287a3c
------------
e287a3c
e287a3c
Patch 7.4.238
e287a3c
Problem:    Vim does not support the smack library.
e287a3c
Solution:   Add smack support (Jose Bollo)
e287a3c
Files:	    src/config.h.in, src/configure.in, src/fileio.c, src/memfile.c,
e287a3c
	    src/os_unix.c, src/undo.c, src/auto/configure
e287a3c
e287a3c
e287a3c
*** ../vim-7.4.237/src/config.h.in	2014-02-23 22:52:33.364764715 +0100
e287a3c
--- src/config.h.in	2014-04-02 13:37:41.095910851 +0200
e287a3c
***************
e287a3c
*** 191,196 ****
e287a3c
--- 191,197 ----
e287a3c
  #undef HAVE_SIGSETJMP
e287a3c
  #undef HAVE_SIGSTACK
e287a3c
  #undef HAVE_SIGVEC
e287a3c
+ #undef HAVE_SMACK
e287a3c
  #undef HAVE_STRCASECMP
e287a3c
  #undef HAVE_STRERROR
e287a3c
  #undef HAVE_STRFTIME
e287a3c
*** ../vim-7.4.237/src/configure.in	2014-03-27 18:51:06.604760919 +0100
e287a3c
--- src/configure.in	2014-04-02 13:49:36.955901004 +0200
e287a3c
***************
e287a3c
*** 387,406 ****
e287a3c
  AC_SUBST(QUOTESED)
e287a3c
  
e287a3c
  
e287a3c
! dnl Link with -lselinux for SELinux stuff; if not found
e287a3c
! AC_MSG_CHECKING(--disable-selinux argument)
e287a3c
! AC_ARG_ENABLE(selinux,
e287a3c
! 	[  --disable-selinux	  Don't check for SELinux support.],
e287a3c
! 	, enable_selinux="yes")
e287a3c
! if test "$enable_selinux" = "yes"; then
e287a3c
    AC_MSG_RESULT(no)
e287a3c
!   AC_CHECK_LIB(selinux, is_selinux_enabled,
e287a3c
! 	  [LIBS="$LIBS -lselinux"
e287a3c
! 	   AC_DEFINE(HAVE_SELINUX)])
e287a3c
  else
e287a3c
     AC_MSG_RESULT(yes)
e287a3c
  fi
e287a3c
  
e287a3c
  dnl Check user requested features.
e287a3c
  
e287a3c
  AC_MSG_CHECKING(--with-features argument)
e287a3c
--- 387,427 ----
e287a3c
  AC_SUBST(QUOTESED)
e287a3c
  
e287a3c
  
e287a3c
! dnl Link with -lsmack for Smack stuff; if not found
e287a3c
! AC_MSG_CHECKING(--disable-smack argument)
e287a3c
! AC_ARG_ENABLE(smack,
e287a3c
! 	[  --disable-smack	  Do not check for Smack support.],
e287a3c
! 	, enable_smack="yes")
e287a3c
! if test "$enable_smack" = "yes"; then
e287a3c
!   AC_CHECK_HEADER([linux/xattr.h], true, enable_smack="no")
e287a3c
! fi
e287a3c
! if test "$enable_smack" = "yes"; then
e287a3c
    AC_MSG_RESULT(no)
e287a3c
!   AC_CHECK_LIB(attr, llistxattr,
e287a3c
! 	  [LIBS="$LIBS -lattr"
e287a3c
! 	   found_smack="yes"
e287a3c
! 	   AC_DEFINE(HAVE_SMACK)])
e287a3c
  else
e287a3c
     AC_MSG_RESULT(yes)
e287a3c
  fi
e287a3c
  
e287a3c
+ dnl When smack was found don't search for SELinux
e287a3c
+ if test "x$found_smack" = "x"; then
e287a3c
+   dnl Link with -lselinux for SELinux stuff; if not found
e287a3c
+   AC_MSG_CHECKING(--disable-selinux argument)
e287a3c
+   AC_ARG_ENABLE(selinux,
e287a3c
+ 	  [  --disable-selinux	  Do not check for SELinux support.],
e287a3c
+ 	  , enable_selinux="yes")
e287a3c
+   if test "$enable_selinux" = "yes"; then
e287a3c
+     AC_MSG_RESULT(no)
e287a3c
+     AC_CHECK_LIB(selinux, is_selinux_enabled,
e287a3c
+ 	    [LIBS="$LIBS -lselinux"
e287a3c
+ 	     AC_DEFINE(HAVE_SELINUX)])
e287a3c
+   else
e287a3c
+      AC_MSG_RESULT(yes)
e287a3c
+   fi
e287a3c
+ fi
e287a3c
+ 
e287a3c
  dnl Check user requested features.
e287a3c
  
e287a3c
  AC_MSG_CHECKING(--with-features argument)
e287a3c
*** ../vim-7.4.237/src/fileio.c	2014-03-12 16:51:35.056792541 +0100
e287a3c
--- src/fileio.c	2014-04-02 13:39:28.983909367 +0200
e287a3c
***************
e287a3c
*** 4030,4036 ****
e287a3c
  						)
e287a3c
  			    mch_setperm(backup,
e287a3c
  					  (perm & 0707) | ((perm & 07) << 3));
e287a3c
! # ifdef HAVE_SELINUX
e287a3c
  			mch_copy_sec(fname, backup);
e287a3c
  # endif
e287a3c
  #endif
e287a3c
--- 4030,4036 ----
e287a3c
  						)
e287a3c
  			    mch_setperm(backup,
e287a3c
  					  (perm & 0707) | ((perm & 07) << 3));
e287a3c
! # if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
  			mch_copy_sec(fname, backup);
e287a3c
  # endif
e287a3c
  #endif
e287a3c
***************
e287a3c
*** 4069,4075 ****
e287a3c
  #ifdef HAVE_ACL
e287a3c
  			mch_set_acl(backup, acl);
e287a3c
  #endif
e287a3c
! #ifdef HAVE_SELINUX
e287a3c
  			mch_copy_sec(fname, backup);
e287a3c
  #endif
e287a3c
  			break;
e287a3c
--- 4069,4075 ----
e287a3c
  #ifdef HAVE_ACL
e287a3c
  			mch_set_acl(backup, acl);
e287a3c
  #endif
e287a3c
! #if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
  			mch_copy_sec(fname, backup);
e287a3c
  #endif
e287a3c
  			break;
e287a3c
***************
e287a3c
*** 4718,4724 ****
e287a3c
      }
e287a3c
  #endif
e287a3c
  
e287a3c
! #ifdef HAVE_SELINUX
e287a3c
      /* Probably need to set the security context. */
e287a3c
      if (!backup_copy)
e287a3c
  	mch_copy_sec(backup, wfname);
e287a3c
--- 4718,4724 ----
e287a3c
      }
e287a3c
  #endif
e287a3c
  
e287a3c
! #if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
      /* Probably need to set the security context. */
e287a3c
      if (!backup_copy)
e287a3c
  	mch_copy_sec(backup, wfname);
e287a3c
***************
e287a3c
*** 6707,6713 ****
e287a3c
      mch_set_acl(to, acl);
e287a3c
      mch_free_acl(acl);
e287a3c
  #endif
e287a3c
! #ifdef HAVE_SELINUX
e287a3c
      mch_copy_sec(from, to);
e287a3c
  #endif
e287a3c
      if (errmsg != NULL)
e287a3c
--- 6707,6713 ----
e287a3c
      mch_set_acl(to, acl);
e287a3c
      mch_free_acl(acl);
e287a3c
  #endif
e287a3c
! #if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
      mch_copy_sec(from, to);
e287a3c
  #endif
e287a3c
      if (errmsg != NULL)
e287a3c
*** ../vim-7.4.237/src/memfile.c	2013-05-23 22:22:22.000000000 +0200
e287a3c
--- src/memfile.c	2014-04-02 13:37:41.103910851 +0200
e287a3c
***************
e287a3c
*** 1358,1364 ****
e287a3c
  	if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
e287a3c
  	    fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
e287a3c
  #endif
e287a3c
! #ifdef HAVE_SELINUX
e287a3c
  	mch_copy_sec(fname, mfp->mf_fname);
e287a3c
  #endif
e287a3c
  	mch_hide(mfp->mf_fname);    /* try setting the 'hidden' flag */
e287a3c
--- 1358,1364 ----
e287a3c
  	if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
e287a3c
  	    fcntl(mfp->mf_fd, F_SETFD, fdflags | FD_CLOEXEC);
e287a3c
  #endif
e287a3c
! #if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
  	mch_copy_sec(fname, mfp->mf_fname);
e287a3c
  #endif
e287a3c
  	mch_hide(mfp->mf_fname);    /* try setting the 'hidden' flag */
e287a3c
*** ../vim-7.4.237/src/os_unix.c	2014-04-01 21:00:45.436733663 +0200
e287a3c
--- src/os_unix.c	2014-04-02 13:58:55.427893322 +0200
e287a3c
***************
e287a3c
*** 46,51 ****
e287a3c
--- 46,59 ----
e287a3c
  static int selinux_enabled = -1;
e287a3c
  #endif
e287a3c
  
e287a3c
+ #ifdef HAVE_SMACK
e287a3c
+ # include <attr/xattr.h>
e287a3c
+ # include <linux/xattr.h>
e287a3c
+ # ifndef SMACK_LABEL_LEN
e287a3c
+ #  define SMACK_LABEL_LEN 1024
e287a3c
+ # endif
e287a3c
+ #endif
e287a3c
+ 
e287a3c
  /*
e287a3c
   * Use this prototype for select, some include files have a wrong prototype
e287a3c
   */
e287a3c
***************
e287a3c
*** 2798,2803 ****
e287a3c
--- 2806,2895 ----
e287a3c
  }
e287a3c
  #endif /* HAVE_SELINUX */
e287a3c
  
e287a3c
+ #if defined(HAVE_SMACK) && !defined(PROTO)
e287a3c
+ /*
e287a3c
+  * Copy security info from "from_file" to "to_file".
e287a3c
+  */
e287a3c
+     void
e287a3c
+ mch_copy_sec(from_file, to_file)
e287a3c
+     char_u	*from_file;
e287a3c
+     char_u	*to_file;
e287a3c
+ {
e287a3c
+     static const char const *smack_copied_attributes[] =
e287a3c
+ 	{
e287a3c
+ 	    XATTR_NAME_SMACK,
e287a3c
+ 	    XATTR_NAME_SMACKEXEC,
e287a3c
+ 	    XATTR_NAME_SMACKMMAP
e287a3c
+ 	};
e287a3c
+ 
e287a3c
+     char	buffer[SMACK_LABEL_LEN];
e287a3c
+     const char	*name;
e287a3c
+     int		index;
e287a3c
+     int		ret;
e287a3c
+     ssize_t	size;
e287a3c
+ 
e287a3c
+     if (from_file == NULL)
e287a3c
+ 	return;
e287a3c
+ 
e287a3c
+     for (index = 0 ; index < (int)(sizeof(smack_copied_attributes)
e287a3c
+ 			      / sizeof(smack_copied_attributes)[0]) ; index++)
e287a3c
+     {
e287a3c
+ 	/* get the name of the attribute to copy */
e287a3c
+ 	name = smack_copied_attributes[index];
e287a3c
+ 
e287a3c
+ 	/* get the value of the attribute in buffer */
e287a3c
+ 	size = getxattr((char*)from_file, name, buffer, sizeof(buffer));
e287a3c
+ 	if (size >= 0)
e287a3c
+ 	{
e287a3c
+ 	    /* copy the attribute value of buffer */
e287a3c
+ 	    ret = setxattr((char*)to_file, name, buffer, (size_t)size, 0);
e287a3c
+ 	    if (ret < 0)
e287a3c
+ 	    {
e287a3c
+ 		MSG_PUTS(_("Could not set security context "));
e287a3c
+ 		MSG_PUTS(name);
e287a3c
+ 		MSG_PUTS(_(" for "));
e287a3c
+ 		msg_outtrans(to_file);
e287a3c
+ 		msg_putchar('\n');
e287a3c
+ 	    }
e287a3c
+ 	}
e287a3c
+ 	else
e287a3c
+ 	{
e287a3c
+ 	    /* what reason of not having the attribute value? */
e287a3c
+ 	    switch (errno)
e287a3c
+ 	    {
e287a3c
+ 		case ENOTSUP:
e287a3c
+ 		    /* extended attributes aren't supported or enabled */
e287a3c
+ 		    /* should a message be echoed? not sure... */
e287a3c
+ 		    return; /* leave because it isn't usefull to continue */
e287a3c
+ 
e287a3c
+ 		case ERANGE:
e287a3c
+ 		default:
e287a3c
+ 		    /* no enough size OR unexpected error */
e287a3c
+ 		    MSG_PUTS(_("Could not get security context "));
e287a3c
+ 		    MSG_PUTS(name);
e287a3c
+ 		    MSG_PUTS(_(" for "));
e287a3c
+ 		    msg_outtrans(from_file);
e287a3c
+ 		    MSG_PUTS(_(". Removing it!\n"));
e287a3c
+ 		    /* FALLTHROUGH to remove the attribute */
e287a3c
+ 
e287a3c
+ 		case ENODATA:
e287a3c
+ 		    /* no attribute of this name */
e287a3c
+ 		    ret = removexattr((char*)to_file, name);
e287a3c
+ 		    if (ret < 0 && errno != ENODATA)
e287a3c
+ 		    {
e287a3c
+ 			MSG_PUTS(_("Could not remove security context "));
e287a3c
+ 			MSG_PUTS(name);
e287a3c
+ 			MSG_PUTS(_(" for "));
e287a3c
+ 			msg_outtrans(to_file);
e287a3c
+ 			msg_putchar('\n');
e287a3c
+ 		    }
e287a3c
+ 		    break;
e287a3c
+ 	    }
e287a3c
+ 	}
e287a3c
+     }
e287a3c
+ }
e287a3c
+ #endif /* HAVE_SMACK */
e287a3c
+ 
e287a3c
  /*
e287a3c
   * Return a pointer to the ACL of file "fname" in allocated memory.
e287a3c
   * Return NULL if the ACL is not available for whatever reason.
e287a3c
*** ../vim-7.4.237/src/undo.c	2014-03-23 15:12:29.943264337 +0100
e287a3c
--- src/undo.c	2014-04-02 13:42:15.387907078 +0200
e287a3c
***************
e287a3c
*** 1455,1461 ****
e287a3c
  # endif
e287a3c
         )
e287a3c
  	mch_setperm(file_name, (perm & 0707) | ((perm & 07) << 3));
e287a3c
! # ifdef HAVE_SELINUX
e287a3c
      if (buf->b_ffname != NULL)
e287a3c
  	mch_copy_sec(buf->b_ffname, file_name);
e287a3c
  # endif
e287a3c
--- 1455,1461 ----
e287a3c
  # endif
e287a3c
         )
e287a3c
  	mch_setperm(file_name, (perm & 0707) | ((perm & 07) << 3));
e287a3c
! # if defined(HAVE_SELINUX) || defined(HAVE_SMACK)
e287a3c
      if (buf->b_ffname != NULL)
e287a3c
  	mch_copy_sec(buf->b_ffname, file_name);
e287a3c
  # endif
e287a3c
*** ../vim-7.4.237/src/auto/configure	2014-03-27 18:51:06.612760919 +0100
e287a3c
--- src/auto/configure	2014-04-02 13:50:11.375900531 +0200
e287a3c
***************
e287a3c
*** 782,787 ****
e287a3c
--- 782,788 ----
e287a3c
  with_view_name
e287a3c
  with_global_runtime
e287a3c
  with_modified_by
e287a3c
+ enable_smack
e287a3c
  enable_selinux
e287a3c
  with_features
e287a3c
  with_compiledby
e287a3c
***************
e287a3c
*** 1453,1459 ****
e287a3c
    --enable-fail-if-missing    Fail if dependencies on additional features
e287a3c
       specified on the command line are missing.
e287a3c
    --disable-darwin        Disable Darwin (Mac OS X) support.
e287a3c
!   --disable-selinux	  Don't check for SELinux support.
e287a3c
    --disable-xsmp          Disable XSMP session management
e287a3c
    --disable-xsmp-interact Disable XSMP interaction
e287a3c
    --enable-luainterp=OPTS     Include Lua interpreter.  default=no OPTS=no/yes/dynamic
e287a3c
--- 1454,1461 ----
e287a3c
    --enable-fail-if-missing    Fail if dependencies on additional features
e287a3c
       specified on the command line are missing.
e287a3c
    --disable-darwin        Disable Darwin (Mac OS X) support.
e287a3c
!   --disable-smack	  Do not check for Smack support.
e287a3c
!   --disable-selinux	  Do not check for SELinux support.
e287a3c
    --disable-xsmp          Disable XSMP session management
e287a3c
    --disable-xsmp-interact Disable XSMP interaction
e287a3c
    --enable-luainterp=OPTS     Include Lua interpreter.  default=no OPTS=no/yes/dynamic
e287a3c
***************
e287a3c
*** 4588,4606 ****
e287a3c
  
e287a3c
  
e287a3c
  
e287a3c
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
e287a3c
  $as_echo_n "checking --disable-selinux argument... " >&6; }
e287a3c
! # Check whether --enable-selinux was given.
e287a3c
  if test "${enable_selinux+set}" = set; then :
e287a3c
    enableval=$enable_selinux;
e287a3c
  else
e287a3c
    enable_selinux="yes"
e287a3c
  fi
e287a3c
  
e287a3c
! if test "$enable_selinux" = "yes"; then
e287a3c
!   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e287a3c
  $as_echo "no" >&6; }
e287a3c
!   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
e287a3c
  $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
e287a3c
  if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
e287a3c
    $as_echo_n "(cached) " >&6
e287a3c
--- 4590,4679 ----
e287a3c
  
e287a3c
  
e287a3c
  
e287a3c
! { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5
e287a3c
! $as_echo_n "checking --disable-smack argument... " >&6; }
e287a3c
! # Check whether --enable-smack was given.
e287a3c
! if test "${enable_smack+set}" = set; then :
e287a3c
!   enableval=$enable_smack;
e287a3c
! else
e287a3c
!   enable_smack="yes"
e287a3c
! fi
e287a3c
! 
e287a3c
! if test "$enable_smack" = "yes"; then
e287a3c
!   ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default"
e287a3c
! if test "x$ac_cv_header_linux_xattr_h" = xyes; then :
e287a3c
!   true
e287a3c
! else
e287a3c
!   enable_smack="no"
e287a3c
! fi
e287a3c
! 
e287a3c
! 
e287a3c
! fi
e287a3c
! if test "$enable_smack" = "yes"; then
e287a3c
!   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e287a3c
! $as_echo "no" >&6; }
e287a3c
!   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr in -lattr" >&5
e287a3c
! $as_echo_n "checking for llistxattr in -lattr... " >&6; }
e287a3c
! if ${ac_cv_lib_attr_llistxattr+:} false; then :
e287a3c
!   $as_echo_n "(cached) " >&6
e287a3c
! else
e287a3c
!   ac_check_lib_save_LIBS=$LIBS
e287a3c
! LIBS="-lattr  $LIBS"
e287a3c
! cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e287a3c
! /* end confdefs.h.  */
e287a3c
! 
e287a3c
! /* Override any GCC internal prototype to avoid an error.
e287a3c
!    Use char because int might match the return type of a GCC
e287a3c
!    builtin and then its argument prototype would still apply.  */
e287a3c
! #ifdef __cplusplus
e287a3c
! extern "C"
e287a3c
! #endif
e287a3c
! char llistxattr ();
e287a3c
! int
e287a3c
! main ()
e287a3c
! {
e287a3c
! return llistxattr ();
e287a3c
!   ;
e287a3c
!   return 0;
e287a3c
! }
e287a3c
! _ACEOF
e287a3c
! if ac_fn_c_try_link "$LINENO"; then :
e287a3c
!   ac_cv_lib_attr_llistxattr=yes
e287a3c
! else
e287a3c
!   ac_cv_lib_attr_llistxattr=no
e287a3c
! fi
e287a3c
! rm -f core conftest.err conftest.$ac_objext \
e287a3c
!     conftest$ac_exeext conftest.$ac_ext
e287a3c
! LIBS=$ac_check_lib_save_LIBS
e287a3c
! fi
e287a3c
! { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_llistxattr" >&5
e287a3c
! $as_echo "$ac_cv_lib_attr_llistxattr" >&6; }
e287a3c
! if test "x$ac_cv_lib_attr_llistxattr" = xyes; then :
e287a3c
!   LIBS="$LIBS -lattr"
e287a3c
! 	   found_smack="yes"
e287a3c
! 	   $as_echo "#define HAVE_SMACK 1" >>confdefs.h
e287a3c
! 
e287a3c
! fi
e287a3c
! 
e287a3c
! else
e287a3c
!    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e287a3c
! $as_echo "yes" >&6; }
e287a3c
! fi
e287a3c
! 
e287a3c
! if test "x$found_smack" = "x"; then
e287a3c
!     { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
e287a3c
  $as_echo_n "checking --disable-selinux argument... " >&6; }
e287a3c
!   # Check whether --enable-selinux was given.
e287a3c
  if test "${enable_selinux+set}" = set; then :
e287a3c
    enableval=$enable_selinux;
e287a3c
  else
e287a3c
    enable_selinux="yes"
e287a3c
  fi
e287a3c
  
e287a3c
!   if test "$enable_selinux" = "yes"; then
e287a3c
!     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e287a3c
  $as_echo "no" >&6; }
e287a3c
!     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
e287a3c
  $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
e287a3c
  if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
e287a3c
    $as_echo_n "(cached) " >&6
e287a3c
***************
e287a3c
*** 4638,4650 ****
e287a3c
  $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
e287a3c
  if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
e287a3c
    LIBS="$LIBS -lselinux"
e287a3c
! 	   $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
e287a3c
  
e287a3c
  fi
e287a3c
  
e287a3c
! else
e287a3c
!    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e287a3c
  $as_echo "yes" >&6; }
e287a3c
  fi
e287a3c
  
e287a3c
  
e287a3c
--- 4711,4724 ----
e287a3c
  $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
e287a3c
  if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
e287a3c
    LIBS="$LIBS -lselinux"
e287a3c
! 	     $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
e287a3c
  
e287a3c
  fi
e287a3c
  
e287a3c
!   else
e287a3c
!      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e287a3c
  $as_echo "yes" >&6; }
e287a3c
+   fi
e287a3c
  fi
e287a3c
  
e287a3c
  
e287a3c
*** ../vim-7.4.237/src/version.c	2014-04-02 12:12:04.163981514 +0200
e287a3c
--- src/version.c	2014-04-02 13:38:22.511910282 +0200
e287a3c
***************
e287a3c
*** 736,737 ****
e287a3c
--- 736,739 ----
e287a3c
  {   /* Add new patch number below this line */
e287a3c
+ /**/
e287a3c
+     238,
e287a3c
  /**/
e287a3c
e287a3c
-- 
e287a3c
hundred-and-one symptoms of being an internet addict:
e287a3c
25. You believe nothing looks sexier than a man in boxer shorts illuminated
e287a3c
    only by a 17" inch svga monitor.
e287a3c
e287a3c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
e287a3c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
e287a3c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
e287a3c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///