mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +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:
parent
8939eeae52
commit
f98ca3a11d
@ -2,7 +2,7 @@
|
|||||||
Description=Test for SystemCallFilter
|
Description=Test for SystemCallFilter
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -c 'echo "This should not be seen"'
|
ExecStart=/bin/sh -c '/bin/echo "This should not be seen"'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
LimitCORE=0
|
LimitCORE=0
|
||||||
SystemCallFilter=ioperm
|
SystemCallFilter=ioperm
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Description=Test for SystemCallFilter
|
Description=Test for SystemCallFilter
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/sh -c 'echo "This should not be seen"'
|
ExecStart=/bin/sh -c '/bin/echo "This should not be seen"'
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
LimitCORE=0
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user