GetConnectionCredentials - add smack support
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 20 Jun 2014 14:55:00 +0000 (16:55 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 19 Feb 2016 10:09:56 +0000 (11:09 +0100)
commit13d888ca95c75c14a4919b36cc0a15979fb1d42b
treed891ae6828121d34534d32ffbb6ccab2ef66b6e1
parent7e222020223189d2a64d384741a39c966ae47cca
GetConnectionCredentials - add smack support

A process should never change its Smack label while connected to
D-Bus. If it did, we would end up with race conditions around
permission checking. Therefore we can retrieve the Smack label once,
when the process connects, and use that label whenever it is needed.

A new public libdbus API also gets added: dbus_connection_get_smack_label()
This is primarily for dbus-daemon, but may also be useful for other applications
creating direct connections.

Change-Id: I16ec50a031809aab879a543ec2d7effd56768bf1
bus/Makefile.am
bus/driver.c
bus/smack.c
dbus/Makefile.am
dbus/dbus-connection.c
dbus/dbus-connection.h
doc/dbus-specification.xml