[lkml]   [2001]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: getpeereid() for Linux
Andi Kleen <> writes:

> Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE> writes:
> > Would anyone like to give me a helping hand in implementing the
> > getpeereid() syscall for Linux? See the following page for the
> > documentation of the OpenBSD implementation:
> It is implemented for unix sockets (see unix(7))

Hmm, it is not documented in my local copy (?). getpeereid() is
different from the standard credential passing mechanism because it
does not require cooperation of the other end.

> For TCP it is rather useless because it would work only locally.

Obviously, we need it only locally. ;-) The interface is useful if you
are implementing poor man's VPN in user space.

> If you trust the localhost you're probably better off using the
> ident protocol for it.

This means running just another server, even with root privileges. :-(

Florian Weimer Florian.Weimer@RUS.Uni-Stuttgart.DE
University of Stuttgart
RUS-CERT +49-711-685-5973/fax +49-711-685-5898
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:02    [W:0.051 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site