[TAG] Which process wrote that line into syslog?
Ville
v+tag at iki.fi
Wed Jun 28 12:49:36 MSD 2006
On Wed, Jun 28, 2006 at 11:35:49AM +0300, you [Ville] wrote:
> > I'll try getsockopt(SO_PEERCRED) on socketpair() vs.
> > socket()-bind()-listen() a la
> >
> > http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzab6/uafunix.htm
> > http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzab6/uafunix.htm
> >
> > and let you know.
>
> I believe the crucial difference is explained in an syslogd.c comment
>
> * Changed: unixm is gone, since we now use datagram unix sockets.
> * Hence we recv() from unix sockets directly (rather than
> * first accept()ing connections on them), so there's no need
> * for separate book-keeping. --okir
>
> That's probably why it doesn't work.
More precisely, the boulder.ibm.com example does
sd = socket(AF_UNIX, SOCK_STREAM, 0);
whereas syslogd.c does
socket(AF_UNIX, SOCK_DGRAM, 0);
.
More information about the TAG
mailing list