Article View: news.software.nntp
Article #71750Re: inndstart under daemontools's supervise(8)
From: Miquel van Smoorenburg
Date: Wed, 01 Jun 2005 19:58
Date: Wed, 01 Jun 2005 19:58
29 lines
2345 bytes
2345 bytes
In article <ufyw2niw6.fsf@raines.ws>, Andrew Raines <aa@raines.ws> wrote:
>Russ Allbery <rra@stanford.edu> writes:
>
>> I really don't know then. The error message that you're
>> seeing indicates that inndstart isn't running as root
>> (given that you're on Linux and the seteuid semantics
>> work properly there).
>
>This doesn't make any sense. rc.news runs inndstart via
>
> eval ${WHAT} ${RFLAG} ${INNFLAGS}
>
>and nobody complains. If I run inndstart from the command
>line, I get an EPERM setgroups(). Furthermore, adding a
>geteuid() call to inndstart.c, I see that the setuid root
>isn't even working:
>
> getuid32() = 9
> geteuid32() = 9
> setgroups32(1, [9]) = -1 EPERM (Operation not permitted)
> write(2, "inndstart: ", 11inndstart: ) = 11
> write(2, "can\'t setgroups (is inndstart se"..., 43can't setgroups \
> (is inndstart setuid root?)) = 43
Note that when you use strace, the setuid bit doesn't work for
security reasons. If you want to strace a setuid root binary,
run it as root, not as some other user.
Mike.
Technical Details
Message-ID:
<d7l41b$6s3$1@news.cistron.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsgate.cistron.nl!news.cistron.nl!not-for-mailReferences:
<umzqgts2a.fsf@raines.ws> <usm08rzpx.fsf@raines.ws> <87y8a0p4oq.fsf@windlord.stanford.edu> <ufyw2niw6.fsf@raines.ws>Show Full Headers
Complete Article Headers
Message-ID: <d7l41b$6s3$1@news.cistron.nl> Subject: Re: inndstart under daemontools's supervise(8) Date: Wed, 01 Jun 2005 19:58:35 +0000 From: "Miquel van Smoorenburg" <miquels@netscum.invalid> References: <umzqgts2a.fsf@raines.ws> <usm08rzpx.fsf@raines.ws> <87y8a0p4oq.fsf@windlord.stanford.edu> <ufyw2niw6.fsf@raines.ws> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!newsgate.cistron.nl!news.cistron.nl!not-for-mail Newsgroups: news.software.nntp Organization: Cistron Lines: 29 NNTP-Posting-Host: zahadum.xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: ncc1701.cistron.net 1117655915 7043 194.109.0.112 (1 Jun 2005 X-Complaints-To: abuse@cistron.nl NNTP-Posting-Date: Wed, 1 Jun 2005 19:58:35 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: mikevs@cistron.nl (Miquel van Smoorenburg)