| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH PR_GET_MDWE 2const 2025-05-17 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
PR_GET_MDWE |
| 8 |
\- |
| 9 |
get the Memory-Deny-Write-Execute protection mask for the calling process |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ,\~ \-lc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 16 |
.B #include <sys/prctl.h> |
| 17 |
.P |
| 18 |
.B int prctl(PR_GET_MDWE, 0L, 0L, 0L, 0L); |
| 19 |
.fi |
| 20 |
.SH DESCRIPTION |
| 21 |
Return the Memory-Deny-Write-Execute protection mask |
| 22 |
of the calling process. |
| 23 |
See |
| 24 |
.BR PR_SET_MDWE (2const) |
| 25 |
for information on the protection mask bits. |
| 26 |
.SH RETURN VALUE |
| 27 |
On success, |
| 28 |
a nonnegative value is returned. |
| 29 |
On error, \-1 is returned, and |
| 30 |
.I errno |
| 31 |
is set to indicate the error. |
| 32 |
.SH STANDARDS |
| 33 |
Linux. |
| 34 |
.SH HISTORY |
| 35 |
Linux 6.3. |
| 36 |
.\" commit b507808ebce23561d4ff8c2aa1fb949fe402bc61 |
| 37 |
.SH SEE ALSO |
| 38 |
.BR prctl (2), |
| 39 |
.BR PR_SET_MDWE (2const) |