Review: The Linux Programming Interface
Review: The Linux Programming Interface
Posted Jan 20, 2011 19:15 UTC (Thu) by RobSeace (subscriber, #4435)In reply to: Review: The Linux Programming Interface by Cyberax
Parent article: Review: The Linux Programming Interface
And, using filesystem permissions to control access of Unix domain sockets is highly unportable... Many systems totally ignore perms on Unix domain sockets, making them effectively always 0777, like symlinks... (Yes, of course, the abstract namespace is also unportable, so relying on one Linux quirk is as good/bad as relying on another, I suppose...) But, any sane app that needs to restrict who talks to it over a Unix domain socket will use a much better app-level restriction of some kind, probably using SO_PEERCRED or SCM_CREDENTIALS/SO_PASSCRED or something of the sort, if not a full-blown login/authentication mechinism...
