mirror of
https://github.com/systemd/systemd
synced 2024-10-01 13:55:20 +00:00
test-execute: add a test case for issue #33299
This commit is contained in:
parent
84b79215cc
commit
956a9f00b4
|
@ -832,6 +832,8 @@ static void test_exec_systemcallfilter(Manager *m) {
|
|||
return;
|
||||
}
|
||||
|
||||
test(m, "exec-systemcallfilter-writing-handoff-timestamp.service", 0, CLD_EXITED);
|
||||
|
||||
test(m, "exec-systemcallfilter-not-failing.service", 0, CLD_EXITED);
|
||||
test(m, "exec-systemcallfilter-not-failing2.service", 0, CLD_EXITED);
|
||||
test(m, "exec-systemcallfilter-not-failing3.service", 0, CLD_EXITED);
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
[Unit]
|
||||
Description=Test for SystemCallFilter
|
||||
|
||||
[Service]
|
||||
ExecStart=true
|
||||
Type=oneshot
|
||||
# For issue #33299
|
||||
SystemCallFilter=~@network-io
|
||||
SystemCallFilter=~write
|
||||
SystemCallErrorNumber=ENOSYS
|
Loading…
Reference in a new issue