tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Extending sockcred

On Sat, 5 Jul 2008, Matthew Mondor wrote:

> Although the AF_LOCAL SCM_CREDS ancillary message passing is of great
> help, I noticed that it does not pass the PID of the process sending
> the message.  This would be useful in the case of for instance, a
> syslogd-like daemon.

> Anyone familiar with precedents for this, or with alternative
> suggestion?  It appears that ancillary messages are largely
> OS-specific in general.

seems you can use:

        getsockopt(s, 0, LOCAL_PEEREID, ...)

to get this information? (see unix(4))


Home | Main Index | Thread Index | Old Index