[Bug 262172] UNIX Domain bind() - distinguish between random garbage and alive listening socket

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Mar 2022 21:28:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262172

Mike Karels <karels@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karels@freebsd.org

--- Comment #4 from Mike Karels <karels@freebsd.org> ---
In concept I like the idea of distinct error values; I would even go one
farther, and use EFTYPE for non-socket files.  However, I wonder whether it is
too late for this change, as applications can't count on it, especially if it
is optional (and off by default).

On the implementation, I wouldn't use VOP_UNP_CONNECT().  It doesn't have side
effects now, but that could change.  Just testing v_unpcb would be OK.

-- 
You are receiving this mail because:
You are the assignee for the bug.