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}
Created attachment 18711 [details] Adds tcp wrappers support to vnc
Thanks. Yes, this looks like a good idea.
Applied in 3.3.3r2-16. Thanks.