🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71747

Re: inndstart under daemontools's supervise(8)

#71747
From: Russ Allbery
Date: Wed, 01 Jun 2005 18:05
37 lines
2653 bytes
Andrew Raines <aa@raines.ws> writes:

> 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

Yeah, that's what I thought from what you were describing.

> Again, inndstart is 4550:

>    $ ls -ld ~/bin/inndstart
>    -r-sr-x---  1 root news 188325 Jun  1 11:17 /usr/local/news/bin/inndstart
   
> I must be missing something obvious.  What does rc.news do
> that I can't do interactively?

Are you running it as the news user in both cases?  Is there some sort of
security configuration that is inherited by login accounts that doesn't
allow setuid to work?  (Some kind of capabilities system, perhaps?)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ekbm3qbz.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <umzqgts2a.fsf@raines.ws> <877jhks1yi.fsf@windlord.stanford.edu> <usm08rzpx.fsf@raines.ws> <87y8a0p4oq.fsf@windlord.stanford.edu> <ufyw2niw6.fsf@raines.ws>

Show Full Headers
Complete Article Headers
Message-ID: <87ekbm3qbz.fsf@windlord.stanford.edu>
Subject: Re: inndstart under daemontools's supervise(8)
Date: Wed, 01 Jun 2005 11:05:36 -0700
From: Russ Allbery <rra@stanford.edu>
References: <umzqgts2a.fsf@raines.ws> <877jhks1yi.fsf@windlord.stanford.edu> <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.maxwell.syr.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 37
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1117649136 27667 171.64.19.147 (1 Jun 2005 18:05:36
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Cancel-Lock: sha1:9ue6FDXIS584h3t668yHtgKS2w8=