[systemd-devel] [PATCH 1/1] tests: skip test for test-unit-file when executed without privileges
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Tue Jul 30 04:52:32 PDT 2013
On Tue, Jul 30, 2013 at 11:50:54AM +0200, Christian Hesse wrote:
> Hello everybody,
>
> for me this test fails and I think it is correct to skip it in case
> permission is denied. Patch attached.
It *is* an error in the installation or environment if
unit files cannot be read. In almost all circumstances,
reducing permissions on unit files doesn't introduce any
extra security because later on they are all accessible
from PID 1 over dbus. I agree that failing an assertion
is not nice from the view of the user, what about
exit(EXIT_FAILURE)?
Zbyszek
More information about the systemd-devel
mailing list