Skip to content

Commit 1bddccf

Browse files
committed
Add F_SEAL_FUTURE_WRITE on Linux/Android
This was added in Linux 5.1 and will only show up in the next glibc release, thus skip in tests.
1 parent 8e2e498 commit 1bddccf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libc-test/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ fn test_emscripten(target: &str) {
18721872
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true,
18731873
// FIXME: is this necessary?
18741874
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW"
1875-
| "F_SEAL_WRITE" => true,
1875+
| "F_SEAL_WRITE" | "F_SEAL_FUTURE_WRITE" => true,
18761876
// FIXME: is this necessary?
18771877
"BOTHER" => true,
18781878

@@ -2382,7 +2382,7 @@ fn test_linux(target: &str) {
23822382
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true,
23832383
// FIXME: is this necessary?
23842384
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW"
2385-
| "F_SEAL_WRITE" => true,
2385+
| "F_SEAL_WRITE" | "F_SEAL_FUTURE_WRITE" => true,
23862386
// FIXME: is this necessary?
23872387
"QFMT_VFS_OLD" | "QFMT_VFS_V0" | "QFMT_VFS_V1"
23882388
if mips =>

src/unix/notbsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ pub const F_SEAL_SEAL: ::c_int = 0x0001;
465465
pub const F_SEAL_SHRINK: ::c_int = 0x0002;
466466
pub const F_SEAL_GROW: ::c_int = 0x0004;
467467
pub const F_SEAL_WRITE: ::c_int = 0x0008;
468+
pub const F_SEAL_FUTURE_WRITE: ::c_int = 0x0010;
468469

469470
// TODO(#235): Include file sealing fcntls once we have a way to verify them.
470471

0 commit comments

Comments
 (0)