Skip to content

Commit

Permalink
linux: add GRND_INSECURE constant
Browse files Browse the repository at this point in the history
This is available on kernels ≥5.6.
  • Loading branch information
zx2c4 committed Apr 8, 2022
1 parent 53f78cd commit 26ff252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit 26ff252

Please sign in to comment.