execute: simplify needs_sandboxing checking
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Aug 2017 09:44:37 +0000 (11:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Aug 2017 13:02:50 +0000 (15:02 +0200)
commit937ccce94cf2204a7bc78749d7b32c8ecbc71022
treead9e9dbaab70a4a18ab64f0a4a7e8287d6d42f20
parent1703fa41a73ff2225ca38e84df522ada49d05753
execute: simplify needs_sandboxing checking

Let's merge three if blocks that shall only run when sandboxing is applied
into one.

Note that this changes behaviour in one corner case: PrivateUsers=1 is
now honours both PermissionsStartOnly= and the "+" modifier in
ExecStart=, and not just the former, as before. This was an oversight,
so let's fix this now, at a point in time the option isn't used much
yet.
src/core/execute.c