test-execute: drop capabilities when testing with user manager
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 3 Feb 2023 03:28:31 +0000 (12:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Feb 2023 01:10:54 +0000 (10:10 +0900)
commit4e032f654b94c2544ccf937209303766dfa66c24
tree4dbe36dbd89116bd2352fff1a64443cd2b6f7c2c
parentf0353cf2e93a2b39add8027608494ee53a89cfae
test-execute: drop capabilities when testing with user manager

Before this, tests are split into two categories, system and user, but
both are running in fully privileged environment. Hence, unprivileged
user scope was mostly not covered by the test.

Let's run all tests in both system and user scopes, and drop capabilities
when Manager is running in user scope.

This also makes the host environment protected more from the test run.
src/test/test-execute.c
test/test-execute/exec-dynamicuser-statedir-migrate-step1.service
test/test-execute/exec-dynamicuser-statedir-migrate-step2.service
test/test-execute/exec-dynamicuser-statedir.service
test/test-execute/exec-privatenetwork-yes.service
test/test-execute/exec-specifier-system.service [new file with mode: 0644]
test/test-execute/exec-specifier-user.service [new file with mode: 0644]
test/test-execute/exec-specifier.service
test/test-execute/exec-specifier@.service