From b4a882b1b190ef548fc6dc33ae73757b4fd7cba7 Mon Sep 17 00:00:00 2001 From: Lain Yang Date: Sun, 15 Sep 2024 02:08:53 +0000 Subject: [PATCH] Bump Linux kernel ver to 6.10, brings new syscall `mseal()` (#54) --- src/arch/aarch64.rs | 4 +++- src/arch/arm.rs | 4 +++- src/arch/loongarch64.rs | 4 +++- src/arch/mips.rs | 4 +++- src/arch/mips64.rs | 4 +++- src/arch/powerpc.rs | 4 +++- src/arch/powerpc64.rs | 4 +++- src/arch/riscv32.rs | 4 +++- src/arch/riscv64.rs | 4 +++- src/arch/s390x.rs | 4 +++- src/arch/sparc.rs | 4 +++- src/arch/sparc64.rs | 4 +++- src/arch/x86.rs | 4 +++- src/arch/x86_64.rs | 4 +++- syscalls-gen/src/main.rs | 2 +- 15 files changed, 43 insertions(+), 15 deletions(-) diff --git a/src/arch/aarch64.rs b/src/arch/aarch64.rs index 45730ea..56a8a91 100644 --- a/src/arch/aarch64.rs +++ b/src/arch/aarch64.rs @@ -678,6 +678,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/arm.rs b/src/arch/arm.rs index f0911a2..99ead56 100644 --- a/src/arch/arm.rs +++ b/src/arch/arm.rs @@ -832,6 +832,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/loongarch64.rs b/src/arch/loongarch64.rs index 90f79e5..9e64e64 100644 --- a/src/arch/loongarch64.rs +++ b/src/arch/loongarch64.rs @@ -678,6 +678,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/mips.rs b/src/arch/mips.rs index 7e8e857..955f507 100644 --- a/src/arch/mips.rs +++ b/src/arch/mips.rs @@ -874,6 +874,8 @@ syscall_enum! { lsm_set_self_attr = 4460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 4461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 4462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/mips64.rs b/src/arch/mips64.rs index 128324a..52af97a 100644 --- a/src/arch/mips64.rs +++ b/src/arch/mips64.rs @@ -732,6 +732,8 @@ syscall_enum! { lsm_set_self_attr = 5460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 5461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 5462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/powerpc.rs b/src/arch/powerpc.rs index 74c9383..49d06ea 100644 --- a/src/arch/powerpc.rs +++ b/src/arch/powerpc.rs @@ -888,6 +888,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/powerpc64.rs b/src/arch/powerpc64.rs index d9b0e95..0ad3a88 100644 --- a/src/arch/powerpc64.rs +++ b/src/arch/powerpc64.rs @@ -832,6 +832,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/riscv32.rs b/src/arch/riscv32.rs index 6acf04e..5ee16af 100644 --- a/src/arch/riscv32.rs +++ b/src/arch/riscv32.rs @@ -682,6 +682,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/riscv64.rs b/src/arch/riscv64.rs index 0a1b097..4f1284b 100644 --- a/src/arch/riscv64.rs +++ b/src/arch/riscv64.rs @@ -682,6 +682,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/s390x.rs b/src/arch/s390x.rs index 9b36f33..4eaed90 100644 --- a/src/arch/s390x.rs +++ b/src/arch/s390x.rs @@ -764,6 +764,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/sparc.rs b/src/arch/sparc.rs index 1c7802d..af036c1 100644 --- a/src/arch/sparc.rs +++ b/src/arch/sparc.rs @@ -864,6 +864,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/sparc64.rs b/src/arch/sparc64.rs index 1c9bdb9..a33fa9f 100644 --- a/src/arch/sparc64.rs +++ b/src/arch/sparc64.rs @@ -790,6 +790,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/x86.rs b/src/arch/x86.rs index 3f85122..bf515db 100644 --- a/src/arch/x86.rs +++ b/src/arch/x86.rs @@ -906,6 +906,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/src/arch/x86_64.rs b/src/arch/x86_64.rs index aa99fa4..965485b 100644 --- a/src/arch/x86_64.rs +++ b/src/arch/x86_64.rs @@ -750,6 +750,8 @@ syscall_enum! { lsm_set_self_attr = 460, /// See [lsm_list_modules(2)](https://man7.org/linux/man-pages/man2/lsm_list_modules.2.html) for more info on this syscall. lsm_list_modules = 461, + /// See [mseal(2)](https://man7.org/linux/man-pages/man2/mseal.2.html) for more info on this syscall. + mseal = 462, } - LAST: lsm_list_modules; + LAST: mseal; } diff --git a/syscalls-gen/src/main.rs b/syscalls-gen/src/main.rs index 34951af..a59177c 100644 --- a/syscalls-gen/src/main.rs +++ b/syscalls-gen/src/main.rs @@ -17,7 +17,7 @@ mod tables; static LINUX_REPO: &str = "https://raw.githubusercontent.com/torvalds/linux"; /// Linux version to pull the syscall tables from. -static LINUX_VERSION: &str = "v6.8"; +static LINUX_VERSION: &str = "v6.10"; lazy_static! { /// List of syscall tables for each architecture.