Reload policy rules for completed connections
authorChengwei Yang <chengwei.yang@intel.com>
Tue, 10 Dec 2013 09:11:25 +0000 (17:11 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 6 Jan 2014 15:18:51 +0000 (15:18 +0000)
commit1794c245e2869c5f7d35f38c38b42f17c157541f
tree29e8630024ca82ec85f009ca4e80621290090c3f
parent00211794ed8e85cb49538ee32703f71566cb48f2
Reload policy rules for completed connections

The message bus which can monitor its conf dirs for changes and reload
confs immediately if dir monitor enabled, for example, inotify in Linux,
kqueue in *BSD.

However, it doesn't apply policy rules change for completed connections,
so to apply policy rules change, the client connection has to disconnect
first and then re-connect to message bus.

For imcomplete connections, it always has the latest review of policy
rules.

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