bus: Add LSM label to connection loginfo string
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 4 Oct 2016 17:39:11 +0000 (18:39 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 5 Oct 2016 18:32:48 +0000 (19:32 +0100)
commit12a893b2ebcfe3af6d2a10c269565c105ed8f9d0
tree7a211ab89407e121f711129ddce71102e4792a90
parent203a1e50940025a3e4ea675604a7db29d1fd71ae
bus: Add LSM label to connection loginfo string

If it is set (i.e. if an LSM is in use) this will make it appear in
various places in log output.

With SELinux, for example, this appends something like:
   label="system_u:object_r:unlabeled_t:s0"

This commit partially rearranges the code which sets the loginfo string,
so that it consistently puts a space between fields, and not one at the
end.

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