Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 May 2001 07:53:36 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Dima Dorfman <dima@unixfreak.org>, hackers@FreeBSD.ORG
Subject:   Re: Getting peer credentials on a unix domain socket
Message-ID:  <3AF80870.39A8705B@mindspring.com>
References:  <20010504230540.00BEE3E0B@bazooka.unixfreak.org> <20010504170738.U18676@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote:
> Someone had some patches for a getpeercreds() syscall, but I wasn't
> happy with it considering we already have the sendmsg() stuff to pass
> credentials along with the fact that the initial creator of a socket
> may be long gone before it's used to connect to something.

The credentials (ucred) persist; that's actually part of the
problems I was having a while ago with 30,000+ open files (if
they didn't, I'd have had 65,000+ open files before I saw any
problems, and the reasons would have been much more obviously
a bit count boundary problem, instead of a bug hunt).

I think adding a new system call is _not_ the way to go; there
are perfectly good fcntl() commands, which fail to work under
FreeBSD, but work just fine under Solaris, SunOS, Linux, and
most other UNIX systems (we are back to "struct fileops" being
major suckage here).

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AF80870.39A8705B>