Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Upcoming Release

## Added
- Support for riscv64 architecture is added
- [[#72]](https://github.com/rust-vmm/seccompiler/pull/72): Introduce RISC-V
64-bit architecture support.

## Changed
- [[#78]](https://github.com/rust-vmm/seccompiler/pull/78): Update
`syscall_tables` from v6.12 kernel source

# v0.4.0

Expand Down
28 changes: 25 additions & 3 deletions src/syscall_table/aarch64.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause

// This file is auto-generated by `tools/generate_syscall_tables`.
// Do NOT manually edit!
// Generated on: Mon Jan 17 17:30:54 UTC 2022
// Kernel version: 5.10
// Generated on: Sat Dec 14 01:47:02 PM CST 2024
// Kernel version: 6.12

use std::collections::HashMap;

Expand All @@ -18,6 +18,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("bind", 200),
("bpf", 280),
("brk", 214),
("cachestat", 451),
("capget", 90),
("capset", 91),
("chdir", 49),
Expand All @@ -39,6 +40,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("epoll_create1", 20),
("epoll_ctl", 21),
("epoll_pwait", 22),
("epoll_pwait2", 441),
("eventfd2", 19),
("execve", 221),
("execveat", 281),
Expand All @@ -53,6 +55,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("fchdir", 50),
("fchmod", 52),
("fchmodat", 53),
("fchmodat2", 452),
("fchown", 55),
("fchownat", 54),
("fcntl", 25),
Expand All @@ -72,6 +75,10 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("fsync", 82),
("ftruncate", 46),
("futex", 98),
("futex_requeue", 456),
("futex_wait", 455),
("futex_waitv", 449),
("futex_wake", 454),
("getcpu", 168),
("getcwd", 17),
("getdents64", 61),
Expand Down Expand Up @@ -120,19 +127,28 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("kexec_load", 104),
("keyctl", 219),
("kill", 129),
("landlock_add_rule", 445),
("landlock_create_ruleset", 444),
("landlock_restrict_self", 446),
("lgetxattr", 9),
("linkat", 37),
("listen", 201),
("listmount", 458),
("listxattr", 11),
("llistxattr", 12),
("lookup_dcookie", 18),
("lremovexattr", 15),
("lseek", 62),
("lsetxattr", 6),
("lsm_get_self_attr", 459),
("lsm_list_modules", 461),
("lsm_set_self_attr", 460),
("madvise", 233),
("map_shadow_stack", 453),
("mbind", 235),
("membarrier", 283),
("memfd_create", 279),
("memfd_secret", 447),
("migrate_pages", 238),
("mincore", 232),
("mkdirat", 34),
Expand All @@ -142,6 +158,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("mlockall", 230),
("mmap", 222),
("mount", 40),
("mount_setattr", 442),
("move_mount", 429),
("move_pages", 239),
("mprotect", 226),
Expand All @@ -152,6 +169,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("mq_timedsend", 182),
("mq_unlink", 181),
("mremap", 216),
("mseal", 462),
("msgctl", 187),
("msgget", 186),
("msgrcv", 188),
Expand Down Expand Up @@ -185,6 +203,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("preadv2", 286),
("prlimit64", 261),
("process_madvise", 440),
("process_mrelease", 448),
("process_vm_readv", 270),
("process_vm_writev", 271),
("pselect6", 72),
Expand All @@ -193,6 +212,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("pwritev", 70),
("pwritev2", 287),
("quotactl", 60),
("quotactl_fd", 443),
("read", 63),
("readahead", 213),
("readlinkat", 78),
Expand Down Expand Up @@ -245,6 +265,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("sethostname", 161),
("setitimer", 103),
("set_mempolicy", 237),
("set_mempolicy_home_node", 450),
("setns", 268),
("setpgid", 154),
("setpriority", 140),
Expand All @@ -271,6 +292,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("socketpair", 199),
("splice", 76),
("statfs", 43),
("statmount", 457),
("statx", 291),
("swapoff", 225),
("swapon", 224),
Expand Down
28 changes: 26 additions & 2 deletions src/syscall_table/riscv64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

// This file is auto-generated by `tools/generate_syscall_tables`.
// Do NOT manually edit!
// Generated on: Thu Dec 5 19:14:32 HKT 2024
// Kernel version: 5.10
// Generated on: Sat Dec 14 01:47:02 PM CST 2024
// Kernel version: 6.12

use std::collections::HashMap;

Expand All @@ -18,6 +18,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("bind", 200),
("bpf", 280),
("brk", 214),
("cachestat", 451),
("capget", 90),
("capset", 91),
("chdir", 49),
Expand All @@ -39,6 +40,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("epoll_create1", 20),
("epoll_ctl", 21),
("epoll_pwait", 22),
("epoll_pwait2", 441),
("eventfd2", 19),
("execve", 221),
("execveat", 281),
Expand All @@ -53,6 +55,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("fchdir", 50),
("fchmod", 52),
("fchmodat", 53),
("fchmodat2", 452),
("fchown", 55),
("fchownat", 54),
("fcntl", 25),
Expand All @@ -72,6 +75,10 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("fsync", 82),
("ftruncate", 46),
("futex", 98),
("futex_requeue", 456),
("futex_wait", 455),
("futex_waitv", 449),
("futex_wake", 454),
("getcpu", 168),
("getcwd", 17),
("getdents64", 61),
Expand Down Expand Up @@ -120,19 +127,28 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("kexec_load", 104),
("keyctl", 219),
("kill", 129),
("landlock_add_rule", 445),
("landlock_create_ruleset", 444),
("landlock_restrict_self", 446),
("lgetxattr", 9),
("linkat", 37),
("listen", 201),
("listmount", 458),
("listxattr", 11),
("llistxattr", 12),
("lookup_dcookie", 18),
("lremovexattr", 15),
("lseek", 62),
("lsetxattr", 6),
("lsm_get_self_attr", 459),
("lsm_list_modules", 461),
("lsm_set_self_attr", 460),
("madvise", 233),
("map_shadow_stack", 453),
("mbind", 235),
("membarrier", 283),
("memfd_create", 279),
("memfd_secret", 447),
("migrate_pages", 238),
("mincore", 232),
("mkdirat", 34),
Expand All @@ -142,6 +158,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("mlockall", 230),
("mmap", 222),
("mount", 40),
("mount_setattr", 442),
("move_mount", 429),
("move_pages", 239),
("mprotect", 226),
Expand All @@ -152,6 +169,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("mq_timedsend", 182),
("mq_unlink", 181),
("mremap", 216),
("mseal", 462),
("msgctl", 187),
("msgget", 186),
("msgrcv", 188),
Expand Down Expand Up @@ -185,6 +203,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("preadv2", 286),
("prlimit64", 261),
("process_madvise", 440),
("process_mrelease", 448),
("process_vm_readv", 270),
("process_vm_writev", 271),
("pselect6", 72),
Expand All @@ -193,6 +212,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("pwritev", 70),
("pwritev2", 287),
("quotactl", 60),
("quotactl_fd", 443),
("read", 63),
("readahead", 213),
("readlinkat", 78),
Expand All @@ -206,6 +226,8 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("renameat2", 276),
("request_key", 218),
("restart_syscall", 128),
("riscv_flush_icache", 259),
("riscv_hwprobe", 258),
("rseq", 293),
("rt_sigaction", 134),
("rt_sigpending", 136),
Expand Down Expand Up @@ -244,6 +266,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("sethostname", 161),
("setitimer", 103),
("set_mempolicy", 237),
("set_mempolicy_home_node", 450),
("setns", 268),
("setpgid", 154),
("setpriority", 140),
Expand All @@ -270,6 +293,7 @@ pub(crate) fn make_syscall_table() -> HashMap<&'static str, i64> {
("socketpair", 199),
("splice", 76),
("statfs", 43),
("statmount", 457),
("statx", 291),
("swapoff", 225),
("swapon", 224),
Expand Down
Loading