Article View: news.software.nntp
Article #8045Re: HELP: Can tcpwrapper be used to control access to INN?
From: Thomas R. Stevenson
Date: Wed, 29 May 1996 00:00
Date: Wed, 29 May 1996 00:00
56 lines
2399 bytes
2399 bytes
Scott Hazen Mueller (scott@zorch.sf-bay.org) wrote:
> In article <4og9pc$49e@augusta.math.psu.edu>, barr@math.psu.edu (Dave Barr) writes:
> >Sorry, can't be done.
> Strikes me, from his original posting, that he's putting tcpd where
> in.nnrpd usually sits. It's not obvious to me why that doesn't
> work. In other words, he's not wrapping innd.
Correct. In fact, I just received the following message from Wietse
Venema <wietse@wzv.win.tue.nl>:
Looks like you found a bug in tcpd. When it is installed as in.nnrpd,
it looks like inn calls it with an absolute path. In that case, tcpd
ignores REAL_DAEMON_DIR:
/*
* If argv[0] is an absolute path name, ignore REAL_DAEMON_DIR, and strip
* argv[0] to its basename.
*/
You'll have to do something like: strip absolute path and force it to
prepend REAL_DAEMON_DIR regardless, like this:
if (argv[0][0] == '/') {
strcpy(path, argv[0]);
argv[0] = strrchr(argv[0], '/') + 1;
}
sprintf(path, "%s/%s", REAL_DAEMON_DIR, argv[0]);
This could explain why your attempt did not succeed (you would
have an infinite loop where tcpd keeps running itself).
Wietse
--
____ __ __ EMail: tom@tom.cc.wayne.edu
/ /_/ /_ VMail: (313) 577-4742
/. /\. __/. Fax: (313) 577-5626
Home Page: http://tom.cc.wayne.edu
Anon FTP: ftp://tom.cc.wayne.edu
For my PGP PUBLIC KEY BLOCK,
finger tom@tom.cc.wayne.edu
"A common mistake that people make when trying
to design something completely foolproof was Douglas Adams
to underestimate the ingenuity of complete Mostly Harmless
fools."
Technical Details
Message-ID:
<4oid6p$ivt@cwis-20.wayne.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<4oforl$ghq@cwis-20.wayne.edu> <4og9pc$49e@augusta.math.psu.edu> <Ds6G43.ny@zorch.SF-Bay.ORG>Show Full Headers
Complete Article Headers
Message-ID: <4oid6p$ivt@cwis-20.wayne.edu> Subject: Re: HELP: Can tcpwrapper be used to control access to INN? Date: Wed, 29 May 1996 00:00:00 +0000 From: tom@tom.cc.wayne.edu (Thomas R. Stevenson) References: <4oforl$ghq@cwis-20.wayne.edu> <4og9pc$49e@augusta.math.psu.edu> <Ds6G43.ny@zorch.SF-Bay.ORG> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 157412312 Distribution: inet Organization: Wayne State Univ. Newsgroups: news.software.nntp