Bug 41052

Summary: Adding tcp wrappers to vnc.
Product: [Retired] Red Hat Linux Reporter: Ian Mortimer <i.mortimer>
Component: vncAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.uk.research.att.com/vnc/extras.html#tcpwrapper
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-18 10:39:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Adds tcp wrappers support to vnc none

Description Ian Mortimer 2001-05-17 05:25:13 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
Vnc is one of the few network services not protected by tcpd.   Wolfram
Gloger has
provided a patch to fix that..  I've attached it below.

How reproducible:
Always

Steps to Reproduce:
1.Not applicable
2.
3.
	

Additional info:

You have to specify ip numbers in hosts.allow.  Domains or host names won't
work.

The patch doesn't add libwrap to the linking phase.  You need to make this
patch to vnc.spec:

*** vnc.spec    2001/05/17 05:25:17     1.2
--- vnc.spec    2001/05/17 04:57:35
***************
*** 17,22 ****
--- 17,23 ----
  Patch2:    vnc-xauth.patch
  Patch3:    vnc-typo.patch
  Patch4:    vnc-corre.patch
+ Patch5:    %{name}-%{version}-tcpwrappers.patch
  License:   GPL
  Group:     User Interface/Desktops
  BuildRoot: %{_tmppath}/%{name}-%{version}-root
***************
*** 59,64 ****
--- 60,66 ----
  %patch2 -p1 -b .xauth
  %patch3 -p1 -b .typo
  %patch4 -p1 -b .corre
+ %patch5 -p1 -b .tcpwrappers
 
  find . -name "*,v" -exec rm -f {} \;
  perl -pi -e "s|/usr/local/vnc/classes|%{_datadir}/vnc/classes|" vncserver
***************
*** 67,73 ****
  xmkmf -a
  make CDEBUGFLAGS="$RPM_OPT_FLAGS" World
  cd Xvnc
! make CDEBUGFLAGS="$RPM_OPT_FLAGS" World
 
  %install
  rm -rf %{buildroot}
--- 69,75 ----
  xmkmf -a
  make CDEBUGFLAGS="$RPM_OPT_FLAGS" World
  cd Xvnc
! make EXTRA_LIBRARIES='-lwrap -lnss_nis' CDEBUGFLAGS="$RPM_OPT_FLAGS"
World
 
  %install
  rm -rf %{buildroot}

Comment 1 Ian Mortimer 2001-05-17 05:26:33 UTC
Created attachment 18711 [details]
Adds tcp wrappers support to vnc

Comment 2 Tim Waugh 2001-05-18 10:39:27 UTC
Thanks.  Yes, this looks like a good idea.


Comment 3 Tim Waugh 2001-06-05 13:18:50 UTC
Applied in 3.3.3r2-16.  Thanks.