Skip to content

Commit 61c4a0a

Browse files
committed
linux_like: add F_SEAL_EXEC
This flag has been introduced in Linux kernel 6.3: torvalds/linux@6fd7353
1 parent c9a05b4 commit 61c4a0a

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4183,7 +4183,9 @@ fn test_linux(target: &str) {
41834183
| "F_SEAL_SEAL"
41844184
| "F_SEAL_SHRINK"
41854185
| "F_SEAL_GROW"
4186-
| "F_SEAL_WRITE" => true,
4186+
| "F_SEAL_WRITE"
4187+
| "F_SEAL_FUTURE_WRITE"
4188+
| "F_SEAL_EXEC" => true,
41874189
// The `ARPHRD_CAN` is tested in the `linux_if_arp.rs` tests
41884190
// because including `linux/if_arp.h` causes some conflicts:
41894191
"ARPHRD_CAN" => true,

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ F_OFD_SETLK
685685
F_OFD_SETLKW
686686
F_OK
687687
F_RDLCK
688+
F_SEAL_EXEC
688689
F_SEAL_GROW
689690
F_SEAL_SEAL
690691
F_SEAL_SHRINK

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ F_OFD_GETLK
864864
F_OFD_SETLK
865865
F_OFD_SETLKW
866866
F_RDLCK
867+
F_SEAL_EXEC
867868
F_SEAL_FUTURE_WRITE
868869
F_SEAL_GROW
869870
F_SEAL_SEAL

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,7 @@ pub const F_TLOCK: c_int = 2;
12631263
pub const F_ULOCK: c_int = 0;
12641264

12651265
pub const F_SEAL_FUTURE_WRITE: c_int = 0x0010;
1266+
pub const F_SEAL_EXEC: c_int = 0x0020;
12661267

12671268
pub const IFF_LOWER_UP: c_int = 0x10000;
12681269
pub const IFF_DORMANT: c_int = 0x20000;

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,7 @@ pub const F_TLOCK: c_int = 2;
27312731
pub const F_ULOCK: c_int = 0;
27322732

27332733
pub const F_SEAL_FUTURE_WRITE: c_int = 0x0010;
2734+
pub const F_SEAL_EXEC: c_int = 0x0020;
27342735

27352736
pub const IFF_LOWER_UP: c_int = 0x10000;
27362737
pub const IFF_DORMANT: c_int = 0x20000;

0 commit comments

Comments
 (0)