summaryrefslogtreecommitdiff
path: root/src/arch-x86.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2022-04-28 15:29:07 -0400
committerPaul Moore <paul@paul-moore.com>2022-05-09 19:18:01 -0400
commit72198d99dd6fda40c1e6d0524caa61d82eddcf45 (patch)
tree671ce368521e7907a753732645c78523a355fc19 /src/arch-x86.c
parent832b65b0fe408f538cf84b361eb7261eb7243b00 (diff)
downloadlibseccomp-72198d99dd6fda40c1e6d0524caa61d82eddcf45.tar.gz
arch: basic infrastructure for tracking per-syscall/ABI kernel versions
This commit adds basic support for tracking what kernel introduced a syscall for a given arch/ABI. It does not provide any of that kernel version information, leaving only a SCMP_KV_UNDEF placeholder, nor does it attempt to do anything meaningful with this new source of information; this patch simply establishes a new syscalls.csv format so that we can start properly recording the kernel versions. Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src/arch-x86.c')
-rw-r--r--src/arch-x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch-x86.c b/src/arch-x86.c
index f086ab0..a3e10ad 100644
--- a/src/arch-x86.c
+++ b/src/arch-x86.c
@@ -48,4 +48,6 @@ const struct arch_def arch_def_x86 = {
.syscall_resolve_num_raw = x86_syscall_resolve_num,
.syscall_rewrite = abi_syscall_rewrite,
.rule_add = abi_rule_add,
+ .syscall_name_kver = x86_syscall_name_kver,
+ .syscall_num_kver = x86_syscall_num_kver,
};