🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40907

Re: inndstart: setreuid(222, 0) failed: Not owner

#40907
From: bill davidsen
Date: Mon, 18 Oct 1999 00:00
36 lines
2504 bytes
In article <yl3dvcp42d.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
| bill davidsen <davidsen@tmr.com> writes:
| 
| > Now that my memory is jogged, I believe that this came up in 2.0 and the
| > solution was to not use setreuid, since there are AIX issues.
| 
| Okay.  I unfortunately wasn't around for that discussion.  :/  I'd really
| like to drop permissions when doing things like reading the configuration
| file, just in case there's a bug in any of that code.  The right approach
| may be to use an autoconf check and then unset HAVE_SETREUID on AIX.

  At least until AIX gets its act together. I regard this as a bug, at
least when it doesn't work with -lbsd, since the original setreuid()
call is from 4.2 (from memory).

| > If someone feels like a short note on why some of the setup is now done
| > as news instead of root I'd feel educated. I assume there was some
| > obscure bug or security issue on some non-AIX system.
| 
| No, it was just me being paranoid.  You can remove the set_user() calls
| and it should continue functioning fine.
| 
| I rewrote inndstart almost completely for INN 2.3 because I couldn't
| convince myself that the previous implementation was safe and I think I
| can convince myself that the current implementation is safe.

  And I thought you were just removing the last vestiges of actived ;-)

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Technical Details
Message-ID: <7uftfr$4pd$1@newssvr02.news.prodigy.com>
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
References: <7u5k8b$3uu$1@newssvr02.news.prodigy.com> <ylaepltvlk.fsf@windlord.stanford.edu> <7u7q4i$hs5$1@newssvr02.news.prodigy.com> <yl3dvcp42d.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7uftfr$4pd$1@newssvr02.news.prodigy.com>
Subject: Re: inndstart: setreuid(222, 0) failed: Not owner
Date: Mon, 18 Oct 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7u5k8b$3uu$1@newssvr02.news.prodigy.com> <ylaepltvlk.fsf@windlord.stanford.edu> <7u7q4i$hs5$1@newssvr02.news.prodigy.com> <yl3dvcp42d.fsf@windlord.stanford.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-mail
X-Deja-AN: 537627645
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr02.news.prodigy.com 940276027 4909 199.4.137.118 (18 Oct 1999 19:47:07 GMT)
Organization: TMR Associates, Schenectady NY
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com