diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-05 21:12:58 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-11-06 15:20:34 +0100 |
commit | f98ca3a11d969736e9b5c3b34c90eca722a1a6d8 (patch) | |
tree | 415cdde1240e868286efd438400639d19b782e69 /test/test-execute | |
parent | shared/exec-util: use our own execveat() wrapper instead of fexecve() (diff) | |
download | systemd-f98ca3a11d969736e9b5c3b34c90eca722a1a6d8.tar.xz systemd-f98ca3a11d969736e9b5c3b34c90eca722a1a6d8.zip |
test-execute: make sure shell execs the child
echo is a built-in, so we were testing execve in our own code, and not in
the running child.
Diffstat (limited to 'test/test-execute')
-rw-r--r-- | test/test-execute/exec-systemcallfilter-failing.service | 2 | ||||
-rw-r--r-- | test/test-execute/exec-systemcallfilter-failing2.service | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test-execute/exec-systemcallfilter-failing.service b/test/test-execute/exec-systemcallfilter-failing.service index 996f859217..c4b0799031 100644 --- a/test/test-execute/exec-systemcallfilter-failing.service +++ b/test/test-execute/exec-systemcallfilter-failing.service @@ -2,7 +2,7 @@ Description=Test for SystemCallFilter [Service] -ExecStart=/bin/sh -c 'echo "This should not be seen"' +ExecStart=/bin/sh -c '/bin/echo "This should not be seen"' Type=oneshot LimitCORE=0 SystemCallFilter=ioperm diff --git a/test/test-execute/exec-systemcallfilter-failing2.service b/test/test-execute/exec-systemcallfilter-failing2.service index c74f42248b..452aaf8273 100644 --- a/test/test-execute/exec-systemcallfilter-failing2.service +++ b/test/test-execute/exec-systemcallfilter-failing2.service @@ -2,7 +2,7 @@ Description=Test for SystemCallFilter [Service] -ExecStart=/bin/sh -c 'echo "This should not be seen"' +ExecStart=/bin/sh -c '/bin/echo "This should not be seen"' Type=oneshot LimitCORE=0 -SystemCallFilter=~write open execve exit_group close mmap munmap fstat DONOTEXIST +SystemCallFilter=~write open execve fexecve execveat exit_group close mmap munmap fstat DONOTEXIST |