]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-execute: turn off coredump generation in test services 12430/head
authorLennart Poettering <lennart@poettering.net>
Mon, 29 Apr 2019 11:02:32 +0000 (13:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 May 2019 08:48:28 +0000 (10:48 +0200)
These services are likely to coredump, and we expect that but aren't
interested in the coredump. Hence let's turn off processing by setting
RLIMIT_CORE to 0/0.

test/test-execute/exec-systemcallfilter-failing.service
test/test-execute/exec-systemcallfilter-failing2.service

index bcebc995072c3fcd2fb7e52501dae82b430ac275..996f859217cc4bb4331706a76d5a0559a00818a4 100644 (file)
@@ -4,6 +4,7 @@ Description=Test for SystemCallFilter
 [Service]
 ExecStart=/bin/sh -c 'echo "This should not be seen"'
 Type=oneshot
+LimitCORE=0
 SystemCallFilter=ioperm
 SystemCallFilter=~ioperm
 SystemCallFilter=ioperm
index 2fdc0ed7724cc7569b58bc6400f1bed5eb7b627b..c74f42248bdf04c436f72a294d49c8ec1cdb9994 100644 (file)
@@ -4,4 +4,5 @@ Description=Test for SystemCallFilter
 [Service]
 ExecStart=/bin/sh -c 'echo "This should not be seen"'
 Type=oneshot
+LimitCORE=0
 SystemCallFilter=~write open execve exit_group close mmap munmap fstat DONOTEXIST