]>
iEval git - linux-seccomp.git/blob - libseccomp/tests/08-sim-subtree_checks.py
4 # Seccomp Library test program
6 # Copyright (c) 2012 Red Hat <pmoore@redhat.com>
7 # Author: Paul Moore <paul@paul-moore.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>.
32 f
= SyscallFilter(KILL
)
33 # the syscall and argument numbers are all fake to make the test simpler
34 f
.add_rule_exactly(ALLOW
, 1000,
37 f
.add_rule_exactly(ALLOW
, 1000,
40 f
.add_rule_exactly(ALLOW
, 1001,
42 f
.add_rule_exactly(ALLOW
, 1001,
46 f
.add_rule_exactly(ALLOW
, 1002,
51 f
.add_rule_exactly(ALLOW
, 1002,
55 f
.add_rule_exactly(ALLOW
, 1003,
58 f
.add_rule_exactly(ALLOW
, 1003,
64 f
.add_rule_exactly(ALLOW
, 1004,
69 f
.add_rule_exactly(ALLOW
, 1004,
72 f
.add_rule_exactly(ALLOW
, 1004,
77 f
.add_rule_exactly(ALLOW
, 1004,
81 f
.add_rule_exactly(ALLOW
, 1005,
84 f
.add_rule_exactly(ALLOW
, 1005,
89 f
.add_rule_exactly(ALLOW
, 1005,
92 f
.add_rule_exactly(ALLOW
, 1005,
98 f
.add_rule_exactly(ALLOW
, 1006,
101 f
.add_rule_exactly(ALLOW
, 1006,
104 f
.add_rule_exactly(ALLOW
, 1006,
107 f
.add_rule_exactly(TRAP
, 1007,
110 f
.add_rule_exactly(ALLOW
, 1007,
113 f
.add_rule_exactly(ALLOW
, 1007,
117 args
= util
.get_opt()
119 util
.filter_output(args
, ctx
)
121 # kate: syntax python;
122 # kate: indent-mode python; space-indent on; indent-width 4; mixedindent off;
This page took 0.048961 seconds and 4 git commands to generate.