sync with OpenBSD -current
This commit is contained in:
parent
ed28f347da
commit
cc6742f14d
20 changed files with 315 additions and 155 deletions
|
@ -1,4 +1,4 @@
|
|||
.\" $OpenBSD: mimmutable.2,v 1.3 2022/11/06 20:15:44 jmc Exp $
|
||||
.\" $OpenBSD: mimmutable.2,v 1.4 2024/01/20 13:19:37 deraadt Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -29,7 +29,7 @@
|
|||
.\"
|
||||
.\" @(#)mimmutable.2 8.1 (Berkeley) 6/9/93
|
||||
.\"
|
||||
.Dd $Mdocdate: November 6 2022 $
|
||||
.Dd $Mdocdate: January 20 2024 $
|
||||
.Dt MIMMUTABLE 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -81,16 +81,3 @@ The
|
|||
.Fn mimmutable
|
||||
function first appeared in
|
||||
.Ox 7.3 .
|
||||
.Sh CAVEATS
|
||||
At present,
|
||||
.Xr mprotect 2
|
||||
may reduce permissions on immutable pages marked
|
||||
.Dv PROT_READ | PROT_WRITE
|
||||
to the less permissive
|
||||
.Dv PROT_READ .
|
||||
This one-way operation is permitted for an introductory period to observe how
|
||||
software uses this mechanism.
|
||||
It may change to require explicit mutable region annotation with
|
||||
.Va __attribute__((section(".openbsd.mutable")))
|
||||
and explicit calls to
|
||||
.Fn mimmutable .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue