1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-10-05 21:12:58 +02:00
parent 8939eeae52
commit f98ca3a11d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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