]>
git.proxmox.com Git - mirror_libseccomp.git/blob - tests/46-sim-kill_process.py
4 # Seccomp Library test program
6 # Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
7 # Author: Tom Hromatka <tom.hromatka@oracle.com>
11 # This library is free software; you can redistribute it and/or modify it
12 # under the terms of version 2.1 of the GNU Lesser General Public License as
13 # published by the Free Software Foundation.
15 # This library is distributed in the hope that it will be useful, but WITHOUT
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with this library; if not, see <http://www.gnu.org/licenses>.
33 f
= SyscallFilter(KILL_PROCESS
)
35 f
.add_arch(Arch("x86_64"))
36 f
.add_rule_exactly(ALLOW
, "read")
37 f
.add_rule_exactly(ERRNO(5), "write")
38 f
.add_rule_exactly(KILL
, "open")
39 f
.add_rule_exactly(ERRNO(6), "close", Arg(0, GT
, 100))
44 util
.filter_output(args
, ctx
)
46 # kate: syntax python;
47 # kate: indent-mode python; space-indent on; indent-width 4; mixedindent off;