mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
1014 B
1014 B
libkernel
add Functional
- LOCAL_PEERCRED, LOCAL_CREDS and LOCAL_CONNWAIT (libkernel) - throw on an
AF_UNIXsocket received throughSCM_RIGHTSor adopted from the host, whose peer credentials are not known, and settingLOCAL_CREDSthrows on everyAF_UNIXsocket, asrecvmsgadds noSCM_CREDSmessage. On asocketpairsocket they follow FreeBSD 11.4'skern_socketpairanduipc_ctloutput: a stream or sequenced-packet pair reports thexucredof the identity it was made with (geteuidand the first 16 groups ofgetgroups), a datagram pair fails withEINVAL,LOCAL_CREDSreads 0, andLOCAL_CONNWAITreads what was last set on that socket. That flag only delays aconnectto a listener, which anAF_UNIXsocket cannot make here