From a429223d1767a9d6cb0a95fd2fa3b0d64ce3d4e7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 29 Apr 2019 13:02:32 +0200 Subject: [PATCH] test-execute: turn off coredump generation in test services 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 | 1 + test/test-execute/exec-systemcallfilter-failing2.service | 1 + 2 files changed, 2 insertions(+) diff --git a/test/test-execute/exec-systemcallfilter-failing.service b/test/test-execute/exec-systemcallfilter-failing.service index bcebc99..996f859 100644 --- a/test/test-execute/exec-systemcallfilter-failing.service +++ b/test/test-execute/exec-systemcallfilter-failing.service @@ -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 diff --git a/test/test-execute/exec-systemcallfilter-failing2.service b/test/test-execute/exec-systemcallfilter-failing2.service index 2fdc0ed..c74f422 100644 --- a/test/test-execute/exec-systemcallfilter-failing2.service +++ b/test/test-execute/exec-systemcallfilter-failing2.service @@ -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 -- 2.7.4