rpms/rpcbind/F-7 rpcbind-0.1.4-libwrap.patch, NONE, 1.1 rpcbind.spec, 1.17, 1.18

Steve Dickson (steved) fedora-extras-commits at redhat.com
Sat Sep 15 15:40:25 UTC 2007


Author: steved

Update of /cvs/pkgs/rpms/rpcbind/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31448

Modified Files:
	rpcbind.spec 
Added Files:
	rpcbind-0.1.4-libwrap.patch 
Log Message:
- Added autoconf rules to turn on secure host checking 
  via libwrap. Also turned on host check by default (bz 248284)


rpcbind-0.1.4-libwrap.patch:

--- NEW FILE rpcbind-0.1.4-libwrap.patch ---
commit 29827c82fbb78725478eaf53b140e14a77fad42f
Author: Steve Dickson <steved at redhat.com>
Date:   Sat Sep 15 11:32:57 2007 -0400

    Added autoconf rules to turn on secure host checking via libwrap.
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

diff --git a/configure.in b/configure.in
index dfe5907..2bdf830 100644
--- a/configure.in
+++ b/configure.in
@@ -52,6 +52,14 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
 
 AC_CHECK_LIB([pthread], [pthread_create])
 AC_CHECK_LIB([tirpc], [clnt_create])
+AC_ARG_ENABLE(libwrap,[ --enable-libwrap  Enables host name checking], 
+	[case "${enableval}" in
+		yes) libwarp=true 
+			AC_CHECK_LIB([wrap],  [hosts_access]) ;;
+		no)  libwarp=no ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-libwrap) ;;
+	esac],[libwarp=false])
+AM_CONDITIONAL(LIBWRAP, test x$libwarp = xtrue)
 
 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
 AC_OUTPUT()
diff --git a/src/Makefile.am b/src/Makefile.am
index fd80847..d66b43f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,6 +9,10 @@ if WARMSTART
 INCLUDES +=	-DWARMSTART
 endif
 
+if LIBWRAP
+INCLUDES +=	-DLIBWRAP
+endif
+
 
 bin_PROGRAMS = rpcbind rpcinfo
 


Index: rpcbind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rpcbind/F-7/rpcbind.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- rpcbind.spec	14 Sep 2007 19:20:43 -0000	1.17
+++ rpcbind.spec	15 Sep 2007 15:39:53 -0000	1.18
@@ -28,6 +28,7 @@
 Patch3: rpcbind-0.1.4-warmstarts.patch
 Patch4: rpcbind-0.1.4-rpcuser.patch
 Patch5: rpcbind-0.1.4-iff_up.patch
+Patch6: rpcbind-0.1.4-libwrap.patch
 
 %description
 The rpcbind utility is a server that converts RPC program numbers into
@@ -43,6 +44,8 @@
 %patch4 -p1
 # 240873: rpcbind segfaults on startup - ipv6 related
 %patch5 -p1
+# 248284: rpcbind ignores libwrap files
+%patch6 -p1
 
 %build
 %ifarch s390 s390x
@@ -61,6 +64,7 @@
     --enable-warmstarts \
     --with-statedir="$RPCBDIR" \
     --with-rpcuser="$RPCBUSR" \
+    --enable-libwrap \
     --enable-debug
 
 make all
@@ -121,7 +125,11 @@
 %dir %attr(700,rpc,rpc) /var/lib/rpcbind
 
 %changelog
-* Fri Sep 14 2007 Steve Dickson <steved at redhat.com> 0.1.4-2
+* Sat Sep 15 2007 Steve Dickson <steved at redhat.com> 0.1.4-9
+- Added autoconf rules to turn on secure host checking
+  via libwrap. Also turned on host check by default (bz 248284)
+
+* Fri Sep 14 2007 Steve Dickson <steved at redhat.com> 0.1.4-8
 - Changed init script to start service in runlevel 2 (bz 251568)
 
 * Fri May 25 2007 Steve Dickson <steved at redhat.com> 0.1.4-7




More information about the fedora-extras-commits mailing list