chiark / gitweb /
bus-proxy: drop privileges if run as root
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 17 Jan 2015 17:23:33 +0000 (18:23 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 17 Jan 2015 17:27:23 +0000 (18:27 +0100)
commita80a3a7543975d1268692937d9d1884c6ee6e301
tree9afccd95f193b80186f861005f21ae04ad919f94
parentc4bc1a8434f2a34840ea6f63064fa998ecfae738
bus-proxy: drop privileges if run as root

We cannot use "User=" in unit-files if we want to retain privileges. So
make bus-proxy.c explicitly drop privileges. However, only do that if
we're root, as there is no need to drop it on the user-bus.
src/bus-proxyd/bus-proxyd.c