| 1 | /** |
| 2 | * Enhanced Seccomp MIPS64 Specific Code |
| 3 | * |
| 4 | * Copyright (c) 2014 Red Hat <pmoore@redhat.com> |
| 5 | * Author: Paul Moore <paul@paul-moore.com> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | /* |
| 10 | * This library is free software; you can redistribute it and/or modify it |
| 11 | * under the terms of version 2.1 of the GNU Lesser General Public License as |
| 12 | * published by the Free Software Foundation. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 17 | * for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public License |
| 20 | * along with this library; if not, see <http://www.gnu.org/licenses>. |
| 21 | */ |
| 22 | |
| 23 | #include <linux/audit.h> |
| 24 | |
| 25 | #include "arch.h" |
| 26 | #include "arch-mips64.h" |
| 27 | |
| 28 | const struct arch_def arch_def_mips64 = { |
| 29 | .token = SCMP_ARCH_MIPS64, |
| 30 | .token_bpf = AUDIT_ARCH_MIPS64, |
| 31 | .size = ARCH_SIZE_64, |
| 32 | .endian = ARCH_ENDIAN_BIG, |
| 33 | .syscall_resolve_name = mips64_syscall_resolve_name, |
| 34 | .syscall_resolve_num = mips64_syscall_resolve_num, |
| 35 | .syscall_rewrite = NULL, |
| 36 | .rule_add = NULL, |
| 37 | }; |
| 38 | |
| 39 | const struct arch_def arch_def_mipsel64 = { |
| 40 | .token = SCMP_ARCH_MIPSEL64, |
| 41 | .token_bpf = AUDIT_ARCH_MIPSEL64, |
| 42 | .size = ARCH_SIZE_64, |
| 43 | .endian = ARCH_ENDIAN_LITTLE, |
| 44 | .syscall_resolve_name = mips64_syscall_resolve_name, |
| 45 | .syscall_resolve_num = mips64_syscall_resolve_num, |
| 46 | .syscall_rewrite = NULL, |
| 47 | .rule_add = NULL, |
| 48 | }; |