kernel - Implement SO_PASSCRED

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 29 July 2020 21:07 UTC

- Implement SO_PASSCRED. This allows the receiving end of a local socket to request creds even if the sending end did not send any.

- Allows the use of a common local socket with multiple end points, e.g. for stderr, such that the receiving entity can distinguish between message sources.

Taken-from: Linux

3aa364b8e8 kernel - Implement SO_PASSCRED
sys/kern/uipc_socket.c | 2 ++
sys/kern/uipc_usrreq.c | 27 +++++++++++++++++++++++++++
sys/sys/socket.h | 1 +
3 files changed, 30 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share