Make unix sockets work with the linux seccomp2 sandbox again
commitdd7c99961774c19c6042100e660104c687ad6e22
authorNick Mathewson <nickm@torproject.org>
Mon, 14 Mar 2016 18:07:02 +0000 (14 14:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 Mar 2016 18:07:02 +0000 (14 14:07 -0400)
treeaac0e78501da57cff0b7a1e101d1e21a8ed4d890
parent0cdeac77e0332c37dd4cc7867e34214961db9009
Make unix sockets work with the linux seccomp2 sandbox again

I didn't want to grant blanket permissions for chmod() and chown(),
so here's what I had to do:
   * Grant open() on all parent directories of a unix socket
   * Write code to allow chmod() and chown() on a given file only.
   * Grant chmod() and chown() on the unix socket.
src/common/sandbox.c
src/common/sandbox.h
src/or/connection.c
src/or/main.c