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