Re: mutilog via fifo

richard lucassen <[email protected]> Sun, 3 Aug 2008 21:16:38 +0200
Newsgroups gmane.comp.djb.syslog
Organization XAQ Systems
Message-ID <[email protected]>
On Sun, 03 Aug 2008 15:04:01 -0400
[email protected] (Paul Jarc) wrote:

> richard lucassen <[email protected]> wrote:
> > open("/dev/stderr", O_RDWR|O_APPEND|O_CREAT, 0666) = -1 EACCES
> > (Permission denied)
> 
> Ah.  So it looks like you're stuck with patching, running as root, or
> using a named pipe.

patching: I'm not a programmer (unfortunately)
root: over my dead body
named pipe: this works fine

BTW, just wondering: does a named pipe (like I use now) create extra
load or disk access compared to a "normal" pipe?

> > So publicfile is started as root, and thus has access to
> > /dev/stderr, and after that changes uid/gid. Right or wrong?
> 
> It has access because it doesn't call open() at all; it just writes to
> the already-open descriptor.

ok, thnx!

R.

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+