mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
test-execute: add a test case for issue #33299
(cherry picked from commit 956a9f00b444145ebc5ddc7c5cefb0a6c9c7ca8f)
This commit is contained in:
parent
d008b3fb26
commit
81acc5b39a
@ -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…
x
Reference in New Issue
Block a user