forked from seccomp/libseccomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch-s390.c
37 lines (32 loc) · 952 Bytes
/
arch-s390.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright 2015 IBM
* Author: Jan Willeke <[email protected]>
*/
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <linux/audit.h>
#include "db.h"
#include "syscalls.h"
#include "arch.h"
#include "arch-s390.h"
/* s390 syscall numbers */
#define __s390_NR_socketcall 102
#define __s390_NR_ipc 117
ARCH_DEF(s390)
const struct arch_def arch_def_s390 = {
.token = SCMP_ARCH_S390,
.token_bpf = AUDIT_ARCH_S390,
.size = ARCH_SIZE_32,
.endian = ARCH_ENDIAN_BIG,
.sys_socketcall = __s390_NR_socketcall,
.sys_ipc = __s390_NR_ipc,
.syscall_resolve_name = abi_syscall_resolve_name_munge,
.syscall_resolve_name_raw = s390_syscall_resolve_name,
.syscall_resolve_num = abi_syscall_resolve_num_munge,
.syscall_resolve_num_raw = s390_syscall_resolve_num,
.syscall_rewrite = abi_syscall_rewrite,
.rule_add = abi_rule_add,
.syscall_name_kver = s390_syscall_name_kver,
.syscall_num_kver = s390_syscall_num_kver,
};