Home page logo

firewall-wizards logo Firewall Wizards mailing list archives

Re: X server in a Firewall
From: Chuck Swiger <chuck () codefab com>
Date: Fri, 27 Jan 2006 19:24:28 -0500

R. DuFresne wrote:
On Tue, 24 Jan 2006, Chuck Swiger wrote:
[ ... ]
5-pi% cd /usr/ports/distfiles && ls -lh openssh-4.2p1.tar.gz xorg/X11R6*
-rw-r--r--  1 root  wheel   893K Sep  1 02:30 openssh-4.2p1.tar.gz
-rw-r--r--  1 root  wheel    31M Feb 25  2005 xorg/X11R6.8.2-src1.tar.gz
-rw-r--r--  1 root  wheel   3.8M Feb 25  2005 xorg/X11R6.8.2-src2.tar.gz
-rw-r--r--  1 root  wheel   9.9M Feb 25  2005 xorg/X11R6.8.2-src3.tar.gz

Still missing a good chuck of ssh in there, where's the openssl tarball?

"Good chuck"? :-)

On the platform in question-- FreeBSD-- OpenSSL is part of the base system
libraries.  Zlib is optional for SSH, but would also be found from the base
system libraries.

The source to those would add about 2.5MB worth, and there's another 1.5MB for
libc itself if you want to count that, too.

Granted not as large as the X tarballs, but, folks should never have the
impression that ssh stands alone.  In fact there are a few more tarballs
that should be in this mix, zlib, and likely a few crypto ones as well.

While still lopsided in code weight, not as lopsided as making the erros
that ssh is a stand alone....

Not many binaries are completely standalone nowadays, aside for the kernel,
init, and maybe /bin/sh.  Most things dynamicly load libc in particular, but we
can take a look at the details if you like.

By my count, the # of dependent shared libraries is 5 for the SSH programs, and
46 for the baseline X11 binaries, excluding something like KDE or Gnome:

% ldd -f "%p\n" /usr/bin/ssh* | sort | uniq

% ldd -f "%p\n" /usr/X11R6/bin/* | sort | uniq

However, I'm pretty sure this is the long way around in terms of considering the
relative security of the two.  SSH is not normally installed setuid-root,
whereas the Xserver binary and often xterm or xdm normally are setuid-root.


firewall-wizards mailing list
firewall-wizards () honor icsalabs com

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]