chiark / gitweb /
bus-proxy: drop priviliges if we can
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Jun 2014 07:55:40 +0000 (09:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Jun 2014 09:13:08 +0000 (11:13 +0200)
commit6a010ac9e5aa585637b4b79df92f8ca5537faf71
treee1bf303eadad22714f6ca08fb7822bec36725af1
parent72543b361d653520b5bc3344bf4653385b61541e
bus-proxy: drop priviliges if we can

Either become uid/gid of the client we have been forked for, or become
the "systemd-bus-proxy" user if the client was root. We retain
CAP_IPC_OWNER so that we can tell kdbus we are actually our own client.
Makefile.am
src/bus-proxyd/bus-proxyd.c
src/shared/capability.c
units/systemd-bus-proxyd@.service.in