Skip to content

Commit ec1e1e5

Browse files
rusty-snaketgross35
authored andcommitted
Add AT_EXECVE_CHECK
1 parent cde9e8a commit ec1e1e5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4486,6 +4486,9 @@ fn test_linux(target: &str) {
44864486
// FIXME(linux): Requires >= 6.9 kernel headers.
44874487
"AT_HWCAP3" | "AT_HWCAP4" => true,
44884488

4489+
// Linux 6.14
4490+
"AT_EXECVE_CHECK" => true,
4491+
44894492
_ => false,
44904493
}
44914494
});

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ AT_ENTRY
163163
AT_EUID
164164
AT_EXECFD
165165
AT_EXECFN
166+
AT_EXECVE_CHECK
166167
AT_FDCWD
167168
AT_FLAGS
168169
AT_GID

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,9 @@ pub const IFF_LOWER_UP: c_int = 0x10000;
14201420
pub const IFF_DORMANT: c_int = 0x20000;
14211421
pub const IFF_ECHO: c_int = 0x40000;
14221422

1423+
// linux/fcntl.h
1424+
pub const AT_EXECVE_CHECK: c_int = 0x10000;
1425+
14231426
// linux/if_addr.h
14241427
pub const IFA_UNSPEC: c_ushort = 0;
14251428
pub const IFA_ADDRESS: c_ushort = 1;

0 commit comments

Comments
 (0)