summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-runtimedirectory-owner-nobody.service
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-07-19 12:42:17 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-07-19 12:42:17 -0400
commit021fdbe02956e745b579f49fc0585747c2aec458 (patch)
treed74b6c6eaa8130e55e9b52f310acb23fcc033d73 /test/test-execute/exec-runtimedirectory-owner-nobody.service
parentd54b7826fa34ee1af5d28023f1847f3ae55ff10c (diff)
parent8e0c6d2655f83927ffdce8ed2edf6d7b80423178 (diff)
Merge tag 'systemd/v238.0-3.parabola1' into systemd/parabola
Diffstat (limited to 'test/test-execute/exec-runtimedirectory-owner-nobody.service')
-rw-r--r--test/test-execute/exec-runtimedirectory-owner-nobody.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-execute/exec-runtimedirectory-owner-nobody.service b/test/test-execute/exec-runtimedirectory-owner-nobody.service
new file mode 100644
index 0000000000..54782f9bbd
--- /dev/null
+++ b/test/test-execute/exec-runtimedirectory-owner-nobody.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
+
+[Service]
+ExecStart=/bin/sh -x -c 'group=$$(stat -c %%G %t/test-exec_runtimedirectory-owner); test "$$group" = "nobody"'
+Type=oneshot
+Group=nobody
+User=root
+RuntimeDirectory=test-exec_runtimedirectory-owner