Bundle libseccomp 2.3.1
[linux-seccomp.git] / libseccomp / src / arch-x32.c
CommitLineData
8befd5cc
MG
1/**
2 * Enhanced Seccomp x32 Specific Code
3 *
4 * Copyright (c) 2013 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#include <stdlib.h>
23#include <errno.h>
24#include <linux/audit.h>
25
26#include "arch.h"
27#include "arch-x32.h"
28
29const struct arch_def arch_def_x32 = {
30 .token = SCMP_ARCH_X32,
31 /* NOTE: this seems odd but the kernel treats x32 like x86_64 here */
32 .token_bpf = AUDIT_ARCH_X86_64,
33 .size = ARCH_SIZE_32,
34 .endian = ARCH_ENDIAN_LITTLE,
35 .syscall_resolve_name = x32_syscall_resolve_name,
36 .syscall_resolve_num = x32_syscall_resolve_num,
37 .syscall_rewrite = NULL,
38 .rule_add = NULL,
39};
This page took 0.010734 seconds and 4 git commands to generate.