Code

frontend: Get the username of the remote peer from a UNIX socket.
authorSebastian Harl <sh@tokkee.org>
Tue, 9 Dec 2014 14:19:47 +0000 (15:19 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 9 Dec 2014 14:19:47 +0000 (15:19 +0100)
commitf8809a7d245d9147bba60d907dd11a398941d868
tree56069b66e792ae470dfed6712d86d5d50f305c96
parenta9ae0d1a4c9e2992d932489c96cd63b2ce2a0c56
frontend: Get the username of the remote peer from a UNIX socket.

Then, only allow that user to authenticate against the daemon. That is, use
the same as PostgreSQL's "peer" authentication for all connections.
configure.ac
src/client/sock.c
src/frontend/connection.c
src/frontend/session.c
t/integration/query.sh
t/integration/test_lib.sh
t/unit/frontend/connection_test.c
t/unit/utils/unixsock_test.c