Skip to content

Commit ee173ad

Browse files
authored
Merge pull request #3798 from devnexen/linux_mseal
linux adding new syscall SYS_mseal for x86_64 glibc/musl.
2 parents 247591b + 396c63c commit ee173ad

File tree

16 files changed

+18
-0
lines changed

16 files changed

+18
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4146,6 +4146,9 @@ fn test_linux(target: &str) {
41464146
// FIXME: Requires >= 6.6 kernel headers.
41474147
"SYS_fchmodat2" => true,
41484148

4149+
// FIXME: Requires >= 6.10 kernel headers.
4150+
"SYS_mseal" => true,
4151+
41494152
// FIXME: seems to not be available all the time (from <include/linux/sched.h>:
41504153
"PF_VCPU"
41514154
| "PF_IDLE"

libc-test/semver/linux-i686.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ SYS_mknod
134134
SYS_mmap2
135135
SYS_modify_ldt
136136
SYS_mpx
137+
SYS_mseal
137138
SYS_nice
138139
SYS_oldfstat
139140
SYS_oldlstat

libc-test/semver/linux-powerpc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ SYS_mknod
8282
SYS_mmap2
8383
SYS_modify_ldt
8484
SYS_mpx
85+
SYS_mseal
8586
SYS_multiplexer
8687
SYS_nice
8788
SYS_oldfstat

libc-test/semver/linux-s390x.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ SYS_link
5959
SYS_lstat
6060
SYS_mkdir
6161
SYS_mknod
62+
SYS_mseal
6263
SYS_newfstatat
6364
SYS_nice
6465
SYS_open

libc-test/semver/linux-x86_64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ SYS_lstat
109109
SYS_mkdir
110110
SYS_mknod
111111
SYS_modify_ldt
112+
SYS_mseal
112113
SYS_open
113114
SYS_pause
114115
SYS_pipe

src/unix/linux_like/linux/gnu/b32/arm/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
856856
pub const SYS_process_mrelease: ::c_long = 448;
857857
pub const SYS_futex_waitv: ::c_long = 449;
858858
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
859+
pub const SYS_mseal: ::c_long = 462;
859860

860861
mod align;
861862
pub use self::align::*;

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,3 +824,4 @@ pub const SYS_memfd_secret: ::c_long = 447;
824824
pub const SYS_process_mrelease: ::c_long = 448;
825825
pub const SYS_futex_waitv: ::c_long = 449;
826826
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
827+
pub const SYS_mseal: ::c_long = 462;

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ pub const SYS_process_mrelease: ::c_long = 448;
10461046
pub const SYS_futex_waitv: ::c_long = 449;
10471047
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
10481048
pub const SYS_fchmodat2: ::c_long = 452;
1049+
pub const SYS_mseal: ::c_long = 462;
10491050

10501051
// offsets in user_regs_structs, from sys/reg.h
10511052
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
892892
pub const SYS_process_mrelease: ::c_long = 448;
893893
pub const SYS_futex_waitv: ::c_long = 449;
894894
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
895+
pub const SYS_mseal: ::c_long = 462;
895896

896897
pub const PROT_BTI: ::c_int = 0x10;
897898
pub const PROT_MTE: ::c_int = 0x20;

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
941941
pub const SYS_process_mrelease: ::c_long = 448;
942942
pub const SYS_futex_waitv: ::c_long = 449;
943943
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
944+
pub const SYS_mseal: ::c_long = 462;
944945

945946
extern "C" {
946947

0 commit comments

Comments
 (0)