Systemd/src/bus-proxyd
Przemyslaw Kedzierski dd5ae4c36c bus-proxy: cloning smack label
When dbus client connects to systemd-bus-proxyd through
Unix domain socket proxy takes client's smack label and sets for itself.

It is done before and independent of dropping privileges.

The reason of such soluton is fact that tests of access rights
performed by lsm may take place inside kernel, not only
in userspace of recipient of message.

The bus-proxyd needs CAP_MAC_ADMIN to manipulate its label.

In case of systemd running in system mode, CAP_MAC_ADMIN
should be added to CapabilityBoundingSet in service file of bus-proxyd.

In case of systemd running in user mode ('systemd --user')
it can be achieved by addition
Capabilities=cap_mac_admin=i and SecureBits=keep-caps
to user@.service file
and setting cap_mac_admin+ei on bus-proxyd binary.
2014-12-09 18:23:24 +01:00
..
bus-policy.c treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1 2014-11-28 20:55:04 +01:00
bus-policy.h bus-proxy: beef up policy enforcement 2014-11-27 22:02:12 +01:00
bus-proxyd.c bus-proxy: cloning smack label 2014-12-09 18:23:24 +01:00
Makefile rename stdio-bridge to bus-proxyd 2013-11-29 22:12:59 +01:00
test-bus-policy.c bus-proxy: beef up policy enforcement 2014-11-27 22:02:12 +01:00