Skip to content

Commit 5d0fd4e

Browse files
committed
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. (cherry picked from commit a429223) Related: RHEL-108744
1 parent 9ee8030 commit 5d0fd4e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Description=Test for SystemCallFilter
44
[Service]
55
ExecStart=/bin/sh -c 'echo "This should not be seen"'
66
Type=oneshot
7+
LimitCORE=0
78
SystemCallFilter=ioperm
89
SystemCallFilter=~ioperm
910
SystemCallFilter=ioperm

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Description=Test for SystemCallFilter
44
[Service]
55
ExecStart=/bin/sh -c 'echo "This should not be seen"'
66
Type=oneshot
7+
LimitCORE=0
78
SystemCallFilter=~write open execve exit_group close mmap munmap fstat DONOTEXIST

0 commit comments

Comments
 (0)