diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-06-14 19:18:20 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-06-14 19:18:20 +0000 |
commit | 3984a55223ee6a547528d5b4660f8cd5f0d6e3ea (patch) | |
tree | fa4c82eb23eb0d0538bccd09a6f1bc6cbfdb375e /lib | |
parent | 8a9535d57b635d694a6432cd6b3fef572afc2173 (diff) |
document swap encrypt ctl level
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/sysctl.3 | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 56ba6a3fc3a..9e0d3b1c648 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.3,v 1.44 2000/05/25 06:19:03 itojun Exp $ +.\" $OpenBSD: sysctl.3,v 1.45 2000/06/14 19:18:19 provos Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -1048,7 +1048,7 @@ privileges may change the value. .It Sy Second level name Type Changeable .It Dv VM_LOADAVG No " struct loadavg no" .It Dv VM_METER No " struct vmtotal no" -.It Dv VM_SWAPENCRYPT No " integer yes" +.It Dv VM_SWAPENCRYPT No " swap encrypt values yes" .El .Pp .Bl -tag -width "123456" @@ -1061,9 +1061,29 @@ Return the system wide virtual memory statistics. The returned data consists of a .Li struct vmtotal . .It Dv VM_SWAPENCRYPT +Contains statistics about swap encryption. The string and integer +information available for the third level is detailed below. +.Bl -column "Third level nameXXXXXX" "struct loadavgXXX" -offset indent +.It Sy Third level name Type Changeable +.It Dv SWPENC_ENABLE No " integer yes" +.It Dv SWPENC_CREATED No " integer no" +.It Dv SWPENC_DELETED No " integer no" +.El +.Pp +.Bl -tag -width "123456" +.It Dv SWPENC_ENABLE Set to 1 to enable swap encryption for all processes. A 0 disables swap encryption. Pages still on swap receive a grandfather clause. +.It Dv SWPENC_CREATED +The number of encryption keys that have been randomly created. The +swap partition is divided into sections of normally 512KB. Each section +has its own encryption key. +.It Dv SWPENC_DELETED +The number of encryption keys that have been deleted, thus effectivly +erasing the data that has been encrypted with them. Encryption +keys are deleted when their reference counter reaches zero. +.El .El .Sh RETURN VALUES If the call to |