mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
test-execute: add a test case for issue #33299
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user