summaryrefslogtreecommitdiff
path: root/test/test-execute
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-19 14:17:29 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-03 08:33:23 +0200
commitb7172f347133888d876b82167f47ae11f8479528 (patch)
treed417cc4eb1cff631caf329ca13a38a35ae8a54f6 /test/test-execute
parent7bcf8123c0305131ace02480763377af974924ef (diff)
downloadsystemd-b7172f347133888d876b82167f47ae11f8479528.tar.gz
test-execute: also tests under the condition that unshare() is filtered
This is mainly for testing 1beab8b0d0ff2d7d1436b52d4a0c3d56dc908962.
Diffstat (limited to 'test/test-execute')
-rw-r--r--test/test-execute/exec-umask-0177.service2
-rw-r--r--test/test-execute/exec-umask-default.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test-execute/exec-umask-0177.service b/test/test-execute/exec-umask-0177.service
index a5e8fc4dbc..c18293e403 100644
--- a/test/test-execute/exec-umask-0177.service
+++ b/test/test-execute/exec-umask-0177.service
@@ -2,7 +2,7 @@
Description=Test for UMask
[Service]
-ExecStart=/bin/sh -x -c 'touch /tmp/test-exec-umask; mode=$$(stat -c %%a /tmp/test-exec-umask); test "$$mode" = "600"'
+ExecStart=/bin/sh -x -c 'rm /tmp/test-exec-umask; touch /tmp/test-exec-umask; mode=$$(stat -c %%a /tmp/test-exec-umask); test "$$mode" = "600"'
Type=oneshot
UMask=0177
PrivateTmp=yes
diff --git a/test/test-execute/exec-umask-default.service b/test/test-execute/exec-umask-default.service
index 487f5e9b94..bf0573dd42 100644
--- a/test/test-execute/exec-umask-default.service
+++ b/test/test-execute/exec-umask-default.service
@@ -2,6 +2,6 @@
Description=Test for UMask default
[Service]
-ExecStart=/bin/sh -x -c 'touch /tmp/test-exec-umask; mode=$$(stat -c %%a /tmp/test-exec-umask); test "$$mode" = "644"'
+ExecStart=/bin/sh -x -c 'rm /tmp/test-exec-umask; touch /tmp/test-exec-umask; mode=$$(stat -c %%a /tmp/test-exec-umask); test "$$mode" = "644"'
Type=oneshot
PrivateTmp=yes