| 1 | /** |
| 2 | * Seccomp Library utility code for tests |
| 3 | * |
| 4 | * Copyright IBM Corp. 2012 |
| 5 | * Author: Corey Bryant <coreyb@linux.vnet.ibm.com> |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * This library is free software; you can redistribute it and/or modify it |
| 10 | * under the terms of version 2.1 of the GNU Lesser General Public License as |
| 11 | * published by the Free Software Foundation. |
| 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 14 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 15 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 16 | * for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public License |
| 19 | * along with this library; if not, see <http://www.gnu.org/licenses>. |
| 20 | */ |
| 21 | |
| 22 | #ifndef _UTIL_TEST_H |
| 23 | #define _UTIL_TEST_H |
| 24 | |
| 25 | struct util_options { |
| 26 | int bpf_flg; |
| 27 | }; |
| 28 | |
| 29 | int util_getopt(int argc, char *argv[], struct util_options *opts); |
| 30 | |
| 31 | int util_filter_output(const struct util_options *opts, |
| 32 | const scmp_filter_ctx ctx); |
| 33 | |
| 34 | int util_trap_install(void); |
| 35 | |
| 36 | int util_action_parse(const char *action); |
| 37 | |
| 38 | int util_file_write(const char *path); |
| 39 | |
| 40 | #endif |