diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-19 14:17:29 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-10-03 08:33:23 +0200 |
commit | b7172f347133888d876b82167f47ae11f8479528 (patch) | |
tree | d417cc4eb1cff631caf329ca13a38a35ae8a54f6 /test/test-execute | |
parent | 7bcf8123c0305131ace02480763377af974924ef (diff) | |
download | systemd-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.service | 2 | ||||
-rw-r--r-- | test/test-execute/exec-umask-default.service | 2 |
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 |