]>
Commit | Line | Data |
---|---|---|
1 | /** | |
2 | * Enhanced Seccomp x86 Specific Code | |
3 | * | |
4 | * Copyright (c) 2012 Red Hat <pmoore@redhat.com> | |
5 | * Author: Paul Moore <paul@paul-moore.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 _ARCH_X86_H | |
23 | #define _ARCH_X86_H | |
24 | ||
25 | #include <stdbool.h> | |
26 | ||
27 | #include "arch.h" | |
28 | #include "db.h" | |
29 | #include "system.h" | |
30 | ||
31 | extern const struct arch_def arch_def_x86; | |
32 | ||
33 | int x86_syscall_resolve_name(const char *name); | |
34 | const char *x86_syscall_resolve_num(int num); | |
35 | ||
36 | const char *x86_syscall_iterate_name(unsigned int spot); | |
37 | ||
38 | int x86_syscall_rewrite(int *syscall); | |
39 | ||
40 | int x86_rule_add(struct db_filter_col *col, struct db_filter *db, bool strict, | |
41 | struct db_api_rule_list *rule); | |
42 | ||
43 | #endif |