mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
4e032f654b
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.
25 lines
810 B
Desktop File
25 lines
810 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Unit]
|
|
Description=Test for specifiers (template unit)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=test %n = exec-specifier@foo-bar.service
|
|
ExecStart=test %N = exec-specifier@foo-bar
|
|
ExecStart=test %p = exec-specifier
|
|
ExecStart=test %P = exec/specifier
|
|
ExecStart=test %i = foo-bar
|
|
ExecStart=test %I = foo/bar
|
|
ExecStart=test %j = specifier
|
|
ExecStart=test %J = specifier
|
|
ExecStart=test %f = /foo/bar
|
|
ExecStart=sh -c 'test %u = $$(id -un)'
|
|
ExecStart=sh -c 'test %U = $$(id -u)'
|
|
ExecStart=sh -c 'test %g = $$(id -gn)'
|
|
ExecStart=sh -c 'test %G = $$(id -g)'
|
|
ExecStart=test %h = /root
|
|
ExecStart=sh -c 'test -x %s'
|
|
ExecStart=sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
|
|
ExecStart=sh -c 'test %H = $$(uname -n)'
|
|
ExecStart=sh -c 'test %v = $$(uname -r)'
|