mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
980 B
980 B
libkernel
add Functional
- getsockopt 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 on everyAF_UNIXsocket settingLOCAL_CREDSthrows, asrecvmsgadds noSCM_CREDSmessage, and so does settingLOCAL_CONNWAIT, as that flag is not kept. On asocketpairsocket they follow FreeBSD 11.4'skern_socketpairanduipc_ctloutput: a stream or sequenced-packet pair reports thexucredof the identity it was made with (the root identity ofgeteuidand the first 16 groups ofgetgroups), a datagram pair fails withEINVAL, andLOCAL_CREDSandLOCAL_CONNWAITread 0