Skip to content

Commit ff17476

Browse files
lucabtgross35
authored andcommitted
linux_like: add F_SEAL_EXEC
This flag has been introduced in Linux kernel 6.3: torvalds/linux@6fd7353 (backport <#4316>) (cherry picked from commit 61c4a0a)
1 parent 67352ee commit ff17476

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

libc-test/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4255,7 +4255,9 @@ fn test_linux(target: &str) {
42554255
| "F_SEAL_SEAL"
42564256
| "F_SEAL_SHRINK"
42574257
| "F_SEAL_GROW"
4258-
| "F_SEAL_WRITE" => true,
4258+
| "F_SEAL_WRITE"
4259+
| "F_SEAL_FUTURE_WRITE"
4260+
| "F_SEAL_EXEC" => true,
42594261
// The `ARPHRD_CAN` is tested in the `linux_if_arp.rs` tests
42604262
// because including `linux/if_arp.h` causes some conflicts:
42614263
"ARPHRD_CAN" => true,

libc-test/semver/android.txt

+1
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

+1
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

+1
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ pub const F_TLOCK: c_int = 2;
13051305
pub const F_ULOCK: c_int = 0;
13061306

13071307
pub const F_SEAL_FUTURE_WRITE: c_int = 0x0010;
1308+
pub const F_SEAL_EXEC: c_int = 0x0020;
13081309

13091310
pub const IFF_LOWER_UP: c_int = 0x10000;
13101311
pub const IFF_DORMANT: c_int = 0x20000;

src/unix/linux_like/linux/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2770,6 +2770,7 @@ pub const F_TLOCK: c_int = 2;
27702770
pub const F_ULOCK: c_int = 0;
27712771

27722772
pub const F_SEAL_FUTURE_WRITE: c_int = 0x0010;
2773+
pub const F_SEAL_EXEC: c_int = 0x0020;
27732774

27742775
pub const IFF_LOWER_UP: c_int = 0x10000;
27752776
pub const IFF_DORMANT: c_int = 0x20000;

0 commit comments

Comments
 (0)