Page MenuHomeFreeBSD

D31777.id94572.diff
No OneTemporary

D31777.id94572.diff

Index: lib/libc/sys/mprotect.2
===================================================================
--- lib/libc/sys/mprotect.2
+++ lib/libc/sys/mprotect.2
@@ -47,12 +47,14 @@
changes the specified pages to have protection
.Fa prot .
.Pp
-Currently these protection bits are known,
-which can be combined, OR'd together:
+The
+.Fa prot
+argument shall be
+.Dv PROT_NONE
+(No permissions at all)
+or the bitwise OR of one or more of the following values:
.Pp
.Bl -tag -width ".Dv PROT_WRITE" -compact
-.It Dv PROT_NONE
-No permissions at all.
.It Dv PROT_READ
The pages can be read.
.It Dv PROT_WRITE
@@ -61,8 +63,11 @@
The pages can be executed.
.El
.Pp
-In addition to these protection flags,
+In addition to these standard protection flags,
+the
.Fx
+implementation of
+.Fn mprotect
provides the ability to set the maximum protection of a region
(which prevents
.Nm

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 5, 9:41 AM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36030624
Default Alt Text
D31777.id94572.diff (882 B)

Event Timeline