[Bug: 21.4.13] gnuserv configuration

Stephen J. Turnbull stephen
Sat Nov 18 09:01:16 EST 2006


Laurelin of Middle Earth writes:

 > My situation: I use gnuserv/gnuclient.  My site's Security Gurus are
 > complaining about the fact that gnuserv is listening for incoming
 > connections on an open port,

And well they might!

 > It looks to me as if what I *want* to do is to force the use of unix
 > sockets rather than internet sockets.  Is this something that I can do
 > without somehow finding a different build of xemacs (or rolling my
 > own)?  Is it a configuration option, or must it be built in at compile
 > time?

It's compile time.  On or near line 54 of lib-src/gnuserv.h you will
find the line

#define INTERNET_DOMAIN_SOCKETS

Change it to

#undef INTERNET_DOMAIN_SOCKETS

and rebuild.  This is very low-tech, I know, but nobody's ever
contributed a patch to make this a configurable option (either via
configure at build time or in Lisp at runtime).

In theory, you could just run ./configure and then "make gnuserv" in
the lib-src directory and save some time.  However, I can't promise
that gnuserv doesn't depend on any of the configuration options chosen
by your vendor (Red Hat, I guess?)

 > I hope I've explained this clearly enough.

Certainly, it was very clear.

HTH

Steve



More information about the XEmacs-Beta mailing list