nanomsg / nng

nanomsg-next-generation -- light-weight brokerless messaging
https://nng.nanomsg.org
MIT License
3.63k stars 472 forks source link

IPC socket could support setting ownership #1802

Open gdamore opened 2 months ago

gdamore commented 2 months ago

We do this in mangos -- there are options for the socket owner and group.

For parity we should do it here as well. (I was surprised to find that apparently I missed this. Note that chown is going to have to be a best effort operation - because it usually requires root that we frequently won't have. That might be why I declined to add it in the first place.

gdamore commented 2 months ago

This is necessarily only a UNIX / POSIX thing.