Article View: news.software.nntp
Article #40865Re: inndstart: setreuid(222, 0) failed: Not owner
From: bill davidsen
Date: Fri, 15 Oct 1999 00:00
Date: Fri, 15 Oct 1999 00:00
64 lines
3706 bytes
3706 bytes
In article <ylaepltvlk.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: | bill davidsen <davidsen@tmr.com> writes: | | > I know I've seen this before, but I can't remember if it was an AIX bug | > or INN bug or some obscure permissions thing that 'make install' didn't | > get right. | | As near as I can tell, it's something specific with AIX. | | The call that's failing is this code: Yes, I looked for changes there. The 2.3_08-30 and 09-15 version are running on AIX here without problems. So I am back to assuming that there is either some subtle permissions issue here, or that the code has been slightly changed. I know we used to have this problem and it went away, back in 2.0 snapshots. | The semantics that are supposed to work here are that you can become any | user if your real *or* your effective UID is root (or your saved UID, but | I don't actually use that). Right, you are supposed to be able to swap "who you are," and that's been working. | For some reason, this doesn't seem to work correctly on AIX. Well, at least in this case. Looking at the code in earlier 2.3, and 2.2 I see that the whole set_user thing is new, or at least not in 08-30, the last version I still have in unpacked form. I had 09-30 running but I have since taken that system down. | For some reason, this doesn't seem to work correctly on AIX. The initial | dropping of permission works correctly, but then restoring root privs | fails with the error that you're seeing. I know it works fine on Solaris | (tried it myself) and I'm pretty sure that it's been tested on FreeBSD, | HP-UX, and Linux and works fine on all of those. Yes, I always try on Linux first, then AIX. I have no issues with and of my (few) Solaris systems, so I will probably not ever upgrade beyond 1.7.1hacked which is there now. | If anyone with more information about AIX in particular or the semantics | of setreuid() in general could comment, I'd really appreciate it. This | isn't an area of strong expertise for me. 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. I looked at the code, and I'm not sure why privs are being dropped and regained in this way, given that we have done without before. However, I guess I will report this to IBM as a bug, at least when linked with -lbsd, since BSD seems to work as desired. 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. -- 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:
<7u7q4i$hs5$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-mailReferences:
<7u5k8b$3uu$1@newssvr02.news.prodigy.com> <ylaepltvlk.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <7u7q4i$hs5$1@newssvr02.news.prodigy.com> Subject: Re: inndstart: setreuid(222, 0) failed: Not owner Date: Fri, 15 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> 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: 537166251 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr02.news.prodigy.com 940010450 18309 199.4.137.118 (15 Oct 1999 18:00:50 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com