Skip to content

Commit 255a515

Browse files
devnexentgross35
authored andcommitted
linux adding new syscall SYS_mseal for x86_64 glibc/musl.
(backport <#3798>) (cherry picked from commit 396c63c)
1 parent 839bfc2 commit 255a515

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
@@ -4213,6 +4213,9 @@ fn test_linux(target: &str) {
42134213
// FIXME: Requires >= 6.6 kernel headers.
42144214
"SYS_fchmodat2" => true,
42154215

4216+
// FIXME: Requires >= 6.10 kernel headers.
4217+
"SYS_mseal" => true,
4218+
42164219
// FIXME: seems to not be available all the time (from <include/linux/sched.h>:
42174220
"PF_VCPU"
42184221
| "PF_IDLE"

libc-test/semver/linux-i686.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ SYS_mknod
132132
SYS_mmap2
133133
SYS_modify_ldt
134134
SYS_mpx
135+
SYS_mseal
135136
SYS_nice
136137
SYS_oldfstat
137138
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
@@ -107,6 +107,7 @@ SYS_lstat
107107
SYS_mkdir
108108
SYS_mknod
109109
SYS_modify_ldt
110+
SYS_mseal
110111
SYS_open
111112
SYS_pause
112113
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
@@ -855,6 +855,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
855855
pub const SYS_process_mrelease: ::c_long = 448;
856856
pub const SYS_futex_waitv: ::c_long = 449;
857857
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
858+
pub const SYS_mseal: ::c_long = 462;
858859

859860
cfg_if! {
860861
if #[cfg(libc_align)] {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,3 +823,4 @@ pub const SYS_memfd_secret: ::c_long = 447;
823823
pub const SYS_process_mrelease: ::c_long = 448;
824824
pub const SYS_futex_waitv: ::c_long = 449;
825825
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
826+
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
@@ -1045,6 +1045,7 @@ pub const SYS_process_mrelease: ::c_long = 448;
10451045
pub const SYS_futex_waitv: ::c_long = 449;
10461046
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
10471047
pub const SYS_fchmodat2: ::c_long = 452;
1048+
pub const SYS_mseal: ::c_long = 462;
10481049

10491050
// offsets in user_regs_structs, from sys/reg.h
10501051
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
@@ -946,6 +946,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
946946
pub const SYS_process_mrelease: ::c_long = 448;
947947
pub const SYS_futex_waitv: ::c_long = 449;
948948
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
949+
pub const SYS_mseal: ::c_long = 462;
949950

950951
extern "C" {
951952

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
@@ -439,6 +439,7 @@ pub const SYS_process_mrelease: ::c_long = 448;
439439
pub const SYS_futex_waitv: ::c_long = 449;
440440
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
441441
pub const SYS_fchmodat2: ::c_long = 452;
442+
pub const SYS_mseal: ::c_long = 462;
442443

443444
extern "C" {
444445
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)