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

src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ pub const SYS_process_mrelease: ::c_long = 448;
431431
pub const SYS_futex_waitv: ::c_long = 449;
432432
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
433433
pub const SYS_fchmodat2: ::c_long = 452;
434+
pub const SYS_mseal: ::c_long = 462;
434435

435436
extern "C" {
436437
pub fn sysctl(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
840840
pub const SYS_process_mrelease: ::c_long = 448;
841841
pub const SYS_futex_waitv: ::c_long = 449;
842842
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
843+
pub const SYS_mseal: ::c_long = 462;
843844

844845
extern "C" {
845846
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
796796
pub const SYS_process_mrelease: ::c_long = 448;
797797
pub const SYS_futex_waitv: ::c_long = 449;
798798
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
799+
pub const SYS_mseal: ::c_long = 462;
799800

800801
extern "C" {
801802
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
561561
pub const SYS_process_mrelease: ::c_long = 448;
562562
pub const SYS_futex_waitv: ::c_long = 449;
563563
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
564+
pub const SYS_mseal: ::c_long = 462;
564565

565566
pub const MCL_CURRENT: ::c_int = 0x0001;
566567
pub const MCL_FUTURE: ::c_int = 0x0002;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,3 +722,4 @@ pub const SYS_memfd_secret: ::c_long = 447;
722722
pub const SYS_process_mrelease: ::c_long = 448;
723723
pub const SYS_futex_waitv: ::c_long = 449;
724724
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
725+
pub const SYS_mseal: ::c_long = 462;

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ pub const SYS_process_mrelease: ::c_long = 448;
609609
pub const SYS_futex_waitv: ::c_long = 449;
610610
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
611611
pub const SYS_fchmodat2: ::c_long = 452;
612+
pub const SYS_mseal: ::c_long = 462;
612613

613614
// offsets in user_regs_structs, from sys/reg.h
614615
pub const R15: ::c_int = 0;

0 commit comments

Comments
 (0)