Skip to content

Commit 26ff252

Browse files
committed
linux: add GRND_INSECURE constant
This is available on kernels ≥5.6.
1 parent 53f78cd commit 26ff252

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,7 @@ pub const NETLINK_GET_STRICT_CHK: ::c_int = 12;
17921792

17931793
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
17941794
pub const GRND_RANDOM: ::c_uint = 0x0002;
1795+
pub const GRND_INSECURE: ::c_uint = 0x0004;
17951796

17961797
pub const SECCOMP_MODE_DISABLED: ::c_uint = 0;
17971798
pub const SECCOMP_MODE_STRICT: ::c_uint = 1;

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,7 @@ pub const PR_SET_VMA_ANON_NAME: ::c_int = 0;
17811781

17821782
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
17831783
pub const GRND_RANDOM: ::c_uint = 0x0002;
1784+
pub const GRND_INSECURE: ::c_uint = 0x0004;
17841785

17851786
pub const SECCOMP_MODE_DISABLED: ::c_uint = 0;
17861787
pub const SECCOMP_MODE_STRICT: ::c_uint = 1;

0 commit comments

Comments
 (0)