Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: add GRND_INSECURE constant #2743

Merged
merged 1 commit into from May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions libc-test/build.rs
Expand Up @@ -1728,6 +1728,9 @@ fn test_android(target: &str) {
// linux 5.12 min
"MPOL_F_NUMA_BALANCING" => true,

// GRND_INSECURE was added in platform-tools-30.0.0
"GRND_INSECURE" => true,

_ => false,
}
});
Expand Down Expand Up @@ -3317,6 +3320,9 @@ fn test_linux(target: &str) {
// linux 5.17 min
"PR_SET_VMA" | "PR_SET_VMA_ANON_NAME" => true,

// GRND_INSECURE was added in glibc-2.32
"GRND_INSECURE" => true,

_ => false,
}
});
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Expand Up @@ -661,6 +661,7 @@ GENL_NAMSIZ
GENL_UNS_ADMIN_PERM
GRND_NONBLOCK
GRND_RANDOM
GRND_INSECURE
GRPQUOTA
HPFS_SUPER_MAGIC
HUGETLBFS_MAGIC
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Expand Up @@ -649,6 +649,7 @@ GLOB_NOSORT
GLOB_NOSPACE
GRND_NONBLOCK
GRND_RANDOM
GRND_INSECURE
IBSHIFT
IFA_ADDRESS
IFA_ANYCAST
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -1792,6 +1792,7 @@ pub const NETLINK_GET_STRICT_CHK: ::c_int = 12;

pub const GRND_NONBLOCK: ::c_uint = 0x0001;
pub const GRND_RANDOM: ::c_uint = 0x0002;
pub const GRND_INSECURE: ::c_uint = 0x0004;

pub const SECCOMP_MODE_DISABLED: ::c_uint = 0;
pub const SECCOMP_MODE_STRICT: ::c_uint = 1;
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Expand Up @@ -1781,6 +1781,7 @@ pub const PR_SET_VMA_ANON_NAME: ::c_int = 0;

pub const GRND_NONBLOCK: ::c_uint = 0x0001;
pub const GRND_RANDOM: ::c_uint = 0x0002;
pub const GRND_INSECURE: ::c_uint = 0x0004;

pub const SECCOMP_MODE_DISABLED: ::c_uint = 0;
pub const SECCOMP_MODE_STRICT: ::c_uint = 1;
Expand Down