Skip to content

Add constants for Memory-Deny-Write-Execute prctls #4400

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,7 @@ PR_GET_FPEMU
PR_GET_FPEXC
PR_GET_FP_MODE
PR_GET_KEEPCAPS
PR_GET_MDWE
PR_GET_NAME
PR_GET_NO_NEW_PRIVS
PR_GET_PDEATHSIG
Expand All @@ -2247,6 +2248,8 @@ PR_MCE_KILL_EARLY
PR_MCE_KILL_GET
PR_MCE_KILL_LATE
PR_MCE_KILL_SET
PR_MDWE_NO_INHERIT
PR_MDWE_REFUSE_EXEC_GAIN
PR_MPX_DISABLE_MANAGEMENT
PR_MPX_ENABLE_MANAGEMENT
PR_SCHED_CORE
Expand All @@ -2265,6 +2268,7 @@ PR_SET_FPEMU
PR_SET_FPEXC
PR_SET_FP_MODE
PR_SET_KEEPCAPS
PR_SET_MDWE
PR_SET_MM
PR_SET_MM_ARG_END
PR_SET_MM_ARG_START
Expand Down
5 changes: 5 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,11 @@ pub const PR_GET_CHILD_SUBREAPER: c_int = 37;
pub const PR_SET_NO_NEW_PRIVS: c_int = 38;
pub const PR_GET_NO_NEW_PRIVS: c_int = 39;

pub const PR_SET_MDWE: c_int = 65;
pub const PR_GET_MDWE: c_int = 66;
pub const PR_MDWE_REFUSE_EXEC_GAIN: c_uint = 1;
pub const PR_MDWE_NO_INHERIT: c_uint = 2;

pub const PR_GET_TID_ADDRESS: c_int = 40;

pub const PR_SET_THP_DISABLE: c_int = 41;
Expand Down
Loading