mirror of
https://github.com/systemd/systemd.git
synced 2025-03-10 16:58:28 +03:00
test-execute: Make /coverage writable in DynamicUser= tests
DynamicUser=yes implies ProtectSystem=yes, so let's explicitly make sure the coverage directory is writable in these tests.
This commit is contained in:
parent
561a3786b7
commit
e69d724aff
@ -9,3 +9,4 @@ AmbientCapabilities=CAP_CHOWN CAP_SETUID CAP_NET_RAW
|
||||
DynamicUser=yes
|
||||
PrivateUsers=yes
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -10,3 +10,4 @@ ExecStart=sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && te
|
||||
ExecStart=sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"'
|
||||
DynamicUser=yes
|
||||
User=adm
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -10,3 +10,4 @@ ExecStart=sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" &
|
||||
ExecStart=sh -x -c 'test "$$(id -nG)" = "games" && test "$$(id -ng)" = "games" && test "$$(id -nu)" = "games"'
|
||||
DynamicUser=yes
|
||||
User=games
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -9,3 +9,4 @@ Type=oneshot
|
||||
User=1
|
||||
DynamicUser=yes
|
||||
SupplementaryGroups=1
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -8,3 +8,4 @@ ExecStart=sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
|
||||
Type=oneshot
|
||||
User=1
|
||||
DynamicUser=yes
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -11,3 +11,4 @@ RuntimeDirectory=test-exec_runtimedirectorypreserve
|
||||
RuntimeDirectoryPreserve=yes
|
||||
DynamicUser=yes
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -12,3 +12,4 @@ RuntimeDirectory=test-exec_runtimedirectorypreserve
|
||||
RuntimeDirectoryPreserve=yes
|
||||
DynamicUser=yes
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -11,3 +11,4 @@ Type=oneshot
|
||||
RuntimeDirectory=test-exec_runtimedirectorypreserve
|
||||
DynamicUser=yes
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -25,3 +25,4 @@ Type=oneshot
|
||||
DynamicUser=yes
|
||||
StateDirectory=test-dynamicuser-migrate test-dynamicuser-migrate2/hoge
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -84,3 +84,4 @@ Type=oneshot
|
||||
DynamicUser=yes
|
||||
StateDirectory=waldo quux/pief aaa/bbb aaa aaa/ccc xxx/yyy:aaa/111 xxx:aaa/222 xxx/zzz:aaa/333 abc:d\:ef
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
@ -9,3 +9,4 @@ Type=oneshot
|
||||
DynamicUser=yes
|
||||
SupplementaryGroups=1 2
|
||||
EnvironmentFile=-/usr/lib/systemd/systemd-asan-env
|
||||
ReadWritePaths=-/coverage
|
||||
|
Loading…
x
Reference in New Issue
Block a user