[Midnightbsd-cvs] src [8616] trunk/lib/libc/sys: update man pages for mlock changes

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 25 13:43:47 EDT 2016


Revision: 8616
          http://svnweb.midnightbsd.org/src/?rev=8616
Author:   laffer1
Date:     2016-09-25 13:43:47 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
update man pages for mlock changes

Modified Paths:
--------------
    trunk/lib/libc/sys/mlock.2
    trunk/lib/libc/sys/mlockall.2

Modified: trunk/lib/libc/sys/mlock.2
===================================================================
--- trunk/lib/libc/sys/mlock.2	2016-09-25 17:43:11 UTC (rev 8615)
+++ trunk/lib/libc/sys/mlock.2	2016-09-25 17:43:47 UTC (rev 8616)
@@ -28,7 +28,7 @@
 .\"	@(#)mlock.2	8.2 (Berkeley) 12/11/93
 .\" $MidnightBSD$
 .\"
-.Dd July 27, 2010
+.Dd December 25, 2012
 .Dt MLOCK 2
 .Os
 .Sh NAME
@@ -94,12 +94,15 @@
 A single process can
 .Fn mlock
 the minimum of
-a system-wide ``wired pages'' limit and
-the per-process
+a system-wide ``wired pages'' limit
+.Va vm.max_wired
+and the per-process
 .Li RLIMIT_MEMLOCK
 resource limit.
 .Pp
-These calls are only available to the super-user.
+If
+.Va security.bsd.unprivileged_mlock
+is set to 0 these calls are only available to the super-user.
 .Sh RETURN VALUES
 .Rv -std
 .Pp
@@ -112,7 +115,8 @@
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EPERM
-The caller is not the super-user.
+.Va security.bsd.unprivileged_mlock
+is set to 0 and the caller is not the super-user.
 .It Bq Er EINVAL
 The address given is not page aligned or the length is negative.
 .It Bq Er EAGAIN
@@ -129,7 +133,8 @@
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EPERM
-The caller is not the super-user.
+.Va security.bsd.unprivileged_mlock
+is set to 0 and the caller is not the super-user.
 .It Bq Er EINVAL
 The address given is not page aligned or the length is negative.
 .It Bq Er ENOMEM

Modified: trunk/lib/libc/sys/mlockall.2
===================================================================
--- trunk/lib/libc/sys/mlockall.2	2016-09-25 17:43:11 UTC (rev 8615)
+++ trunk/lib/libc/sys/mlockall.2	2016-09-25 17:43:47 UTC (rev 8616)
@@ -30,7 +30,7 @@
 .\"
 .\" $MidnightBSD$
 .\"
-.Dd July 27, 2010
+.Dd December 25, 2012
 .Dt MLOCKALL 2
 .Os
 .Sh NAME
@@ -68,11 +68,22 @@
 limited in how much they can lock down.
 A single process can lock the minimum of a system-wide
 .Dq wired pages
-limit and the per-process
+limit
+.Va vm.max_wired
+and the per-process
 .Dv RLIMIT_MEMLOCK
 resource limit.
 .Pp
-These calls are only available to the super-user.
+If
+.Va security.bsd.unprivileged_mlock
+is set to 0 these calls are only available to the super-user.
+If
+.Va vm.old_mlock
+is set to 1 the per-process
+.Dv RLIMIT_MEMLOCK
+resource limit will not be applied for
+.Fn mlockall
+calls.
 .Pp
 The
 .Fn munlockall



More information about the Midnightbsd-cvs mailing list