Store AppArmor label of connecting processes
authorTyler Hicks <tyhicks@canonical.com>
Thu, 13 Feb 2014 15:59:53 +0000 (09:59 -0600)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 18 Feb 2015 17:04:05 +0000 (17:04 +0000)
commitcd23a5df10b0465c99f91b5f9c4e160480078c1a
tree0ba4cd5181b2f6a36ab43457a28871b48b1a2087
parente8b0248eef31e2960a895613f3a9102675a7baf8
Store AppArmor label of connecting processes

When processes connect the bus, the AppArmor confinement context should
be stored for later use when checks are to be done during message
sending/receiving, acquire a name, and eavesdropping.

Code outside of apparmor.c will need to initialize and unreference the
confinement context, so bus_apparmor_confinement_unref() can no longer
be a static function.

[Move bus_apparmor_confinement_unref back to its old location for
a more reasonable diff -smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=75113
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/apparmor.c
bus/apparmor.h
bus/bus.h
bus/connection.c