Index: lib/libc/sys/mprotect.2 =================================================================== --- lib/libc/sys/mprotect.2 +++ lib/libc/sys/mprotect.2 @@ -28,7 +28,7 @@ .\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd February 26, 2020 +.Dd June 11, 2021 .Dt MPROTECT 2 .Os .Sh NAME @@ -46,14 +46,19 @@ system call changes the specified pages to have protection .Fa prot . -Not all implementations will guarantee protection on a page basis; -the granularity of protection changes may be as large as an entire region. -A region is the virtual address space defined by the start -and end addresses of a -.Vt "struct vm_map_entry" . .Pp -Currently these protection bits are known, -which can be combined, OR'd together: +Some architectures support more than one page size. +For mapping with page sizes larger than the default +.Dv PAGE_SIZE , +the +.Fa addr +and +.Fa len +arguments must cover then entire page. +.Pp +The +.Fa prot +argument shall be the bitwise OR of one or more of the following values: .Pp .Bl -tag -width ".Dv PROT_WRITE" -compact .It Dv PROT_NONE @@ -66,8 +71,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