script_core 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/enterprise_script_service/libseccomp/.travis.yml +21 -7
- data/ext/enterprise_script_service/libseccomp/CHANGELOG +22 -0
- data/ext/enterprise_script_service/libseccomp/CONTRIBUTING.md +37 -26
- data/ext/enterprise_script_service/libseccomp/CREDITS +8 -0
- data/ext/enterprise_script_service/libseccomp/README.md +3 -1
- data/ext/enterprise_script_service/libseccomp/configure.ac +13 -8
- data/ext/enterprise_script_service/libseccomp/doc/Makefile.am +6 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_api_get.3 +12 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_arch_add.3 +38 -6
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_attr_set.3 +53 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_export_bpf.3 +20 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_init.3 +9 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_load.3 +32 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_merge.3 +16 -2
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_alloc.3 +113 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_fd.3 +1 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_free.3 +1 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_id_valid.3 +1 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_receive.3 +1 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_notify_respond.3 +1 -0
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_rule_add.3 +64 -3
- data/ext/enterprise_script_service/libseccomp/doc/man/man3/seccomp_syscall_priority.3 +18 -3
- data/ext/enterprise_script_service/libseccomp/include/seccomp-syscalls.h +12 -0
- data/ext/enterprise_script_service/libseccomp/include/seccomp.h.in +116 -0
- data/ext/enterprise_script_service/libseccomp/src/.gitignore +2 -0
- data/ext/enterprise_script_service/libseccomp/src/Makefile.am +31 -17
- data/ext/enterprise_script_service/libseccomp/src/api.c +254 -58
- data/ext/enterprise_script_service/libseccomp/src/arch-aarch64.h +1 -9
- data/ext/enterprise_script_service/libseccomp/src/arch-arm.c +47 -2
- data/ext/enterprise_script_service/libseccomp/src/arch-arm.h +1 -9
- data/ext/enterprise_script_service/libseccomp/src/arch-gperf-generate +40 -0
- data/ext/enterprise_script_service/libseccomp/src/arch-mips.c +41 -4
- data/ext/enterprise_script_service/libseccomp/src/arch-mips.h +2 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64.c +41 -4
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64.h +3 -11
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64n32.c +41 -4
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64n32.h +2 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-parisc.h +1 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-parisc64.c +3 -3
- data/ext/enterprise_script_service/libseccomp/src/arch-parisc64.h +29 -0
- data/ext/enterprise_script_service/libseccomp/src/arch-ppc.h +1 -9
- data/ext/enterprise_script_service/libseccomp/src/arch-ppc64.c +606 -8
- data/ext/enterprise_script_service/libseccomp/src/arch-ppc64.h +2 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-riscv64.c +31 -0
- data/ext/enterprise_script_service/libseccomp/src/arch-riscv64.h +22 -0
- data/ext/enterprise_script_service/libseccomp/src/arch-s390.c +171 -12
- data/ext/enterprise_script_service/libseccomp/src/arch-s390.h +1 -17
- data/ext/enterprise_script_service/libseccomp/src/arch-s390x.c +166 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-s390x.h +1 -20
- data/ext/enterprise_script_service/libseccomp/src/arch-syscall-dump.c +8 -1
- data/ext/enterprise_script_service/libseccomp/src/arch-syscall-validate +359 -143
- data/ext/enterprise_script_service/libseccomp/src/arch-x32.c +36 -2
- data/ext/enterprise_script_service/libseccomp/src/arch-x32.h +2 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-x86.c +172 -10
- data/ext/enterprise_script_service/libseccomp/src/arch-x86.h +1 -14
- data/ext/enterprise_script_service/libseccomp/src/arch-x86_64.h +1 -9
- data/ext/enterprise_script_service/libseccomp/src/arch.c +11 -3
- data/ext/enterprise_script_service/libseccomp/src/arch.h +7 -0
- data/ext/enterprise_script_service/libseccomp/src/db.c +268 -57
- data/ext/enterprise_script_service/libseccomp/src/db.h +16 -2
- data/ext/enterprise_script_service/libseccomp/src/gen_bpf.c +503 -148
- data/ext/enterprise_script_service/libseccomp/src/gen_bpf.h +2 -1
- data/ext/enterprise_script_service/libseccomp/src/gen_pfc.c +165 -37
- data/ext/enterprise_script_service/libseccomp/src/python/libseccomp.pxd +37 -1
- data/ext/enterprise_script_service/libseccomp/src/python/seccomp.pyx +295 -5
- data/ext/enterprise_script_service/libseccomp/src/syscalls.c +56 -0
- data/ext/enterprise_script_service/libseccomp/src/syscalls.csv +470 -0
- data/ext/enterprise_script_service/libseccomp/src/syscalls.h +62 -0
- data/ext/enterprise_script_service/libseccomp/src/syscalls.perf.template +82 -0
- data/ext/enterprise_script_service/libseccomp/src/system.c +196 -16
- data/ext/enterprise_script_service/libseccomp/src/system.h +68 -13
- data/ext/enterprise_script_service/libseccomp/tests/.gitignore +9 -2
- data/ext/enterprise_script_service/libseccomp/tests/06-sim-actions.tests +1 -1
- data/ext/enterprise_script_service/libseccomp/tests/11-basic-basic_errors.c +5 -5
- data/ext/enterprise_script_service/libseccomp/tests/13-basic-attrs.c +35 -1
- data/ext/enterprise_script_service/libseccomp/tests/13-basic-attrs.py +10 -1
- data/ext/enterprise_script_service/libseccomp/tests/15-basic-resolver.c +1 -0
- data/ext/enterprise_script_service/libseccomp/tests/16-sim-arch_basic.c +12 -0
- data/ext/enterprise_script_service/libseccomp/tests/16-sim-arch_basic.py +1 -0
- data/ext/enterprise_script_service/libseccomp/tests/{18-sim-basic_whitelist.c → 18-sim-basic_allowlist.c} +0 -0
- data/ext/enterprise_script_service/libseccomp/tests/{18-sim-basic_whitelist.py → 18-sim-basic_allowlist.py} +0 -0
- data/ext/enterprise_script_service/libseccomp/tests/18-sim-basic_allowlist.tests +32 -0
- data/ext/enterprise_script_service/libseccomp/tests/23-sim-arch_all_le_basic.c +3 -0
- data/ext/enterprise_script_service/libseccomp/tests/23-sim-arch_all_le_basic.py +1 -0
- data/ext/enterprise_script_service/libseccomp/tests/30-sim-socket_syscalls.c +3 -0
- data/ext/enterprise_script_service/libseccomp/tests/30-sim-socket_syscalls.py +1 -0
- data/ext/enterprise_script_service/libseccomp/tests/30-sim-socket_syscalls.tests +33 -17
- data/ext/enterprise_script_service/libseccomp/tests/{34-sim-basic_blacklist.c → 34-sim-basic_denylist.c} +0 -0
- data/ext/enterprise_script_service/libseccomp/tests/{34-sim-basic_blacklist.py → 34-sim-basic_denylist.py} +0 -0
- data/ext/enterprise_script_service/libseccomp/tests/34-sim-basic_denylist.tests +32 -0
- data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.c +3 -0
- data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.py +1 -0
- data/ext/enterprise_script_service/libseccomp/tests/36-sim-ipc_syscalls.tests +25 -25
- data/ext/enterprise_script_service/libseccomp/tests/39-basic-api_level.c +24 -3
- data/ext/enterprise_script_service/libseccomp/tests/39-basic-api_level.py +16 -1
- data/ext/enterprise_script_service/libseccomp/tests/47-live-kill_process.c +3 -3
- data/ext/enterprise_script_service/libseccomp/tests/51-live-user_notification.c +112 -0
- data/ext/enterprise_script_service/libseccomp/tests/51-live-user_notification.py +60 -0
- data/ext/enterprise_script_service/libseccomp/tests/51-live-user_notification.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/53-sim-binary_tree.c +156 -0
- data/ext/enterprise_script_service/libseccomp/tests/53-sim-binary_tree.py +95 -0
- data/ext/enterprise_script_service/libseccomp/tests/53-sim-binary_tree.tests +65 -0
- data/ext/enterprise_script_service/libseccomp/tests/54-live-binary_tree.c +128 -0
- data/ext/enterprise_script_service/libseccomp/tests/54-live-binary_tree.py +95 -0
- data/ext/enterprise_script_service/libseccomp/tests/54-live-binary_tree.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.c +134 -0
- data/ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.sh +46 -0
- data/ext/enterprise_script_service/libseccomp/tests/55-basic-pfc_binary_tree.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/56-basic-iterate_syscalls.c +90 -0
- data/ext/enterprise_script_service/libseccomp/tests/56-basic-iterate_syscalls.py +65 -0
- data/ext/enterprise_script_service/libseccomp/tests/56-basic-iterate_syscalls.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/57-basic-rawsysrc.c +64 -0
- data/ext/enterprise_script_service/libseccomp/tests/57-basic-rawsysrc.py +46 -0
- data/ext/enterprise_script_service/libseccomp/tests/57-basic-rawsysrc.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/58-live-tsync_notify.c +116 -0
- data/ext/enterprise_script_service/libseccomp/tests/58-live-tsync_notify.py +61 -0
- data/ext/enterprise_script_service/libseccomp/tests/58-live-tsync_notify.tests +11 -0
- data/ext/enterprise_script_service/libseccomp/tests/Makefile.am +31 -10
- data/ext/enterprise_script_service/libseccomp/tests/regression +6 -3
- data/ext/enterprise_script_service/libseccomp/tests/util.c +3 -3
- data/ext/enterprise_script_service/libseccomp/tools/check-syntax +1 -1
- data/ext/enterprise_script_service/libseccomp/tools/scmp_arch_detect.c +3 -0
- data/ext/enterprise_script_service/libseccomp/tools/scmp_bpf_disasm.c +4 -2
- data/ext/enterprise_script_service/libseccomp/tools/scmp_bpf_sim.c +2 -0
- data/ext/enterprise_script_service/libseccomp/tools/util.c +14 -12
- data/ext/enterprise_script_service/libseccomp/tools/util.h +7 -0
- data/ext/enterprise_script_service/mruby/.github/workflows/codeql-analysis.yml +51 -0
- data/ext/enterprise_script_service/mruby/Doxyfile +1 -1
- data/ext/enterprise_script_service/mruby/README.md +1 -1
- data/ext/enterprise_script_service/mruby/doc/guides/debugger.md +1 -1
- data/ext/enterprise_script_service/mruby/doc/limitations.md +10 -10
- data/ext/enterprise_script_service/mruby/include/mruby.h +13 -0
- data/ext/enterprise_script_service/mruby/include/mruby/boxing_word.h +0 -1
- data/ext/enterprise_script_service/mruby/include/mruby/proc.h +13 -8
- data/ext/enterprise_script_service/mruby/include/mruby/value.h +25 -29
- data/ext/enterprise_script_service/mruby/include/mruby/version.h +3 -3
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-array-ext/src/array.c +5 -8
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +2 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c +17 -10
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-complex/mrblib/complex.rb +1 -1
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-complex/src/complex.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-eval/src/eval.c +1 -1
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-fiber/src/fiber.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-inline-struct/test/inline.c +3 -4
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/src/file.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/src/file_test.c +9 -26
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-io/src/io.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +6 -8
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-method/src/method.c +3 -4
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +0 -1
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-print/src/print.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-range-ext/src/range.c +1 -3
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-rational/mrblib/rational.rb +1 -3
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-sprintf/src/sprintf.c +3 -3
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-string-ext/src/string.c +1 -2
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-struct/src/struct.c +5 -11
- data/ext/enterprise_script_service/mruby/mrbgems/mruby-time/src/time.c +5 -10
- data/ext/enterprise_script_service/mruby/mrblib/00class.rb +10 -0
- data/ext/enterprise_script_service/mruby/src/array.c +14 -11
- data/ext/enterprise_script_service/mruby/src/class.c +22 -21
- data/ext/enterprise_script_service/mruby/src/error.c +1 -2
- data/ext/enterprise_script_service/mruby/src/etc.c +0 -1
- data/ext/enterprise_script_service/mruby/src/gc.c +5 -5
- data/ext/enterprise_script_service/mruby/src/hash.c +8 -15
- data/ext/enterprise_script_service/mruby/src/kernel.c +4 -7
- data/ext/enterprise_script_service/mruby/src/numeric.c +28 -60
- data/ext/enterprise_script_service/mruby/src/object.c +11 -1
- data/ext/enterprise_script_service/mruby/src/proc.c +7 -8
- data/ext/enterprise_script_service/mruby/src/range.c +4 -12
- data/ext/enterprise_script_service/mruby/src/string.c +24 -21
- data/ext/enterprise_script_service/mruby/src/symbol.c +1 -2
- data/ext/enterprise_script_service/mruby/src/vm.c +28 -24
- data/ext/enterprise_script_service/mruby/test/t/kernel.rb +7 -0
- data/lib/script_core/version.rb +1 -1
- metadata +45 -21
- data/ext/enterprise_script_service/libseccomp/src/arch-aarch64-syscalls.c +0 -559
- data/ext/enterprise_script_service/libseccomp/src/arch-arm-syscalls.c +0 -570
- data/ext/enterprise_script_service/libseccomp/src/arch-mips-syscalls.c +0 -562
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64-syscalls.c +0 -562
- data/ext/enterprise_script_service/libseccomp/src/arch-mips64n32-syscalls.c +0 -562
- data/ext/enterprise_script_service/libseccomp/src/arch-parisc-syscalls.c +0 -542
- data/ext/enterprise_script_service/libseccomp/src/arch-ppc-syscalls.c +0 -559
- data/ext/enterprise_script_service/libseccomp/src/arch-ppc64-syscalls.c +0 -559
- data/ext/enterprise_script_service/libseccomp/src/arch-s390-syscalls.c +0 -642
- data/ext/enterprise_script_service/libseccomp/src/arch-s390x-syscalls.c +0 -642
- data/ext/enterprise_script_service/libseccomp/src/arch-x32-syscalls.c +0 -558
- data/ext/enterprise_script_service/libseccomp/src/arch-x86-syscalls.c +0 -692
- data/ext/enterprise_script_service/libseccomp/src/arch-x86_64-syscalls.c +0 -559
- data/ext/enterprise_script_service/libseccomp/tests/18-sim-basic_whitelist.tests +0 -32
- data/ext/enterprise_script_service/libseccomp/tests/34-sim-basic_blacklist.tests +0 -32
@@ -1,570 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Enhanced Seccomp ARM Syscall Table
|
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 <string.h>
|
23
|
-
|
24
|
-
#include <seccomp.h>
|
25
|
-
|
26
|
-
#include "arch.h"
|
27
|
-
#include "arch-arm.h"
|
28
|
-
|
29
|
-
#define __SCMP_NR_OABI_SYSCALL_BASE 0x900000
|
30
|
-
#define __SCMP_ARM_NR_BASE 0x0f0000
|
31
|
-
|
32
|
-
/* NOTE: we currently only support the ARM EABI, more info at the URL below:
|
33
|
-
* -> http://wiki.embeddedarm.com/wiki/EABI_vs_OABI */
|
34
|
-
#if 1
|
35
|
-
#define __SCMP_NR_BASE 0
|
36
|
-
#else
|
37
|
-
#define __SCMP_NR_BASE __SCMP_NR_OABI_SYSCALL_BASE
|
38
|
-
#endif
|
39
|
-
|
40
|
-
/* NOTE: based on Linux v5.4-rc4 */
|
41
|
-
const struct arch_syscall_def arm_syscall_table[] = { \
|
42
|
-
/* NOTE: arm_sync_file_range() and sync_file_range2() share values */
|
43
|
-
{ "_llseek", (__SCMP_NR_BASE + 140) },
|
44
|
-
{ "_newselect", (__SCMP_NR_BASE + 142) },
|
45
|
-
{ "_sysctl", (__SCMP_NR_BASE + 149) },
|
46
|
-
{ "accept", (__SCMP_NR_BASE + 285) },
|
47
|
-
{ "accept4", (__SCMP_NR_BASE + 366) },
|
48
|
-
{ "access", (__SCMP_NR_BASE + 33) },
|
49
|
-
{ "acct", (__SCMP_NR_BASE + 51) },
|
50
|
-
{ "add_key", (__SCMP_NR_BASE + 309) },
|
51
|
-
{ "adjtimex", (__SCMP_NR_BASE + 124) },
|
52
|
-
{ "afs_syscall", __PNR_afs_syscall },
|
53
|
-
{ "alarm", __PNR_alarm },
|
54
|
-
{ "arm_fadvise64_64", (__SCMP_NR_BASE + 270) },
|
55
|
-
{ "arm_sync_file_range", (__SCMP_NR_BASE + 341) },
|
56
|
-
{ "arch_prctl", __PNR_arch_prctl },
|
57
|
-
{ "bdflush", (__SCMP_NR_BASE + 134) },
|
58
|
-
{ "bind", (__SCMP_NR_BASE + 282) },
|
59
|
-
{ "bpf", (__SCMP_NR_BASE + 386) },
|
60
|
-
{ "break", __PNR_break },
|
61
|
-
{ "breakpoint", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 1)) },
|
62
|
-
{ "brk", (__SCMP_NR_BASE + 45) },
|
63
|
-
{ "cachectl", __PNR_cachectl },
|
64
|
-
{ "cacheflush", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 2)) },
|
65
|
-
{ "capget", (__SCMP_NR_BASE + 184) },
|
66
|
-
{ "capset", (__SCMP_NR_BASE + 185) },
|
67
|
-
{ "chdir", (__SCMP_NR_BASE + 12) },
|
68
|
-
{ "chmod", (__SCMP_NR_BASE + 15) },
|
69
|
-
{ "chown", (__SCMP_NR_BASE + 182) },
|
70
|
-
{ "chown32", (__SCMP_NR_BASE + 212) },
|
71
|
-
{ "chroot", (__SCMP_NR_BASE + 61) },
|
72
|
-
{ "clock_adjtime", (__SCMP_NR_BASE + 372) },
|
73
|
-
{ "clock_adjtime64", (__SCMP_NR_BASE + 405) },
|
74
|
-
{ "clock_getres", (__SCMP_NR_BASE + 264) },
|
75
|
-
{ "clock_getres_time64", (__SCMP_NR_BASE + 406) },
|
76
|
-
{ "clock_gettime", (__SCMP_NR_BASE + 263) },
|
77
|
-
{ "clock_gettime64", (__SCMP_NR_BASE + 403) },
|
78
|
-
{ "clock_nanosleep", (__SCMP_NR_BASE + 265) },
|
79
|
-
{ "clock_nanosleep_time64", (__SCMP_NR_BASE + 407) },
|
80
|
-
{ "clock_settime", (__SCMP_NR_BASE + 262) },
|
81
|
-
{ "clock_settime64", (__SCMP_NR_BASE + 404) },
|
82
|
-
{ "clone", (__SCMP_NR_BASE + 120) },
|
83
|
-
{ "clone3", (__SCMP_NR_BASE + 435) },
|
84
|
-
{ "close", (__SCMP_NR_BASE + 6) },
|
85
|
-
{ "connect", (__SCMP_NR_BASE + 283) },
|
86
|
-
{ "copy_file_range", (__SCMP_NR_BASE + 391) },
|
87
|
-
{ "creat", (__SCMP_NR_BASE + 8) },
|
88
|
-
{ "create_module", __PNR_create_module },
|
89
|
-
{ "delete_module", (__SCMP_NR_BASE + 129) },
|
90
|
-
{ "dup", (__SCMP_NR_BASE + 41) },
|
91
|
-
{ "dup2", (__SCMP_NR_BASE + 63) },
|
92
|
-
{ "dup3", (__SCMP_NR_BASE + 358) },
|
93
|
-
{ "epoll_create", (__SCMP_NR_BASE + 250) },
|
94
|
-
{ "epoll_create1", (__SCMP_NR_BASE + 357) },
|
95
|
-
{ "epoll_ctl", (__SCMP_NR_BASE + 251) },
|
96
|
-
{ "epoll_ctl_old", __PNR_epoll_ctl_old },
|
97
|
-
{ "epoll_pwait", (__SCMP_NR_BASE + 346) },
|
98
|
-
{ "epoll_wait", (__SCMP_NR_BASE + 252) },
|
99
|
-
{ "epoll_wait_old", __PNR_epoll_wait_old },
|
100
|
-
{ "eventfd", (__SCMP_NR_BASE + 351) },
|
101
|
-
{ "eventfd2", (__SCMP_NR_BASE + 356) },
|
102
|
-
{ "execve", (__SCMP_NR_BASE + 11) },
|
103
|
-
{ "execveat", (__SCMP_NR_BASE + 387) },
|
104
|
-
{ "exit", (__SCMP_NR_BASE + 1) },
|
105
|
-
{ "exit_group", (__SCMP_NR_BASE + 248) },
|
106
|
-
{ "faccessat", (__SCMP_NR_BASE + 334) },
|
107
|
-
{ "fadvise64", __PNR_fadvise64 },
|
108
|
-
{ "fadvise64_64", __PNR_fadvise64_64 },
|
109
|
-
{ "fallocate", (__SCMP_NR_BASE + 352) },
|
110
|
-
{ "fanotify_init", (__SCMP_NR_BASE + 367) },
|
111
|
-
{ "fanotify_mark", (__SCMP_NR_BASE + 368) },
|
112
|
-
{ "fchdir", (__SCMP_NR_BASE + 133) },
|
113
|
-
{ "fchmod", (__SCMP_NR_BASE + 94) },
|
114
|
-
{ "fchmodat", (__SCMP_NR_BASE + 333) },
|
115
|
-
{ "fchown", (__SCMP_NR_BASE + 95) },
|
116
|
-
{ "fchown32", (__SCMP_NR_BASE + 207) },
|
117
|
-
{ "fchownat", (__SCMP_NR_BASE + 325) },
|
118
|
-
{ "fcntl", (__SCMP_NR_BASE + 55) },
|
119
|
-
{ "fcntl64", (__SCMP_NR_BASE + 221) },
|
120
|
-
{ "fdatasync", (__SCMP_NR_BASE + 148) },
|
121
|
-
{ "fgetxattr", (__SCMP_NR_BASE + 231) },
|
122
|
-
{ "finit_module", (__SCMP_NR_BASE + 379) },
|
123
|
-
{ "flistxattr", (__SCMP_NR_BASE + 234) },
|
124
|
-
{ "flock", (__SCMP_NR_BASE + 143) },
|
125
|
-
{ "fork", (__SCMP_NR_BASE + 2) },
|
126
|
-
{ "fremovexattr", (__SCMP_NR_BASE + 237) },
|
127
|
-
{ "fsconfig", (__SCMP_NR_BASE + 431) },
|
128
|
-
{ "fsetxattr", (__SCMP_NR_BASE + 228) },
|
129
|
-
{ "fsmount", (__SCMP_NR_BASE + 432) },
|
130
|
-
{ "fsopen", (__SCMP_NR_BASE + 430) },
|
131
|
-
{ "fspick", (__SCMP_NR_BASE + 433) },
|
132
|
-
{ "fstat", (__SCMP_NR_BASE + 108) },
|
133
|
-
{ "fstat64", (__SCMP_NR_BASE + 197) },
|
134
|
-
{ "fstatat64", (__SCMP_NR_BASE + 327) },
|
135
|
-
{ "fstatfs", (__SCMP_NR_BASE + 100) },
|
136
|
-
{ "fstatfs64", (__SCMP_NR_BASE + 267) },
|
137
|
-
{ "fsync", (__SCMP_NR_BASE + 118) },
|
138
|
-
{ "ftime", __PNR_ftime },
|
139
|
-
{ "ftruncate", (__SCMP_NR_BASE + 93) },
|
140
|
-
{ "ftruncate64", (__SCMP_NR_BASE + 194) },
|
141
|
-
{ "futex", (__SCMP_NR_BASE + 240) },
|
142
|
-
{ "futex_time64", (__SCMP_NR_BASE + 422) },
|
143
|
-
{ "futimesat", (__SCMP_NR_BASE + 326) },
|
144
|
-
{ "get_kernel_syms", __PNR_get_kernel_syms },
|
145
|
-
{ "get_mempolicy", (__SCMP_NR_BASE + 320) },
|
146
|
-
{ "get_robust_list", (__SCMP_NR_BASE + 339) },
|
147
|
-
{ "get_thread_area", __PNR_get_thread_area },
|
148
|
-
{ "get_tls", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 6)) },
|
149
|
-
{ "getcpu", (__SCMP_NR_BASE + 345) },
|
150
|
-
{ "getcwd", (__SCMP_NR_BASE + 183) },
|
151
|
-
{ "getdents", (__SCMP_NR_BASE + 141) },
|
152
|
-
{ "getdents64", (__SCMP_NR_BASE + 217) },
|
153
|
-
{ "getegid", (__SCMP_NR_BASE + 50) },
|
154
|
-
{ "getegid32", (__SCMP_NR_BASE + 202) },
|
155
|
-
{ "geteuid", (__SCMP_NR_BASE + 49) },
|
156
|
-
{ "geteuid32", (__SCMP_NR_BASE + 201) },
|
157
|
-
{ "getgid", (__SCMP_NR_BASE + 47) },
|
158
|
-
{ "getgid32", (__SCMP_NR_BASE + 200) },
|
159
|
-
{ "getgroups", (__SCMP_NR_BASE + 80) },
|
160
|
-
{ "getgroups32", (__SCMP_NR_BASE + 205) },
|
161
|
-
{ "getitimer", (__SCMP_NR_BASE + 105) },
|
162
|
-
{ "getpeername", (__SCMP_NR_BASE + 287) },
|
163
|
-
{ "getpgid", (__SCMP_NR_BASE + 132) },
|
164
|
-
{ "getpgrp", (__SCMP_NR_BASE + 65) },
|
165
|
-
{ "getpid", (__SCMP_NR_BASE + 20) },
|
166
|
-
{ "getpmsg", __PNR_getpmsg },
|
167
|
-
{ "getppid", (__SCMP_NR_BASE + 64) },
|
168
|
-
{ "getpriority", (__SCMP_NR_BASE + 96) },
|
169
|
-
{ "getrandom", (__SCMP_NR_BASE + 384) },
|
170
|
-
{ "getresgid", (__SCMP_NR_BASE + 171) },
|
171
|
-
{ "getresgid32", (__SCMP_NR_BASE + 211) },
|
172
|
-
{ "getresuid", (__SCMP_NR_BASE + 165) },
|
173
|
-
{ "getresuid32", (__SCMP_NR_BASE + 209) },
|
174
|
-
{ "getrlimit", __PNR_getrlimit },
|
175
|
-
{ "getrusage", (__SCMP_NR_BASE + 77) },
|
176
|
-
{ "getsid", (__SCMP_NR_BASE + 147) },
|
177
|
-
{ "getsockname", (__SCMP_NR_BASE + 286) },
|
178
|
-
{ "getsockopt", (__SCMP_NR_BASE + 295) },
|
179
|
-
{ "gettid", (__SCMP_NR_BASE + 224) },
|
180
|
-
{ "gettimeofday", (__SCMP_NR_BASE + 78) },
|
181
|
-
{ "getuid", (__SCMP_NR_BASE + 24) },
|
182
|
-
{ "getuid32", (__SCMP_NR_BASE + 199) },
|
183
|
-
{ "getxattr", (__SCMP_NR_BASE + 229) },
|
184
|
-
{ "gtty", __PNR_gtty },
|
185
|
-
{ "idle", __PNR_idle },
|
186
|
-
{ "init_module", (__SCMP_NR_BASE + 128) },
|
187
|
-
{ "inotify_add_watch", (__SCMP_NR_BASE + 317) },
|
188
|
-
{ "inotify_init", (__SCMP_NR_BASE + 316) },
|
189
|
-
{ "inotify_init1", (__SCMP_NR_BASE + 360) },
|
190
|
-
{ "inotify_rm_watch", (__SCMP_NR_BASE + 318) },
|
191
|
-
{ "io_cancel", (__SCMP_NR_BASE + 247) },
|
192
|
-
{ "io_destroy", (__SCMP_NR_BASE + 244) },
|
193
|
-
{ "io_getevents", (__SCMP_NR_BASE + 245) },
|
194
|
-
{ "io_pgetevents", (__SCMP_NR_BASE + 399) },
|
195
|
-
{ "io_pgetevents_time64", (__SCMP_NR_BASE + 416) },
|
196
|
-
{ "io_setup", (__SCMP_NR_BASE + 243) },
|
197
|
-
{ "io_submit", (__SCMP_NR_BASE + 246) },
|
198
|
-
{ "io_uring_setup", (__SCMP_NR_BASE + 425) },
|
199
|
-
{ "io_uring_enter", (__SCMP_NR_BASE + 426) },
|
200
|
-
{ "io_uring_register", (__SCMP_NR_BASE + 427) },
|
201
|
-
{ "ioctl", (__SCMP_NR_BASE + 54) },
|
202
|
-
{ "ioperm", __PNR_ioperm },
|
203
|
-
{ "iopl", __PNR_iopl },
|
204
|
-
{ "ioprio_get", (__SCMP_NR_BASE + 315) },
|
205
|
-
{ "ioprio_set", (__SCMP_NR_BASE + 314) },
|
206
|
-
{ "ipc", __PNR_ipc },
|
207
|
-
{ "kcmp", (__SCMP_NR_BASE + 378) },
|
208
|
-
{ "kexec_file_load", (__SCMP_NR_BASE + 401) },
|
209
|
-
{ "kexec_load", (__SCMP_NR_BASE + 347) },
|
210
|
-
{ "keyctl", (__SCMP_NR_BASE + 311) },
|
211
|
-
{ "kill", (__SCMP_NR_BASE + 37) },
|
212
|
-
{ "lchown", (__SCMP_NR_BASE + 16) },
|
213
|
-
{ "lchown32", (__SCMP_NR_BASE + 198) },
|
214
|
-
{ "lgetxattr", (__SCMP_NR_BASE + 230) },
|
215
|
-
{ "link", (__SCMP_NR_BASE + 9) },
|
216
|
-
{ "linkat", (__SCMP_NR_BASE + 330) },
|
217
|
-
{ "listen", (__SCMP_NR_BASE + 284) },
|
218
|
-
{ "listxattr", (__SCMP_NR_BASE + 232) },
|
219
|
-
{ "llistxattr", (__SCMP_NR_BASE + 233) },
|
220
|
-
{ "lock", __PNR_lock },
|
221
|
-
{ "lookup_dcookie", (__SCMP_NR_BASE + 249) },
|
222
|
-
{ "lremovexattr", (__SCMP_NR_BASE + 236) },
|
223
|
-
{ "lseek", (__SCMP_NR_BASE + 19) },
|
224
|
-
{ "lsetxattr", (__SCMP_NR_BASE + 227) },
|
225
|
-
{ "lstat", (__SCMP_NR_BASE + 107) },
|
226
|
-
{ "lstat64", (__SCMP_NR_BASE + 196) },
|
227
|
-
{ "madvise", (__SCMP_NR_BASE + 220) },
|
228
|
-
{ "mbind", (__SCMP_NR_BASE + 319) },
|
229
|
-
{ "membarrier", (__SCMP_NR_BASE + 389) },
|
230
|
-
{ "memfd_create", (__SCMP_NR_BASE + 385) },
|
231
|
-
{ "migrate_pages", (__SCMP_NR_BASE + 400) },
|
232
|
-
{ "mincore", (__SCMP_NR_BASE + 219) },
|
233
|
-
{ "mkdir", (__SCMP_NR_BASE + 39) },
|
234
|
-
{ "mkdirat", (__SCMP_NR_BASE + 323) },
|
235
|
-
{ "mknod", (__SCMP_NR_BASE + 14) },
|
236
|
-
{ "mknodat", (__SCMP_NR_BASE + 324) },
|
237
|
-
{ "mlock", (__SCMP_NR_BASE + 150) },
|
238
|
-
{ "mlock2", (__SCMP_NR_BASE + 390) },
|
239
|
-
{ "mlockall", (__SCMP_NR_BASE + 152) },
|
240
|
-
{ "mmap", __PNR_mmap },
|
241
|
-
{ "mmap2", (__SCMP_NR_BASE + 192) },
|
242
|
-
{ "modify_ldt", __PNR_modify_ldt },
|
243
|
-
{ "mount", (__SCMP_NR_BASE + 21) },
|
244
|
-
{ "move_mount", (__SCMP_NR_BASE + 429) },
|
245
|
-
{ "move_pages", (__SCMP_NR_BASE + 344) },
|
246
|
-
{ "mprotect", (__SCMP_NR_BASE + 125) },
|
247
|
-
{ "mpx", __PNR_mpx },
|
248
|
-
{ "mq_getsetattr", (__SCMP_NR_BASE + 279) },
|
249
|
-
{ "mq_notify", (__SCMP_NR_BASE + 278) },
|
250
|
-
{ "mq_open", (__SCMP_NR_BASE + 274) },
|
251
|
-
{ "mq_timedreceive", (__SCMP_NR_BASE + 277) },
|
252
|
-
{ "mq_timedreceive_time64", (__SCMP_NR_BASE + 419) },
|
253
|
-
{ "mq_timedsend", (__SCMP_NR_BASE + 276) },
|
254
|
-
{ "mq_timedsend_time64", (__SCMP_NR_BASE + 418) },
|
255
|
-
{ "mq_unlink", (__SCMP_NR_BASE + 275) },
|
256
|
-
{ "mremap", (__SCMP_NR_BASE + 163) },
|
257
|
-
{ "msgctl", (__SCMP_NR_BASE + 304) },
|
258
|
-
{ "msgget", (__SCMP_NR_BASE + 303) },
|
259
|
-
{ "msgrcv", (__SCMP_NR_BASE + 302) },
|
260
|
-
{ "msgsnd", (__SCMP_NR_BASE + 301) },
|
261
|
-
{ "msync", (__SCMP_NR_BASE + 144) },
|
262
|
-
{ "multiplexer", __PNR_multiplexer },
|
263
|
-
{ "munlock", (__SCMP_NR_BASE + 151) },
|
264
|
-
{ "munlockall", (__SCMP_NR_BASE + 153) },
|
265
|
-
{ "munmap", (__SCMP_NR_BASE + 91) },
|
266
|
-
{ "name_to_handle_at", (__SCMP_NR_BASE + 370) },
|
267
|
-
{ "nanosleep", (__SCMP_NR_BASE + 162) },
|
268
|
-
{ "newfstatat", __PNR_newfstatat },
|
269
|
-
{ "nfsservctl", (__SCMP_NR_BASE + 169) },
|
270
|
-
{ "nice", (__SCMP_NR_BASE + 34) },
|
271
|
-
{ "oldfstat", __PNR_oldfstat },
|
272
|
-
{ "oldlstat", __PNR_oldlstat },
|
273
|
-
{ "oldolduname", __PNR_oldolduname },
|
274
|
-
{ "oldstat", __PNR_oldstat },
|
275
|
-
{ "olduname", __PNR_olduname },
|
276
|
-
{ "oldwait4", __PNR_oldwait4 },
|
277
|
-
{ "open", (__SCMP_NR_BASE + 5) },
|
278
|
-
{ "open_by_handle_at", (__SCMP_NR_BASE + 371) },
|
279
|
-
{ "open_tree", (__SCMP_NR_BASE + 428) },
|
280
|
-
{ "openat", (__SCMP_NR_BASE + 322) },
|
281
|
-
{ "pause", (__SCMP_NR_BASE + 29) },
|
282
|
-
{ "pciconfig_iobase", (__SCMP_NR_BASE + 271) },
|
283
|
-
{ "pciconfig_read", (__SCMP_NR_BASE + 272) },
|
284
|
-
{ "pciconfig_write", (__SCMP_NR_BASE + 273) },
|
285
|
-
{ "perf_event_open", (__SCMP_NR_BASE + 364) },
|
286
|
-
{ "personality", (__SCMP_NR_BASE + 136) },
|
287
|
-
{ "pidfd_open", (__SCMP_NR_BASE + 434) },
|
288
|
-
{ "pidfd_send_signal", (__SCMP_NR_BASE + 424) },
|
289
|
-
{ "pipe", (__SCMP_NR_BASE + 42) },
|
290
|
-
{ "pipe2", (__SCMP_NR_BASE + 359) },
|
291
|
-
{ "pivot_root", (__SCMP_NR_BASE + 218) },
|
292
|
-
{ "pkey_alloc", (__SCMP_NR_BASE + 395) },
|
293
|
-
{ "pkey_free", (__SCMP_NR_BASE + 396) },
|
294
|
-
{ "pkey_mprotect", (__SCMP_NR_BASE + 394) },
|
295
|
-
{ "poll", (__SCMP_NR_BASE + 168) },
|
296
|
-
{ "ppoll", (__SCMP_NR_BASE + 336) },
|
297
|
-
{ "ppoll_time64", (__SCMP_NR_BASE + 414) },
|
298
|
-
{ "prctl", (__SCMP_NR_BASE + 172) },
|
299
|
-
{ "pread64", (__SCMP_NR_BASE + 180) },
|
300
|
-
{ "preadv", (__SCMP_NR_BASE + 361) },
|
301
|
-
{ "preadv2", (__SCMP_NR_BASE + 392) },
|
302
|
-
{ "prlimit64", (__SCMP_NR_BASE + 369) },
|
303
|
-
{ "process_vm_readv", (__SCMP_NR_BASE + 376) },
|
304
|
-
{ "process_vm_writev", (__SCMP_NR_BASE + 377) },
|
305
|
-
{ "prof", __PNR_prof },
|
306
|
-
{ "profil", __PNR_profil },
|
307
|
-
{ "pselect6", (__SCMP_NR_BASE + 335) },
|
308
|
-
{ "pselect6_time64", (__SCMP_NR_BASE + 413) },
|
309
|
-
{ "ptrace", (__SCMP_NR_BASE + 26) },
|
310
|
-
{ "putpmsg", __PNR_putpmsg },
|
311
|
-
{ "pwrite64", (__SCMP_NR_BASE + 181) },
|
312
|
-
{ "pwritev", (__SCMP_NR_BASE + 362) },
|
313
|
-
{ "pwritev2", (__SCMP_NR_BASE + 393) },
|
314
|
-
{ "query_module", __PNR_query_module },
|
315
|
-
{ "quotactl", (__SCMP_NR_BASE + 131) },
|
316
|
-
{ "read", (__SCMP_NR_BASE + 3) },
|
317
|
-
{ "readahead", (__SCMP_NR_BASE + 225) },
|
318
|
-
{ "readdir", __PNR_readdir },
|
319
|
-
{ "readlink", (__SCMP_NR_BASE + 85) },
|
320
|
-
{ "readlinkat", (__SCMP_NR_BASE + 332) },
|
321
|
-
{ "readv", (__SCMP_NR_BASE + 145) },
|
322
|
-
{ "reboot", (__SCMP_NR_BASE + 88) },
|
323
|
-
{ "recv", (__SCMP_NR_BASE + 291) },
|
324
|
-
{ "recvfrom", (__SCMP_NR_BASE + 292) },
|
325
|
-
{ "recvmmsg", (__SCMP_NR_BASE + 365) },
|
326
|
-
{ "recvmmsg_time64", (__SCMP_NR_BASE + 417) },
|
327
|
-
{ "recvmsg", (__SCMP_NR_BASE + 297) },
|
328
|
-
{ "remap_file_pages", (__SCMP_NR_BASE + 253) },
|
329
|
-
{ "removexattr", (__SCMP_NR_BASE + 235) },
|
330
|
-
{ "rename", (__SCMP_NR_BASE + 38) },
|
331
|
-
{ "renameat", (__SCMP_NR_BASE + 329) },
|
332
|
-
{ "renameat2", (__SCMP_NR_BASE + 382) },
|
333
|
-
{ "request_key", (__SCMP_NR_BASE + 310) },
|
334
|
-
{ "restart_syscall", (__SCMP_NR_BASE + 0) },
|
335
|
-
{ "rmdir", (__SCMP_NR_BASE + 40) },
|
336
|
-
{ "rseq", (__SCMP_NR_BASE + 398) },
|
337
|
-
{ "rt_sigaction", (__SCMP_NR_BASE + 174) },
|
338
|
-
{ "rt_sigpending", (__SCMP_NR_BASE + 176) },
|
339
|
-
{ "rt_sigprocmask", (__SCMP_NR_BASE + 175) },
|
340
|
-
{ "rt_sigqueueinfo", (__SCMP_NR_BASE + 178) },
|
341
|
-
{ "rt_sigreturn", (__SCMP_NR_BASE + 173) },
|
342
|
-
{ "rt_sigsuspend", (__SCMP_NR_BASE + 179) },
|
343
|
-
{ "rt_sigtimedwait", (__SCMP_NR_BASE + 177) },
|
344
|
-
{ "rt_sigtimedwait_time64", (__SCMP_NR_BASE + 421) },
|
345
|
-
{ "rt_tgsigqueueinfo", (__SCMP_NR_BASE + 363) },
|
346
|
-
{ "rtas", __PNR_rtas },
|
347
|
-
{ "s390_guarded_storage", __PNR_s390_guarded_storage },
|
348
|
-
{ "s390_pci_mmio_read", __PNR_s390_pci_mmio_read },
|
349
|
-
{ "s390_pci_mmio_write", __PNR_s390_pci_mmio_write },
|
350
|
-
{ "s390_runtime_instr", __PNR_s390_runtime_instr },
|
351
|
-
{ "s390_sthyi", __PNR_s390_sthyi },
|
352
|
-
{ "sched_get_priority_max", (__SCMP_NR_BASE + 159) },
|
353
|
-
{ "sched_get_priority_min", (__SCMP_NR_BASE + 160) },
|
354
|
-
{ "sched_getaffinity", (__SCMP_NR_BASE + 242) },
|
355
|
-
{ "sched_getattr", (__SCMP_NR_BASE + 381) },
|
356
|
-
{ "sched_getparam", (__SCMP_NR_BASE + 155) },
|
357
|
-
{ "sched_getscheduler", (__SCMP_NR_BASE + 157) },
|
358
|
-
{ "sched_rr_get_interval", (__SCMP_NR_BASE + 161) },
|
359
|
-
{ "sched_rr_get_interval_time64", (__SCMP_NR_BASE + 423) },
|
360
|
-
{ "sched_setaffinity", (__SCMP_NR_BASE + 241) },
|
361
|
-
{ "sched_setattr", (__SCMP_NR_BASE + 380) },
|
362
|
-
{ "sched_setparam", (__SCMP_NR_BASE + 154) },
|
363
|
-
{ "sched_setscheduler", (__SCMP_NR_BASE + 156) },
|
364
|
-
{ "sched_yield", (__SCMP_NR_BASE + 158) },
|
365
|
-
{ "seccomp", (__SCMP_NR_BASE + 383) },
|
366
|
-
{ "security", __PNR_security },
|
367
|
-
{ "select", __PNR_select },
|
368
|
-
{ "semctl", (__SCMP_NR_BASE + 300) },
|
369
|
-
{ "semget", (__SCMP_NR_BASE + 299) },
|
370
|
-
{ "semop", (__SCMP_NR_BASE + 298) },
|
371
|
-
{ "semtimedop", (__SCMP_NR_BASE + 312) },
|
372
|
-
{ "semtimedop_time64", (__SCMP_NR_BASE + 420) },
|
373
|
-
{ "send", (__SCMP_NR_BASE + 289) },
|
374
|
-
{ "sendfile", (__SCMP_NR_BASE + 187) },
|
375
|
-
{ "sendfile64", (__SCMP_NR_BASE + 239) },
|
376
|
-
{ "sendmmsg", (__SCMP_NR_BASE + 374) },
|
377
|
-
{ "sendmsg", (__SCMP_NR_BASE + 296) },
|
378
|
-
{ "sendto", (__SCMP_NR_BASE + 290) },
|
379
|
-
{ "set_mempolicy", (__SCMP_NR_BASE + 321) },
|
380
|
-
{ "set_robust_list", (__SCMP_NR_BASE + 338) },
|
381
|
-
{ "set_thread_area", __PNR_set_thread_area },
|
382
|
-
{ "set_tid_address", (__SCMP_NR_BASE + 256) },
|
383
|
-
{ "set_tls", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 5)) },
|
384
|
-
{ "setdomainname", (__SCMP_NR_BASE + 121) },
|
385
|
-
{ "setfsgid", (__SCMP_NR_BASE + 139) },
|
386
|
-
{ "setfsgid32", (__SCMP_NR_BASE + 216) },
|
387
|
-
{ "setfsuid", (__SCMP_NR_BASE + 138) },
|
388
|
-
{ "setfsuid32", (__SCMP_NR_BASE + 215) },
|
389
|
-
{ "setgid", (__SCMP_NR_BASE + 46) },
|
390
|
-
{ "setgid32", (__SCMP_NR_BASE + 214) },
|
391
|
-
{ "setgroups", (__SCMP_NR_BASE + 81) },
|
392
|
-
{ "setgroups32", (__SCMP_NR_BASE + 206) },
|
393
|
-
{ "sethostname", (__SCMP_NR_BASE + 74) },
|
394
|
-
{ "setitimer", (__SCMP_NR_BASE + 104) },
|
395
|
-
{ "setns", (__SCMP_NR_BASE + 375) },
|
396
|
-
{ "setpgid", (__SCMP_NR_BASE + 57) },
|
397
|
-
{ "setpriority", (__SCMP_NR_BASE + 97) },
|
398
|
-
{ "setregid", (__SCMP_NR_BASE + 71) },
|
399
|
-
{ "setregid32", (__SCMP_NR_BASE + 204) },
|
400
|
-
{ "setresgid", (__SCMP_NR_BASE + 170) },
|
401
|
-
{ "setresgid32", (__SCMP_NR_BASE + 210) },
|
402
|
-
{ "setresuid", (__SCMP_NR_BASE + 164) },
|
403
|
-
{ "setresuid32", (__SCMP_NR_BASE + 208) },
|
404
|
-
{ "setreuid", (__SCMP_NR_BASE + 70) },
|
405
|
-
{ "setreuid32", (__SCMP_NR_BASE + 203) },
|
406
|
-
{ "setrlimit", (__SCMP_NR_BASE + 75) },
|
407
|
-
{ "setsid", (__SCMP_NR_BASE + 66) },
|
408
|
-
{ "setsockopt", (__SCMP_NR_BASE + 294) },
|
409
|
-
{ "settimeofday", (__SCMP_NR_BASE + 79) },
|
410
|
-
{ "setuid", (__SCMP_NR_BASE + 23) },
|
411
|
-
{ "setuid32", (__SCMP_NR_BASE + 213) },
|
412
|
-
{ "setxattr", (__SCMP_NR_BASE + 226) },
|
413
|
-
{ "sgetmask", __PNR_sgetmask },
|
414
|
-
{ "shmat", (__SCMP_NR_BASE + 305) },
|
415
|
-
{ "shmctl", (__SCMP_NR_BASE + 308) },
|
416
|
-
{ "shmdt", (__SCMP_NR_BASE + 306) },
|
417
|
-
{ "shmget", (__SCMP_NR_BASE + 307) },
|
418
|
-
{ "shutdown", (__SCMP_NR_BASE + 293) },
|
419
|
-
{ "sigaction", (__SCMP_NR_BASE + 67) },
|
420
|
-
{ "sigaltstack", (__SCMP_NR_BASE + 186) },
|
421
|
-
{ "signal", __PNR_signal },
|
422
|
-
{ "signalfd", (__SCMP_NR_BASE + 349) },
|
423
|
-
{ "signalfd4", (__SCMP_NR_BASE + 355) },
|
424
|
-
{ "sigpending", (__SCMP_NR_BASE + 73) },
|
425
|
-
{ "sigprocmask", (__SCMP_NR_BASE + 126) },
|
426
|
-
{ "sigreturn", (__SCMP_NR_BASE + 119) },
|
427
|
-
{ "sigsuspend", (__SCMP_NR_BASE + 72) },
|
428
|
-
{ "socket", (__SCMP_NR_BASE + 281) },
|
429
|
-
{ "socketcall", __PNR_socketcall },
|
430
|
-
{ "socketpair", (__SCMP_NR_BASE + 288) },
|
431
|
-
{ "splice", (__SCMP_NR_BASE + 340) },
|
432
|
-
{ "spu_create", __PNR_spu_create },
|
433
|
-
{ "spu_run", __PNR_spu_run },
|
434
|
-
{ "ssetmask", __PNR_ssetmask },
|
435
|
-
{ "stat", (__SCMP_NR_BASE + 106) },
|
436
|
-
{ "stat64", (__SCMP_NR_BASE + 195) },
|
437
|
-
{ "statfs", (__SCMP_NR_BASE + 99) },
|
438
|
-
{ "statfs64", (__SCMP_NR_BASE + 266) },
|
439
|
-
{ "statx", (__SCMP_NR_BASE + 397) },
|
440
|
-
{ "stime", __PNR_stime },
|
441
|
-
{ "stty", __PNR_stty },
|
442
|
-
{ "subpage_prot", __PNR_subpage_prot },
|
443
|
-
{ "swapcontext", __PNR_swapcontext },
|
444
|
-
{ "swapoff", (__SCMP_NR_BASE + 115) },
|
445
|
-
{ "swapon", (__SCMP_NR_BASE + 87) },
|
446
|
-
{ "switch_endian", __PNR_switch_endian },
|
447
|
-
{ "symlink", (__SCMP_NR_BASE + 83) },
|
448
|
-
{ "symlinkat", (__SCMP_NR_BASE + 331) },
|
449
|
-
{ "sync", (__SCMP_NR_BASE + 36) },
|
450
|
-
{ "sync_file_range", __PNR_sync_file_range },
|
451
|
-
{ "sync_file_range2", (__SCMP_NR_BASE + 341) },
|
452
|
-
{ "syncfs", (__SCMP_NR_BASE + 373) },
|
453
|
-
{ "syscall", (__PNR_syscall) },
|
454
|
-
{ "sys_debug_setcontext", __PNR_sys_debug_setcontext },
|
455
|
-
{ "sysfs", (__SCMP_NR_BASE + 135) },
|
456
|
-
{ "sysinfo", (__SCMP_NR_BASE + 116) },
|
457
|
-
{ "syslog", (__SCMP_NR_BASE + 103) },
|
458
|
-
{ "sysmips", __PNR_sysmips },
|
459
|
-
{ "tee", (__SCMP_NR_BASE + 342) },
|
460
|
-
{ "tgkill", (__SCMP_NR_BASE + 268) },
|
461
|
-
{ "time", __PNR_time },
|
462
|
-
{ "timer_create", (__SCMP_NR_BASE + 257) },
|
463
|
-
{ "timer_delete", (__SCMP_NR_BASE + 261) },
|
464
|
-
{ "timer_getoverrun", (__SCMP_NR_BASE + 260) },
|
465
|
-
{ "timer_gettime", (__SCMP_NR_BASE + 259) },
|
466
|
-
{ "timer_gettime64", (__SCMP_NR_BASE + 408) },
|
467
|
-
{ "timer_settime", (__SCMP_NR_BASE + 258) },
|
468
|
-
{ "timer_settime64", (__SCMP_NR_BASE + 409) },
|
469
|
-
{ "timerfd", __PNR_timerfd },
|
470
|
-
{ "timerfd_create", (__SCMP_NR_BASE + 350) },
|
471
|
-
{ "timerfd_gettime", (__SCMP_NR_BASE + 354) },
|
472
|
-
{ "timerfd_gettime64", (__SCMP_NR_BASE + 410) },
|
473
|
-
{ "timerfd_settime", (__SCMP_NR_BASE + 353) },
|
474
|
-
{ "timerfd_settime64", (__SCMP_NR_BASE + 411) },
|
475
|
-
{ "times", (__SCMP_NR_BASE + 43) },
|
476
|
-
{ "tkill", (__SCMP_NR_BASE + 238) },
|
477
|
-
{ "truncate", (__SCMP_NR_BASE + 92) },
|
478
|
-
{ "truncate64", (__SCMP_NR_BASE + 193) },
|
479
|
-
{ "tuxcall", __PNR_tuxcall },
|
480
|
-
{ "ugetrlimit", (__SCMP_NR_BASE + 191) },
|
481
|
-
{ "ulimit", __PNR_ulimit },
|
482
|
-
{ "umask", (__SCMP_NR_BASE + 60) },
|
483
|
-
{ "umount", __PNR_umount },
|
484
|
-
{ "umount2", (__SCMP_NR_BASE + 52) },
|
485
|
-
{ "uname", (__SCMP_NR_BASE + 122) },
|
486
|
-
{ "unlink", (__SCMP_NR_BASE + 10) },
|
487
|
-
{ "unlinkat", (__SCMP_NR_BASE + 328) },
|
488
|
-
{ "unshare", (__SCMP_NR_BASE + 337) },
|
489
|
-
{ "uselib", (__SCMP_NR_BASE + 86) },
|
490
|
-
{ "userfaultfd", (__SCMP_NR_BASE + 388) },
|
491
|
-
{ "usr26", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 3)) },
|
492
|
-
{ "usr32", (__SCMP_NR_BASE + (__SCMP_ARM_NR_BASE + 4)) },
|
493
|
-
{ "ustat", (__SCMP_NR_BASE + 62) },
|
494
|
-
{ "utime", __PNR_utime },
|
495
|
-
{ "utimensat", (__SCMP_NR_BASE + 348) },
|
496
|
-
{ "utimensat_time64", (__SCMP_NR_BASE + 412) },
|
497
|
-
{ "utimes", (__SCMP_NR_BASE + 269) },
|
498
|
-
{ "vfork", (__SCMP_NR_BASE + 190) },
|
499
|
-
{ "vhangup", (__SCMP_NR_BASE + 111) },
|
500
|
-
{ "vm86", __PNR_vm86 },
|
501
|
-
{ "vm86old", __PNR_vm86old },
|
502
|
-
{ "vmsplice", (__SCMP_NR_BASE + 343) },
|
503
|
-
{ "vserver", (__SCMP_NR_BASE + 313) },
|
504
|
-
{ "wait4", (__SCMP_NR_BASE + 114) },
|
505
|
-
{ "waitid", (__SCMP_NR_BASE + 280) },
|
506
|
-
{ "waitpid", __PNR_waitpid },
|
507
|
-
{ "write", (__SCMP_NR_BASE + 4) },
|
508
|
-
{ "writev", (__SCMP_NR_BASE + 146) },
|
509
|
-
{ NULL, __NR_SCMP_ERROR },
|
510
|
-
};
|
511
|
-
|
512
|
-
/**
|
513
|
-
* Resolve a syscall name to a number
|
514
|
-
* @param name the syscall name
|
515
|
-
*
|
516
|
-
* Resolve the given syscall name to the syscall number using the syscall table.
|
517
|
-
* Returns the syscall number on success, including negative pseudo syscall
|
518
|
-
* numbers; returns __NR_SCMP_ERROR on failure.
|
519
|
-
*
|
520
|
-
*/
|
521
|
-
int arm_syscall_resolve_name(const char *name)
|
522
|
-
{
|
523
|
-
unsigned int iter;
|
524
|
-
const struct arch_syscall_def *table = arm_syscall_table;
|
525
|
-
|
526
|
-
/* XXX - plenty of room for future improvement here */
|
527
|
-
for (iter = 0; table[iter].name != NULL; iter++) {
|
528
|
-
if (strcmp(name, table[iter].name) == 0)
|
529
|
-
return table[iter].num;
|
530
|
-
}
|
531
|
-
|
532
|
-
return __NR_SCMP_ERROR;
|
533
|
-
}
|
534
|
-
|
535
|
-
/**
|
536
|
-
* Resolve a syscall number to a name
|
537
|
-
* @param num the syscall number
|
538
|
-
*
|
539
|
-
* Resolve the given syscall number to the syscall name using the syscall table.
|
540
|
-
* Returns a pointer to the syscall name string on success, including pseudo
|
541
|
-
* syscall names; returns NULL on failure.
|
542
|
-
*
|
543
|
-
*/
|
544
|
-
const char *arm_syscall_resolve_num(int num)
|
545
|
-
{
|
546
|
-
unsigned int iter;
|
547
|
-
const struct arch_syscall_def *table = arm_syscall_table;
|
548
|
-
|
549
|
-
/* XXX - plenty of room for future improvement here */
|
550
|
-
for (iter = 0; table[iter].num != __NR_SCMP_ERROR; iter++) {
|
551
|
-
if (num == table[iter].num)
|
552
|
-
return table[iter].name;
|
553
|
-
}
|
554
|
-
|
555
|
-
return NULL;
|
556
|
-
}
|
557
|
-
|
558
|
-
/**
|
559
|
-
* Iterate through the syscall table and return the syscall mapping
|
560
|
-
* @param spot the offset into the syscall table
|
561
|
-
*
|
562
|
-
* Return the syscall mapping at position @spot or NULL on failure. This
|
563
|
-
* function should only ever be used internally by libseccomp.
|
564
|
-
*
|
565
|
-
*/
|
566
|
-
const struct arch_syscall_def *arm_syscall_iterate(unsigned int spot)
|
567
|
-
{
|
568
|
-
/* XXX - no safety checks here */
|
569
|
-
return &arm_syscall_table[spot];
|
570
|
-
}
|