Re: LOCAL_CREDS and unix domain sockets



On Tue, 5 Feb 2008, Zane C.B. wrote:

With unix domain sockets, unix(4), are LOCAL_CREDS actually supported or not?

I've been trying to fetch this from within a Perl script using 'my $local_creds=$some_connection->sockopt(LOCAL_CREDS)', but all I keep getting is a undefined variable in return, as if fetching it is not supported.

It depends on the version of FreeBSD. Using a C language program I can get and set LOCAL_CREDS on FreeBSD 7.0 and it looks implemented in the kernel. There are also some regression tests although I've not run them, but it appears things are together. Are you running an older FreeBSD version and/or have you rebuilt Perl since support for LOCAL_CREDS was added (April 2005)?

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-security@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • FreeBSD Status Reports Q2/2007
    ... This report covers FreeBSD related projects between April and June ... A GUI audit analyzer for FreeBSD ... 10Gigabit Network Support ...
    (freebsd-current)
  • FreeBSD Status Reports Q2/2007
    ... This report covers FreeBSD related projects between April and June ... A GUI audit analyzer for FreeBSD ... 10Gigabit Network Support ...
    (freebsd-hackers)
  • [FreeBSD-Announce] FreeBSD Status Reports Q2/2007
    ... This report covers FreeBSD related projects between April and June ... A GUI audit analyzer for FreeBSD ... 10Gigabit Network Support ... EuroBSDCon 2007 Developer Summit ...
    (freebsd-announce)
  • [FreeBSD-Announce] March-April 2004 FreeBSD Status Report
    ... the next big focus will be FreeBSD 5.3. ... the cpufreq driver requires newbus ... Support code for this should be committed at the ... Work on this project has been stalled due to some other network stack ...
    (freebsd-announce)
  • March-April 2004 FreeBSD Status Report
    ... the next big focus will be FreeBSD 5.3. ... the cpufreq driver requires newbus ... Support code for this should be committed at the ... Work on this project has been stalled due to some other network stack ...
    (freebsd-current)