Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144996430
D31777.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31777.diff
View Options
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -28,7 +28,7 @@
.\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd September 3, 2021
+.Dd September 7, 2021
.Dt MPROTECT 2
.Os
.Sh NAME
@@ -47,12 +47,16 @@
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
+.Em 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,13 +65,16 @@
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
-from upgrading the permissions).
-This is accomplished by
+from adding to the permissions later).
+This is accomplished by bitwise
.Em or Ns 'ing
one or more
.Dv PROT_
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 15, 9:09 PM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28755997
Default Alt Text
D31777.diff (1 KB)
Attached To
Mode
D31777: mprotect.2: Improve the description of prot
Attached
Detach File
Event Timeline
Log In to Comment