Module Name: src Committed By: jruoho Date: Tue Apr 20 08:27:24 UTC 2010
Modified Files: src/share/man/man4: crypto.4 src/share/man/man7: sysctl.7 Log Message: Document kern.usercrypto and kern.userasymcrypto. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/share/man/man4/crypto.4 cvs rdiff -u -r1.44 -r1.45 src/share/man/man7/sysctl.7 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man4/crypto.4 diff -u src/share/man/man4/crypto.4:1.19 src/share/man/man4/crypto.4:1.20 --- src/share/man/man4/crypto.4:1.19 Sun Jan 31 15:05:49 2010 +++ src/share/man/man4/crypto.4 Tue Apr 20 08:27:24 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: crypto.4,v 1.19 2010/01/31 15:05:49 wiz Exp $ +.\" $NetBSD: crypto.4,v 1.20 2010/04/20 08:27:24 jruoho Exp $ .\" .\" Copyright (c) 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -53,7 +53,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF .\" THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 28, 2010 +.Dd April 20, 2010 .Dt CRYPTO 4 .Os .Sh NAME @@ -94,6 +94,17 @@ then issue .Xr ioctl 2 calls on the descriptor. +User-mode access to +.Pa /dev/crypto +is generally controlled by two +.Xr sysctl 8 +variables, +.Ic kern.usercrypto +and +.Ic kern.userasymcrypto . +See +.Xr sysctl 7 +for additional details. .Pp The .Nm Index: src/share/man/man7/sysctl.7 diff -u src/share/man/man7/sysctl.7:1.44 src/share/man/man7/sysctl.7:1.45 --- src/share/man/man7/sysctl.7:1.44 Tue Apr 20 07:58:16 2010 +++ src/share/man/man7/sysctl.7 Tue Apr 20 08:27:24 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysctl.7,v 1.44 2010/04/20 07:58:16 jruoho Exp $ +.\" $NetBSD: sysctl.7,v 1.45 2010/04/20 08:27:24 jruoho Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -321,8 +321,8 @@ .It kern.timex struct no .It kern.tkstat node not applicable .It kern.urandom integer no -.\".It kern.usercrypto integer yes -.\" It kern.userasymcrypto integer yes +.It kern.usercrypto integer yes +.It kern.userasymcrypto integer yes .It kern.veriexec node not applicable .It kern.version string no .It kern.vnode struct vnode no @@ -933,10 +933,18 @@ .El .It Li kern.urandom ( KERN_URND ) Random integer value. -.\".It Li kern.usercrypto -.\" XXX: Undocumented. -.\".It Li kern.userasymcrypto -.\" XXX: Undocumented. +.It Li kern.usercrypto +When enabled, allows userland to +.Xr open 2 +the +.Pa /dev/crypto +special device, used by the +.Xr crypto 4 +system. +.It Li kern.userasymcrypto +Enables or disables the use of software asymmetric crypto support in the +.Xr crypto 4 +system. .It Li kern.veriexec Runtime information for .Xr veriexec 8 .