by tinus_hn · 5y ago · 0 comments
What is the advantage of listening on localhost compared to using a socket, with free access control?
Layers of security exist for this exact reason. If one fails, hopefully something else stops it.
Can install and use right away locally without figuring out where your distro puts the socket at.
Edit: Also no need to play with permissions of the socket in such a case.
Put another way, any user can become root through privilege escalation, so access control is pointless, since any untrusted user can take over the machine.
The real unit of security is the whole OS (VM), not its internal user boundaries.
Also, the loopback is used as a networking interconnect or guest->host channel for sandboxed containers and VMs, so it's security sensitive in this way.