uid-permissions test: don't assert that root can UpdateActivationEnvironment
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 20 Nov 2015 17:19:51 +0000 (17:19 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 23 Nov 2015 20:59:48 +0000 (20:59 +0000)
commitedb1e5726065377cd33b59deb1238c31d26ca54f
tree3bc49862d490c6d8182ef8cc398ce9997e20afc0
parent6c0c7ce255da60005b88135d7e41aff8be427593
uid-permissions test: don't assert that root can UpdateActivationEnvironment

Since 1.10.4 this is hard-coded to be disallowed when an activation
helper is used. That would be a security flaw waiting to happen,
and makes little sense anyway, because the activation helper sanitises
its environment.

Use BecomeMonitor() instead, as our way to assert that root and
messagebus are privileged.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93036
Reviewed-by: Iain Lane
test/uid-permissions.c