diff --git a/src/basic/meson.build b/src/basic/meson.build index 034f30093d..846301fec5 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -356,11 +356,13 @@ arch_list = [ 'mipso32', 'powerpc', 'powerpc64', + 'riscv32', 'riscv64', 's390', 's390x', 'sparc', - 'x86_64'] + 'x86_64' +] run_target( 'update-syscall-tables', diff --git a/src/basic/missing_syscall_def.h b/src/basic/missing_syscall_def.h index 84b79ecc09..6a48c2a0c5 100644 --- a/src/basic/missing_syscall_def.h +++ b/src/basic/missing_syscall_def.h @@ -22,7 +22,12 @@ # error "Unknown MIPS ABI" # endif # elif defined(__powerpc__) -# elif defined(__riscv) && defined(__LP64__) +# elif defined(__riscv) +# if __riscv_xlen == 32 +# elif __riscv_xlen == 64 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # elif defined(__sparc__) # elif defined(__x86_64__) @@ -61,8 +66,14 @@ # endif # elif defined(__powerpc__) # define systemd_NR_bpf 361 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_bpf 280 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_bpf 280 +# elif __riscv_xlen == 64 +# define systemd_NR_bpf 280 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_bpf 351 # elif defined(__sparc__) @@ -119,8 +130,14 @@ assert_cc(__NR_bpf == systemd_NR_bpf); # endif # elif defined(__powerpc__) # define systemd_NR_close_range 436 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_close_range 436 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_close_range 436 +# elif __riscv_xlen == 64 +# define systemd_NR_close_range 436 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_close_range 436 # elif defined(__sparc__) @@ -177,8 +194,14 @@ assert_cc(__NR_close_range == systemd_NR_close_range); # endif # elif defined(__powerpc__) # define systemd_NR_copy_file_range 379 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_copy_file_range 285 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_copy_file_range 285 +# elif __riscv_xlen == 64 +# define systemd_NR_copy_file_range 285 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_copy_file_range 375 # elif defined(__sparc__) @@ -235,8 +258,14 @@ assert_cc(__NR_copy_file_range == systemd_NR_copy_file_range); # endif # elif defined(__powerpc__) # define systemd_NR_epoll_pwait2 441 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_epoll_pwait2 441 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_epoll_pwait2 441 +# elif __riscv_xlen == 64 +# define systemd_NR_epoll_pwait2 441 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_epoll_pwait2 441 # elif defined(__sparc__) @@ -293,8 +322,14 @@ assert_cc(__NR_epoll_pwait2 == systemd_NR_epoll_pwait2); # endif # elif defined(__powerpc__) # define systemd_NR_getrandom 359 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_getrandom 278 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_getrandom 278 +# elif __riscv_xlen == 64 +# define systemd_NR_getrandom 278 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_getrandom 349 # elif defined(__sparc__) @@ -351,8 +386,14 @@ assert_cc(__NR_getrandom == systemd_NR_getrandom); # endif # elif defined(__powerpc__) # define systemd_NR_memfd_create 360 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_memfd_create 279 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_memfd_create 279 +# elif __riscv_xlen == 64 +# define systemd_NR_memfd_create 279 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_memfd_create 350 # elif defined(__sparc__) @@ -409,8 +450,14 @@ assert_cc(__NR_memfd_create == systemd_NR_memfd_create); # endif # elif defined(__powerpc__) # define systemd_NR_mount_setattr 442 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_mount_setattr 442 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_mount_setattr 442 +# elif __riscv_xlen == 64 +# define systemd_NR_mount_setattr 442 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_mount_setattr 442 # elif defined(__sparc__) @@ -467,8 +514,14 @@ assert_cc(__NR_mount_setattr == systemd_NR_mount_setattr); # endif # elif defined(__powerpc__) # define systemd_NR_move_mount 429 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_move_mount 429 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_move_mount 429 +# elif __riscv_xlen == 64 +# define systemd_NR_move_mount 429 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_move_mount 429 # elif defined(__sparc__) @@ -525,8 +578,14 @@ assert_cc(__NR_move_mount == systemd_NR_move_mount); # endif # elif defined(__powerpc__) # define systemd_NR_name_to_handle_at 345 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_name_to_handle_at 264 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_name_to_handle_at 264 +# elif __riscv_xlen == 64 +# define systemd_NR_name_to_handle_at 264 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_name_to_handle_at 335 # elif defined(__sparc__) @@ -583,8 +642,14 @@ assert_cc(__NR_name_to_handle_at == systemd_NR_name_to_handle_at); # endif # elif defined(__powerpc__) # define systemd_NR_open_tree 428 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_open_tree 428 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_open_tree 428 +# elif __riscv_xlen == 64 +# define systemd_NR_open_tree 428 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_open_tree 428 # elif defined(__sparc__) @@ -641,8 +706,14 @@ assert_cc(__NR_open_tree == systemd_NR_open_tree); # endif # elif defined(__powerpc__) # define systemd_NR_pidfd_open 434 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_pidfd_open 434 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_pidfd_open 434 +# elif __riscv_xlen == 64 +# define systemd_NR_pidfd_open 434 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_pidfd_open 434 # elif defined(__sparc__) @@ -699,8 +770,14 @@ assert_cc(__NR_pidfd_open == systemd_NR_pidfd_open); # endif # elif defined(__powerpc__) # define systemd_NR_pidfd_send_signal 424 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_pidfd_send_signal 424 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_pidfd_send_signal 424 +# elif __riscv_xlen == 64 +# define systemd_NR_pidfd_send_signal 424 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_pidfd_send_signal 424 # elif defined(__sparc__) @@ -757,8 +834,14 @@ assert_cc(__NR_pidfd_send_signal == systemd_NR_pidfd_send_signal); # endif # elif defined(__powerpc__) # define systemd_NR_pkey_mprotect 386 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_pkey_mprotect 288 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_pkey_mprotect 288 +# elif __riscv_xlen == 64 +# define systemd_NR_pkey_mprotect 288 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_pkey_mprotect 384 # elif defined(__sparc__) @@ -815,8 +898,14 @@ assert_cc(__NR_pkey_mprotect == systemd_NR_pkey_mprotect); # endif # elif defined(__powerpc__) # define systemd_NR_renameat2 357 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_renameat2 276 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_renameat2 276 +# elif __riscv_xlen == 64 +# define systemd_NR_renameat2 276 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_renameat2 347 # elif defined(__sparc__) @@ -873,8 +962,14 @@ assert_cc(__NR_renameat2 == systemd_NR_renameat2); # endif # elif defined(__powerpc__) # define systemd_NR_setns 350 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_setns 268 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_setns 268 +# elif __riscv_xlen == 64 +# define systemd_NR_setns 268 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_setns 339 # elif defined(__sparc__) @@ -931,8 +1026,14 @@ assert_cc(__NR_setns == systemd_NR_setns); # endif # elif defined(__powerpc__) # define systemd_NR_statx 383 -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_statx 291 +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_statx 291 +# elif __riscv_xlen == 64 +# define systemd_NR_statx 291 +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_statx 379 # elif defined(__sparc__) diff --git a/src/basic/missing_syscalls.py b/src/basic/missing_syscalls.py index d3c68dc067..19f9726d4e 100644 --- a/src/basic/missing_syscalls.py +++ b/src/basic/missing_syscalls.py @@ -73,8 +73,14 @@ DEF_TEMPLATE_B = '''\ # endif # elif defined(__powerpc__) # define systemd_NR_{syscall} {nr_powerpc} -# elif defined(__riscv) && defined(__LP64__) -# define systemd_NR_{syscall} {nr_riscv64} +# elif defined(__riscv) +# if __riscv_xlen == 32 +# define systemd_NR_{syscall} {nr_riscv32} +# elif __riscv_xlen == 64 +# define systemd_NR_{syscall} {nr_riscv64} +# else +# error "Unknown RISC-V ABI" +# endif # elif defined(__s390__) # define systemd_NR_{syscall} {nr_s390} # elif defined(__sparc__) diff --git a/src/basic/syscall-list.txt b/src/basic/syscall-list.txt index 024655799e..b445063fcd 100644 --- a/src/basic/syscall-list.txt +++ b/src/basic/syscall-list.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load keyctl kill +landlock_add_rule +landlock_create_ruleset +landlock_restrict_self lchown lchown32 lgetxattr diff --git a/src/basic/syscalls-alpha.txt b/src/basic/syscalls-alpha.txt index 8c2e641f04..3bcc357075 100644 --- a/src/basic/syscalls-alpha.txt +++ b/src/basic/syscalls-alpha.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 448 keyctl 441 kill 37 +landlock_add_rule 555 +landlock_create_ruleset 554 +landlock_restrict_self 556 lchown 208 lchown32 lgetxattr 386 @@ -401,7 +404,7 @@ pwritev 491 pwritev2 521 query_module 347 quotactl 148 -quotactl_path 553 +quotactl_path read 3 readahead 379 readdir diff --git a/src/basic/syscalls-arc.txt b/src/basic/syscalls-arc.txt index e72b2446f7..e4204fa0f2 100644 --- a/src/basic/syscalls-arc.txt +++ b/src/basic/syscalls-arc.txt @@ -182,6 +182,9 @@ kexec_file_load 294 kexec_load 104 keyctl 219 kill 129 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown lchown32 lgetxattr 9 @@ -401,7 +404,7 @@ pwritev 70 pwritev2 287 query_module quotactl 60 -quotactl_path 443 +quotactl_path read 63 readahead 213 readdir diff --git a/src/basic/syscalls-arm.txt b/src/basic/syscalls-arm.txt index 03af93686a..a4847a18b3 100644 --- a/src/basic/syscalls-arm.txt +++ b/src/basic/syscalls-arm.txt @@ -182,6 +182,9 @@ kexec_file_load 401 kexec_load 347 keyctl 311 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 198 lgetxattr 230 @@ -401,7 +404,7 @@ pwritev 362 pwritev2 393 query_module quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 225 readdir diff --git a/src/basic/syscalls-arm64.txt b/src/basic/syscalls-arm64.txt index 163470a4e7..ef76ffa96f 100644 --- a/src/basic/syscalls-arm64.txt +++ b/src/basic/syscalls-arm64.txt @@ -182,6 +182,9 @@ kexec_file_load 294 kexec_load 104 keyctl 219 kill 129 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown lchown32 lgetxattr 9 @@ -401,7 +404,7 @@ pwritev 70 pwritev2 287 query_module quotactl 60 -quotactl_path 443 +quotactl_path read 63 readahead 213 readdir diff --git a/src/basic/syscalls-i386.txt b/src/basic/syscalls-i386.txt index 92e2925099..baacb9b7a3 100644 --- a/src/basic/syscalls-i386.txt +++ b/src/basic/syscalls-i386.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 283 keyctl 288 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 198 lgetxattr 230 @@ -401,7 +404,7 @@ pwritev 334 pwritev2 379 query_module 167 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 225 readdir 89 diff --git a/src/basic/syscalls-ia64.txt b/src/basic/syscalls-ia64.txt index 65580709d8..c37ea6f88f 100644 --- a/src/basic/syscalls-ia64.txt +++ b/src/basic/syscalls-ia64.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 1268 keyctl 1273 kill 1053 +landlock_add_rule 1469 +landlock_create_ruleset 1468 +landlock_restrict_self 1470 lchown 1124 lchown32 lgetxattr 1221 @@ -401,7 +404,7 @@ pwritev 1320 pwritev2 1349 query_module quotactl 1137 -quotactl_path 1467 +quotactl_path read 1026 readahead 1216 readdir diff --git a/src/basic/syscalls-m68k.txt b/src/basic/syscalls-m68k.txt index 9075ea2d72..7522b82e1f 100644 --- a/src/basic/syscalls-m68k.txt +++ b/src/basic/syscalls-m68k.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 313 keyctl 281 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 182 lchown32 212 lgetxattr 227 @@ -401,7 +404,7 @@ pwritev 330 pwritev2 378 query_module 167 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 240 readdir 89 diff --git a/src/basic/syscalls-mips64.txt b/src/basic/syscalls-mips64.txt index 21021305ac..6b85975eea 100644 --- a/src/basic/syscalls-mips64.txt +++ b/src/basic/syscalls-mips64.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 5270 keyctl 5241 kill 5060 +landlock_add_rule 5445 +landlock_create_ruleset 5444 +landlock_restrict_self 5446 lchown 5092 lchown32 lgetxattr 5184 @@ -401,7 +404,7 @@ pwritev 5290 pwritev2 5322 query_module 5171 quotactl 5172 -quotactl_path 5443 +quotactl_path read 5000 readahead 5179 readdir diff --git a/src/basic/syscalls-mips64n32.txt b/src/basic/syscalls-mips64n32.txt index aaa573d81a..a4c12cc442 100644 --- a/src/basic/syscalls-mips64n32.txt +++ b/src/basic/syscalls-mips64n32.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 6274 keyctl 6245 kill 6060 +landlock_add_rule 6445 +landlock_create_ruleset 6444 +landlock_restrict_self 6446 lchown 6092 lchown32 lgetxattr 6184 @@ -401,7 +404,7 @@ pwritev 6294 pwritev2 6326 query_module 6171 quotactl 6172 -quotactl_path 6443 +quotactl_path read 6000 readahead 6179 readdir diff --git a/src/basic/syscalls-mipso32.txt b/src/basic/syscalls-mipso32.txt index ee3d53e923..fcebabab11 100644 --- a/src/basic/syscalls-mipso32.txt +++ b/src/basic/syscalls-mipso32.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 4311 keyctl 4282 kill 4037 +landlock_add_rule 4445 +landlock_create_ruleset 4444 +landlock_restrict_self 4446 lchown 4016 lchown32 lgetxattr 4228 @@ -401,7 +404,7 @@ pwritev 4331 pwritev2 4362 query_module 4187 quotactl 4131 -quotactl_path 4443 +quotactl_path read 4003 readahead 4223 readdir 4089 diff --git a/src/basic/syscalls-powerpc.txt b/src/basic/syscalls-powerpc.txt index 236849fd96..3185562726 100644 --- a/src/basic/syscalls-powerpc.txt +++ b/src/basic/syscalls-powerpc.txt @@ -182,6 +182,9 @@ kexec_file_load 382 kexec_load 268 keyctl 271 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 lgetxattr 213 @@ -401,7 +404,7 @@ pwritev 321 pwritev2 381 query_module 166 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 191 readdir 89 diff --git a/src/basic/syscalls-powerpc64.txt b/src/basic/syscalls-powerpc64.txt index b5e50723e0..e940737781 100644 --- a/src/basic/syscalls-powerpc64.txt +++ b/src/basic/syscalls-powerpc64.txt @@ -182,6 +182,9 @@ kexec_file_load 382 kexec_load 268 keyctl 271 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 lgetxattr 213 @@ -401,7 +404,7 @@ pwritev 321 pwritev2 381 query_module 166 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 191 readdir 89 diff --git a/src/basic/syscalls-riscv32.txt b/src/basic/syscalls-riscv32.txt new file mode 100644 index 0000000000..8fe0d5ea88 --- /dev/null +++ b/src/basic/syscalls-riscv32.txt @@ -0,0 +1,598 @@ +_llseek +_newselect +_sysctl +accept 202 +accept4 242 +access +acct 89 +add_key 217 +adjtimex +alarm +arc_gettls +arc_settls +arc_usr_cmpxchg +arch_prctl +arm_fadvise64_64 +atomic_barrier +atomic_cmpxchg_32 +bdflush +bind 200 +bpf 280 +brk 214 +cachectl +cacheflush +capget 90 +capset 91 +chdir 49 +chmod +chown +chown32 +chroot 51 +clock_adjtime +clock_adjtime64 405 +clock_getres +clock_getres_time64 406 +clock_gettime +clock_gettime64 403 +clock_nanosleep +clock_nanosleep_time64 407 +clock_settime +clock_settime64 404 +clone 220 +clone2 +clone3 +close 57 +close_range 436 +connect 203 +copy_file_range 285 +creat +create_module +delete_module 106 +dipc +dup 23 +dup2 +dup3 24 +epoll_create +epoll_create1 20 +epoll_ctl 21 +epoll_ctl_old +epoll_pwait 22 +epoll_pwait2 441 +epoll_wait +epoll_wait_old +eventfd +eventfd2 19 +exec_with_loader +execv +execve 221 +execveat 281 +exit 93 +exit_group 94 +faccessat 48 +faccessat2 439 +fadvise64 +fadvise64_64 223 +fallocate 47 +fanotify_init 262 +fanotify_mark 263 +fchdir 50 +fchmod 52 +fchmodat 53 +fchown 55 +fchown32 +fchownat 54 +fcntl +fcntl64 25 +fdatasync 83 +fgetxattr 10 +finit_module 273 +flistxattr 13 +flock 32 +fork +fp_udfiex_crtl +fremovexattr 16 +fsconfig 431 +fsetxattr 7 +fsmount 432 +fsopen 430 +fspick 433 +fstat +fstat64 +fstatat64 +fstatfs +fstatfs64 44 +fsync 82 +ftruncate +ftruncate64 46 +futex +futex_time64 422 +futimesat +get_kernel_syms +get_mempolicy 236 +get_robust_list 100 +get_thread_area +getcpu 168 +getcwd 17 +getdents +getdents64 61 +getdomainname +getdtablesize +getegid 177 +getegid32 +geteuid 175 +geteuid32 +getgid 176 +getgid32 +getgroups 158 +getgroups32 +gethostname +getitimer 102 +getpagesize +getpeername 205 +getpgid 155 +getpgrp +getpid 172 +getpmsg +getppid 173 +getpriority 141 +getrandom 278 +getresgid 150 +getresgid32 +getresuid 148 +getresuid32 +getrlimit +getrusage 165 +getsid 156 +getsockname 204 +getsockopt 209 +gettid 178 +gettimeofday +getuid 174 +getuid32 +getunwind +getxattr 8 +getxgid +getxpid +getxuid +idle +init_module 105 +inotify_add_watch 27 +inotify_init +inotify_init1 26 +inotify_rm_watch 28 +io_cancel 3 +io_destroy 1 +io_getevents +io_pgetevents +io_pgetevents_time64 416 +io_setup 0 +io_submit 2 +io_uring_enter 426 +io_uring_register 427 +io_uring_setup 425 +ioctl 29 +ioperm +iopl +ioprio_get 31 +ioprio_set 30 +ipc +kcmp 272 +kern_features +kexec_file_load 294 +kexec_load 104 +keyctl 219 +kill 129 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 +lchown +lchown32 +lgetxattr 9 +link +linkat 37 +listen 201 +listxattr 11 +llistxattr 12 +lookup_dcookie 18 +lremovexattr 15 +lseek +lsetxattr 6 +lstat +lstat64 +madvise 233 +mbind 235 +membarrier 283 +memfd_create 279 +memory_ordering +migrate_pages 238 +mincore 232 +mkdir +mkdirat 34 +mknod +mknodat 33 +mlock 228 +mlock2 284 +mlockall 230 +mmap +mmap2 222 +modify_ldt +mount 40 +mount_setattr 442 +move_mount 429 +move_pages 239 +mprotect 226 +mq_getsetattr 185 +mq_notify 184 +mq_open 180 +mq_timedreceive +mq_timedreceive_time64 419 +mq_timedsend +mq_timedsend_time64 418 +mq_unlink 181 +mremap 216 +msgctl 187 +msgget 186 +msgrcv 188 +msgsnd 189 +msync 227 +multiplexer +munlock 229 +munlockall 231 +munmap 215 +name_to_handle_at 264 +nanosleep +newfstatat +nfsservctl 42 +nice +old_adjtimex +old_getpagesize +oldfstat +oldlstat +oldolduname +oldstat +oldumount +olduname +open +open_by_handle_at 265 +open_tree 428 +openat 56 +openat2 437 +or1k_atomic +osf_adjtime +osf_afs_syscall +osf_alt_plock +osf_alt_setsid +osf_alt_sigpending +osf_asynch_daemon +osf_audcntl +osf_audgen +osf_chflags +osf_execve +osf_exportfs +osf_fchflags +osf_fdatasync +osf_fpathconf +osf_fstat +osf_fstatfs +osf_fstatfs64 +osf_fuser +osf_getaddressconf +osf_getdirentries +osf_getdomainname +osf_getfh +osf_getfsstat +osf_gethostid +osf_getitimer +osf_getlogin +osf_getmnt +osf_getrusage +osf_getsysinfo +osf_gettimeofday +osf_kloadcall +osf_kmodcall +osf_lstat +osf_memcntl +osf_mincore +osf_mount +osf_mremap +osf_msfs_syscall +osf_msleep +osf_mvalid +osf_mwakeup +osf_naccept +osf_nfssvc +osf_ngetpeername +osf_ngetsockname +osf_nrecvfrom +osf_nrecvmsg +osf_nsendmsg +osf_ntp_adjtime +osf_ntp_gettime +osf_old_creat +osf_old_fstat +osf_old_getpgrp +osf_old_killpg +osf_old_lstat +osf_old_open +osf_old_sigaction +osf_old_sigblock +osf_old_sigreturn +osf_old_sigsetmask +osf_old_sigvec +osf_old_stat +osf_old_vadvise +osf_old_vtrace +osf_old_wait +osf_oldquota +osf_pathconf +osf_pid_block +osf_pid_unblock +osf_plock +osf_priocntlset +osf_profil +osf_proplist_syscall +osf_reboot +osf_revoke +osf_sbrk +osf_security +osf_select +osf_set_program_attributes +osf_set_speculative +osf_sethostid +osf_setitimer +osf_setlogin +osf_setsysinfo +osf_settimeofday +osf_shmat +osf_signal +osf_sigprocmask +osf_sigsendset +osf_sigstack +osf_sigwaitprim +osf_sstk +osf_stat +osf_statfs +osf_statfs64 +osf_subsys_info +osf_swapctl +osf_swapon +osf_syscall +osf_sysinfo +osf_table +osf_uadmin +osf_usleep_thread +osf_uswitch +osf_utc_adjtime +osf_utc_gettime +osf_utimes +osf_utsname +osf_wait4 +osf_waitid +pause +pciconfig_iobase +pciconfig_read +pciconfig_write +perf_event_open 241 +perfctr +perfmonctl +personality 92 +pidfd_getfd 438 +pidfd_open 434 +pidfd_send_signal 424 +pipe +pipe2 59 +pivot_root 41 +pkey_alloc 289 +pkey_free 290 +pkey_mprotect 288 +poll +ppoll +ppoll_time64 414 +prctl 167 +pread64 67 +preadv 69 +preadv2 286 +prlimit64 261 +process_madvise 440 +process_vm_readv 270 +process_vm_writev 271 +pselect6 +pselect6_time64 413 +ptrace 117 +pwrite64 68 +pwritev 70 +pwritev2 287 +query_module +quotactl 60 +quotactl_path +read 63 +readahead 213 +readdir +readlink +readlinkat 78 +readv 65 +reboot 142 +recv +recvfrom 207 +recvmmsg +recvmmsg_time64 417 +recvmsg 212 +remap_file_pages 234 +removexattr 14 +rename +renameat +renameat2 276 +request_key 218 +restart_syscall 128 +riscv_flush_icache 259 +rmdir +rseq 293 +rt_sigaction 134 +rt_sigpending 136 +rt_sigprocmask 135 +rt_sigqueueinfo 138 +rt_sigreturn 139 +rt_sigsuspend 133 +rt_sigtimedwait +rt_sigtimedwait_time64 421 +rt_tgsigqueueinfo 240 +rtas +s390_guarded_storage +s390_pci_mmio_read +s390_pci_mmio_write +s390_runtime_instr +s390_sthyi +sched_get_affinity +sched_get_priority_max 125 +sched_get_priority_min 126 +sched_getaffinity 123 +sched_getattr 275 +sched_getparam 121 +sched_getscheduler 120 +sched_rr_get_interval +sched_rr_get_interval_time64 423 +sched_set_affinity +sched_setaffinity 122 +sched_setattr 274 +sched_setparam 118 +sched_setscheduler 119 +sched_yield 124 +seccomp 277 +select +semctl 191 +semget 190 +semop 193 +semtimedop +semtimedop_time64 420 +send +sendfile +sendfile64 71 +sendmmsg 269 +sendmsg 211 +sendto 206 +set_mempolicy 237 +set_robust_list 99 +set_thread_area +set_tid_address 96 +setdomainname 162 +setfsgid 152 +setfsgid32 +setfsuid 151 +setfsuid32 +setgid 144 +setgid32 +setgroups 159 +setgroups32 +sethae +sethostname 161 +setitimer 103 +setns 268 +setpgid 154 +setpgrp +setpriority 140 +setregid 143 +setregid32 +setresgid 149 +setresgid32 +setresuid 147 +setresuid32 +setreuid 145 +setreuid32 +setrlimit +setsid 157 +setsockopt 208 +settimeofday +setuid 146 +setuid32 +setxattr 5 +sgetmask +shmat 196 +shmctl 195 +shmdt 197 +shmget 194 +shutdown 210 +sigaction +sigaltstack 132 +signal +signalfd +signalfd4 74 +sigpending +sigprocmask +sigreturn +sigsuspend +socket 198 +socketcall +socketpair 199 +splice 76 +spu_create +spu_run +ssetmask +stat +stat64 +statfs +statfs64 43 +statx 291 +stime +subpage_prot +swapcontext +swapoff 225 +swapon 224 +switch_endian +symlink +symlinkat 36 +sync 81 +sync_file_range 84 +sync_file_range2 +syncfs 267 +sys_debug_setcontext +syscall +sysfs +sysinfo 179 +syslog 116 +sysmips +tee 77 +tgkill 131 +time +timer_create 107 +timer_delete 111 +timer_getoverrun 109 +timer_gettime +timer_gettime64 408 +timer_settime +timer_settime64 409 +timerfd +timerfd_create 85 +timerfd_gettime +timerfd_gettime64 410 +timerfd_settime +timerfd_settime64 411 +times 153 +tkill 130 +truncate +truncate64 45 +ugetrlimit +umask 166 +umount +umount2 39 +uname 160 +unlink +unlinkat 35 +unshare 97 +uselib +userfaultfd 282 +ustat +utime +utimensat +utimensat_time64 412 +utimes +utrap_install +vfork +vhangup 58 +vm86 +vm86old +vmsplice 75 +wait4 +waitid 95 +waitpid +write 64 +writev 66 diff --git a/src/basic/syscalls-riscv64.txt b/src/basic/syscalls-riscv64.txt index 81f4f0b90b..e021ea79b4 100644 --- a/src/basic/syscalls-riscv64.txt +++ b/src/basic/syscalls-riscv64.txt @@ -182,6 +182,9 @@ kexec_file_load 294 kexec_load 104 keyctl 219 kill 129 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown lchown32 lgetxattr 9 @@ -401,7 +404,7 @@ pwritev 70 pwritev2 287 query_module quotactl 60 -quotactl_path 443 +quotactl_path read 63 readahead 213 readdir diff --git a/src/basic/syscalls-s390.txt b/src/basic/syscalls-s390.txt index d2f03946ca..5d3b73e6c0 100644 --- a/src/basic/syscalls-s390.txt +++ b/src/basic/syscalls-s390.txt @@ -182,6 +182,9 @@ kexec_file_load 381 kexec_load 277 keyctl 280 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 198 lgetxattr 228 @@ -401,7 +404,7 @@ pwritev 329 pwritev2 377 query_module 167 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 222 readdir 89 diff --git a/src/basic/syscalls-s390x.txt b/src/basic/syscalls-s390x.txt index 57dae876e9..62a2ea4fae 100644 --- a/src/basic/syscalls-s390x.txt +++ b/src/basic/syscalls-s390x.txt @@ -182,6 +182,9 @@ kexec_file_load 381 kexec_load 277 keyctl 280 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 198 lchown32 lgetxattr 228 @@ -401,7 +404,7 @@ pwritev 329 pwritev2 377 query_module 167 quotactl 131 -quotactl_path 443 +quotactl_path read 3 readahead 222 readdir 89 diff --git a/src/basic/syscalls-sparc.txt b/src/basic/syscalls-sparc.txt index 3ee81fe86c..fe41bf97e8 100644 --- a/src/basic/syscalls-sparc.txt +++ b/src/basic/syscalls-sparc.txt @@ -182,6 +182,9 @@ kexec_file_load kexec_load 306 keyctl 283 kill 37 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 16 lchown32 31 lgetxattr 173 @@ -401,7 +404,7 @@ pwritev 325 pwritev2 359 query_module 184 quotactl 165 -quotactl_path 443 +quotactl_path read 3 readahead 205 readdir 204 diff --git a/src/basic/syscalls-x86_64.txt b/src/basic/syscalls-x86_64.txt index 57df8a5247..d2ac17ab46 100644 --- a/src/basic/syscalls-x86_64.txt +++ b/src/basic/syscalls-x86_64.txt @@ -182,6 +182,9 @@ kexec_file_load 320 kexec_load 246 keyctl 250 kill 62 +landlock_add_rule 445 +landlock_create_ruleset 444 +landlock_restrict_self 446 lchown 94 lchown32 lgetxattr 192 @@ -401,7 +404,7 @@ pwritev 296 pwritev2 328 query_module 178 quotactl 179 -quotactl_path 443 +quotactl_path read 0 readahead 187 readdir