[LTP] [PATCH 01/10] Add landlock syscalls definitions
Li Wang
liwang@redhat.com
Tue Jul 2 09:30:17 CEST 2024
On Mon, Jul 1, 2024 at 11:46 PM Andrea Cervesato <andrea.cervesato@suse.de>
wrote:
> From: Andrea Cervesato <andrea.cervesato@suse.com>
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
>
Reviewed-by: Li Wang <liwang@redhat.com>
---
> include/lapi/syscalls/aarch64.in | 3 +++
> include/lapi/syscalls/arc.in | 3 +++
> include/lapi/syscalls/arm.in | 3 +++
> include/lapi/syscalls/hppa.in | 3 +++
> include/lapi/syscalls/i386.in | 3 +++
> include/lapi/syscalls/ia64.in | 3 +++
> include/lapi/syscalls/mips_n32.in | 3 +++
> include/lapi/syscalls/mips_n64.in | 3 +++
> include/lapi/syscalls/mips_o32.in | 3 +++
> include/lapi/syscalls/powerpc.in | 3 +++
> include/lapi/syscalls/powerpc64.in | 3 +++
> include/lapi/syscalls/s390.in | 3 +++
> include/lapi/syscalls/s390x.in | 3 +++
> include/lapi/syscalls/sh.in | 3 +++
> include/lapi/syscalls/sparc.in | 3 +++
> include/lapi/syscalls/sparc64.in | 3 +++
> include/lapi/syscalls/x86_64.in | 3 +++
> 17 files changed, 51 insertions(+)
>
> diff --git a/include/lapi/syscalls/aarch64.in b/include/lapi/syscalls/
> aarch64.in
> index 2cb6c2d87..3e7797718 100644
> --- a/include/lapi/syscalls/aarch64.in
> +++ b/include/lapi/syscalls/aarch64.in
> @@ -296,5 +296,8 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> _sysctl 1078
> diff --git a/include/lapi/syscalls/arc.in b/include/lapi/syscalls/arc.in
> index 3e2ee9061..7fde1d263 100644
> --- a/include/lapi/syscalls/arc.in
> +++ b/include/lapi/syscalls/arc.in
> @@ -316,4 +316,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/arm.in b/include/lapi/syscalls/arm.in
> index 7bdbca533..693644f83 100644
> --- a/include/lapi/syscalls/arm.in
> +++ b/include/lapi/syscalls/arm.in
> @@ -394,4 +394,7 @@ pidfd_getfd (__NR_SYSCALL_BASE+438)
> faccessat2 (__NR_SYSCALL_BASE+439)
> epoll_pwait2 (__NR_SYSCALL_BASE+441)
> quotactl_fd (__NR_SYSCALL_BASE+443)
> +landlock_create_ruleset (__NR_SYSCALL_BASE+444)
> +landlock_add_rule (__NR_SYSCALL_BASE+445)
> +landlock_restrict_self (__NR_SYSCALL_BASE+446)
> futex_waitv (__NR_SYSCALL_BASE+449)
> diff --git a/include/lapi/syscalls/hppa.in b/include/lapi/syscalls/hppa.in
> index 8ebdafafb..60c02aff2 100644
> --- a/include/lapi/syscalls/hppa.in
> +++ b/include/lapi/syscalls/hppa.in
> @@ -43,4 +43,7 @@ close_range 436
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/i386.in b/include/lapi/syscalls/i386.in
> index 1472631c4..31ec1ecb2 100644
> --- a/include/lapi/syscalls/i386.in
> +++ b/include/lapi/syscalls/i386.in
> @@ -430,4 +430,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/ia64.in b/include/lapi/syscalls/ia64.in
> index 0ea6e9722..2e56da7f9 100644
> --- a/include/lapi/syscalls/ia64.in
> +++ b/include/lapi/syscalls/ia64.in
> @@ -343,4 +343,7 @@ pidfd_getfd 1462
> faccessat2 1463
> epoll_pwait2 1465
> quotactl_fd 1467
> +landlock_create_ruleset 1468
> +landlock_add_rule 1469
> +landlock_restrict_self 1470
> futex_waitv 1473
> diff --git a/include/lapi/syscalls/mips_n32.in b/include/lapi/syscalls/
> mips_n32.in
> index e818c9d92..5f0fe65eb 100644
> --- a/include/lapi/syscalls/mips_n32.in
> +++ b/include/lapi/syscalls/mips_n32.in
> @@ -370,4 +370,7 @@ process_madvise 6440
> epoll_pwait2 6441
> mount_setattr 6442
> quotactl_fd 6443
> +landlock_create_ruleset 6444
> +landlock_add_rule 6445
> +landlock_restrict_self 6446
> futex_waitv 6449
> diff --git a/include/lapi/syscalls/mips_n64.in b/include/lapi/syscalls/
> mips_n64.in
> index 6e15f43b3..f81c60e66 100644
> --- a/include/lapi/syscalls/mips_n64.in
> +++ b/include/lapi/syscalls/mips_n64.in
> @@ -346,4 +346,7 @@ process_madvise 5440
> epoll_pwait2 5441
> mount_setattr 5442
> quotactl_fd 5443
> +landlock_create_ruleset 5444
> +landlock_add_rule 5445
> +landlock_restrict_self 5446
> futex_waitv 5449
> diff --git a/include/lapi/syscalls/mips_o32.in b/include/lapi/syscalls/
> mips_o32.in
> index 921d5d331..c2beffb75 100644
> --- a/include/lapi/syscalls/mips_o32.in
> +++ b/include/lapi/syscalls/mips_o32.in
> @@ -416,4 +416,7 @@ process_madvise 4440
> epoll_pwait2 4441
> mount_setattr 4442
> quotactl_fd 4443
> +landlock_create_ruleset 4444
> +landlock_add_rule 4445
> +landlock_restrict_self 4446
> futex_waitv 4449
> diff --git a/include/lapi/syscalls/powerpc.in b/include/lapi/syscalls/
> powerpc.in
> index 545d9d3d6..5460e4197 100644
> --- a/include/lapi/syscalls/powerpc.in
> +++ b/include/lapi/syscalls/powerpc.in
> @@ -423,4 +423,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/powerpc64.in b/include/lapi/syscalls/
> powerpc64.in
> index 545d9d3d6..5460e4197 100644
> --- a/include/lapi/syscalls/powerpc64.in
> +++ b/include/lapi/syscalls/powerpc64.in
> @@ -423,4 +423,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/s390.in b/include/lapi/syscalls/s390.in
> index 7213ac5f8..275b27f47 100644
> --- a/include/lapi/syscalls/s390.in
> +++ b/include/lapi/syscalls/s390.in
> @@ -410,4 +410,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/s390x.in b/include/lapi/syscalls/
> s390x.in
> index 879012e2b..c200d02b2 100644
> --- a/include/lapi/syscalls/s390x.in
> +++ b/include/lapi/syscalls/s390x.in
> @@ -358,4 +358,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/sh.in b/include/lapi/syscalls/sh.in
> index 7d5192a27..6f482a77b 100644
> --- a/include/lapi/syscalls/sh.in
> +++ b/include/lapi/syscalls/sh.in
> @@ -404,4 +404,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/sparc.in b/include/lapi/syscalls/
> sparc.in
> index 91d2fb1c2..7181e80a0 100644
> --- a/include/lapi/syscalls/sparc.in
> +++ b/include/lapi/syscalls/sparc.in
> @@ -409,4 +409,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/sparc64.in b/include/lapi/syscalls/
> sparc64.in
> index 1f2fc59b7..c96ab2021 100644
> --- a/include/lapi/syscalls/sparc64.in
> +++ b/include/lapi/syscalls/sparc64.in
> @@ -374,4 +374,7 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> diff --git a/include/lapi/syscalls/x86_64.in b/include/lapi/syscalls/
> x86_64.in
> index dc61aa56e..3082ca110 100644
> --- a/include/lapi/syscalls/x86_64.in
> +++ b/include/lapi/syscalls/x86_64.in
> @@ -351,6 +351,9 @@ pidfd_getfd 438
> faccessat2 439
> epoll_pwait2 441
> quotactl_fd 443
> +landlock_create_ruleset 444
> +landlock_add_rule 445
> +landlock_restrict_self 446
> futex_waitv 449
> rt_sigaction 512
> rt_sigreturn 513
>
> --
> 2.43.0
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
>
--
Regards,
Li Wang
More information about the ltp
mailing list