Hardening: only accept Stats function calls at the canonical object path
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 19 Dec 2014 18:51:04 +0000 (18:51 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 1 Jan 2015 23:33:10 +0000 (23:33 +0000)
commiteec885de3b4b9559a2f28be7c17bf21ca8d2382f
tree6edf068d8095a934a3d8ce77e79b471b6d756c1f
parent4daf4bdc92d73a630634272a529c2690e2348eb9
Hardening: only accept Stats function calls at the canonical object path

These function calls are not a privilege escalation risk like
UpdateActivationEnvironment, but they might provide sensitive
information or be enhanced to provide sensitive information
in future, so the default system.conf locks them down to root-only.
Apply the same canonical-object-path hardening as for
UpdateActivationEnvironment.

We do not apply the uid check here because they are less dangerous
than UpdateActivationEnvironment, and because the ability to unlock
these function calls for specific uids is a documented configuration
for developers.

Reviewed-by: Thiago Macieira <thiago@kde.org>
[added missing #include; extended commit message -smcv]
bus/stats.c