Revert "Experiment with UNIX-domain socket"

This reverts commit ea15b1d0b171d35a156fe3b5fe36b51901a78cca.
Generalize get restricted