Unix-Socket File Descriptor Passing: Define Who Owns the Received Device Handle
Receiving an SCM_RIGHTS message creates descriptor references that your process must either accept into a defined owner or close on every rejection path. It does not transfer the sender’s descriptor number, revoke the sender’s access or guarantee that the application accepted the handle. Treat ancillary parsing and ownership admission as one carefully bounded transaction. This…