unix domain socket security and PID retrieval

Heiko Wundram (Beenic) wundram at beenic.net
Tue Feb 5 16:24:30 UTC 2008


Am Dienstag, 5. Februar 2008 15:28:26 schrieb Zane C.B.:
> <snip>

And, on another note, you might be interested in

/usr/src/lib/libc/gen/getpeereid.c

which implements a function that (internally) uses a socket option (no need to 
mess with ancilliary messages) to retrieve the value you're looking for. 
getsockopt() is surely directly exposed in Perl.

-- 
Heiko Wundram
Product & Application Development
-------------------------------------
Office Germany - EXPO PARK HANNOVER
 
Beenic Networks GmbH
Mailänder Straße 2
30539 Hannover
 
Fon        +49 511 / 590 935 - 15
Fax        +49 511 / 590 935 - 29
Mobil      +49 172 / 43 737 34
Mail       wundram at beenic.net


Beenic Networks GmbH
-------------------------------------
Sitz der Gesellschaft: Hannover
Geschäftsführer: Jorge Delgado
Registernummer: HRB 61869
Registergericht: Amtsgericht Hannover


More information about the freebsd-questions mailing list