[Bug 215202] LOCAL_PEERCRED / xucred does not have process ID
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Dec 10 22:15:44 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215202
Bug ID: 215202
Summary: LOCAL_PEERCRED / xucred does not have process ID
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: greg at unrelenting.technology
Applications like the 'sway' Wayland compositor rely on getting the socket
peer's pid for IPC security. It would be nice to get FreeBSD to report the pid,
not just uid and gids, through the LOCAL_PEERCRED option.
>From the commit that fixed bug #102956 (SO_PEERCRED in Linux emulation):
"Temporarily use 0 for pid member as the FreeBSD does not cache remote UNIX
domain socket peer pid"
So adding pid to LOCAL_PEERCRED would allow a simple improvement to Linux
compatibility as well.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list