From f9c60d5a3aaecc11b1dbb933bca45c461b03ca83 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 28 Dec 2017 12:28:08 -0500 Subject: replacing seccomp printing with a seccomp disassembler --- src/fsec-print/fsec_print.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/fsec-print/fsec_print.h (limited to 'src/fsec-print/fsec_print.h') diff --git a/src/fsec-print/fsec_print.h b/src/fsec-print/fsec_print.h new file mode 100644 index 000000000..d3f4a4df9 --- /dev/null +++ b/src/fsec-print/fsec_print.h @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2014-2017 Firejail Authors + * + * This file is part of firejail project + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ +#ifndef FSEC_PRINT_H +#define FSEC_PRINT_H +#include "../include/common.h" +#include "../include/seccomp.h" +#include + +// print.c +void print(struct sock_filter *filter, int entries); + +// syscall_list.c +const char *syscall_find_nr(int nr); + +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf