1) who wrote getsockopt(fd, SOL_SOCKET, LOCAL_PEERCRED)? that's wrong! with
SOL_SOCKET, the value of LOCAL_PEERCRED (1) is interpreted as SO_DEBUG (1).
2) we do have the pid in xucred since r348419, let's use it.
What |Removed |Added
----------------------------------------------------------------------------
CC| |zei...@FreeBSD.org
--- Comment #1 from Niclas Zeising <zei...@FreeBSD.org> ---
cr_pid is no longer a macro, it was changed (in head) in base r348847. It does
not exist at all in FreeBSD 11 or 12.
bugzilla...@freebsd.org
unread,
May 4, 2020, 6:34:43 PM5/4/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Can be simplified to defined(__FreeBSD__) && __FreeBSD__ >= 13 to drop
<sys/param.h>.
Checking __FreeBSD_version is only useful on /stable branches. On -CURRENT only
the tip is supported. Some folks try to smooth the ride for week/months old
snapshots but... base r348419 is almost 1 year old. Curiously, that commit was
also tagged for MFC which didn't happen.
bugzilla...@freebsd.org
unread,
May 5, 2020, 2:34:20 AM5/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
--- Comment #5 from Greg V <gr...@unrelenting.technology> ---
(In reply to Jan Beich from comment #3)
> Can be simplified to defined(__FreeBSD__) && __FreeBSD__ >= 13
tbh, maybe the whole HAVE_SYS_UCRED_H thing should just be __FreeBSD__.
There's no guarantee that other systems don't have a sys/ucred.h that contains
completely different stuff. We've had that with Linux capabilities vs
Capsicum..
bugzilla...@freebsd.org
unread,
May 5, 2020, 9:24:22 AM5/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
--- Comment #11 from Greg V <gr...@unrelenting.technology> ---
(In reply to Jan Beich from comment #10)
I guess you meant to paste another number? bug 246189 is *this* bug :)
bugzilla...@freebsd.org
unread,
Dec 30, 2020, 9:55:07 AM12/30/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message