[Bug 215202] LOCAL_PEERCRED / xucred does not have process ID

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 29 22:58:58 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215202

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles at FreeBSD.org

--- Comment #2 from Jilles Tjoelker <jilles at FreeBSD.org> ---
The pid in LOCAL_PEERCRED is not a security feature but only a feature to
enforce that a proper security feature can be added later. This is because
there is nothing to enforce that the pid refers to the same process or that it
has not executed some other binary; also, applications are not isolated in a
way that makes different Wayland privileges useful for security.

Adding pid to struct ucred seems wrong since it is shared between processes
that do not change their credentials. This would make more sense as a property
of the socket. The pid would then be the pid of the process that called
listen() or connect().

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


More information about the freebsd-bugs mailing list