[BACK]Return to sysctl.7 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man / man7

Annotation of src/share/man/man7/sysctl.7, Revision 1.80

1.80    ! christos    1: .\"    $NetBSD: sysctl.7,v 1.79 2013/12/16 00:59:37 wiz Exp $
1.1       pavel       2: .\"
                      3: .\" Copyright (c) 1993
                      4: .\"    The Regents of the University of California.  All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      9: .\" 1. Redistributions of source code must retain the above copyright
                     10: .\"    notice, this list of conditions and the following disclaimer.
                     11: .\" 2. Redistributions in binary form must reproduce the above copyright
                     12: .\"    notice, this list of conditions and the following disclaimer in the
                     13: .\"    documentation and/or other materials provided with the distribution.
                     14: .\" 3. Neither the name of the University nor the names of its contributors
                     15: .\"    may be used to endorse or promote products derived from this software
                     16: .\"    without specific prior written permission.
                     17: .\"
                     18: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     19: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     20: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     21: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     22: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     23: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     24: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     25: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     26: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     27: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     28: .\" SUCH DAMAGE.
                     29: .\"
                     30: .\"    @(#)sysctl.3    8.4 (Berkeley) 5/9/95
                     31: .\"
1.80    ! christos   32: .Dd May 29, 2014
1.1       pavel      33: .Dt SYSCTL 7
                     34: .Os
                     35: .Sh NAME
                     36: .Nm sysctl
                     37: .Nd system information variables
                     38: .Sh DESCRIPTION
                     39: The
                     40: .Xr sysctl 3
                     41: library function and the
                     42: .Xr sysctl 8
                     43: utility are used to get and set values of system variables, maintained
                     44: by the kernel.
                     45: The variables are organized in a tree and identified by a sequence of
                     46: numbers, conventionally separated by dots with the topmost identifier
                     47: at the left side.
                     48: The numbers have corresponding text names.
                     49: The
                     50: .Xr sysctlnametomib 3
                     51: function or the
                     52: .Fl M
                     53: argument to the
                     54: .Xr sysctl 8
                     55: utility can be used to convert the text representation to the
                     56: numeric one.
                     57: .Pp
                     58: The individual sysctl variables are described below, both the textual
                     59: and numeric form where applicable.
                     60: The textual names can be used as argument to the
                     61: .Xr sysctl 8
                     62: utility and in the file
                     63: .Pa /etc/sysctl.conf .
                     64: The numeric names are usually defined as preprocessor constants and
                     65: are intended for use by programs.
                     66: Every such constant expands to one integer, which identifies the
                     67: sysctl variable relative to the upper level of the tree.
                     68: See the
                     69: .Xr sysctl 3
                     70: manual page for programming examples.
1.50      jruoho     71: .Ss Top level names
1.56      uwe        72: The top level names are defined with a
                     73: .Va CTL_
                     74: prefix in
1.33      joerg      75: .In sys/sysctl.h ,
1.1       pavel      76: and are as follows.
                     77: The next and subsequent levels down are found in the include files
                     78: listed here, and described in separate sections below.
1.56      uwe        79: .Bl -column "security" ".Dv CTL_SECURITY" ".In uvm/uvm_param.h" "High kernel limits"
                     80: .It Sy Name  Ta Sy Constant     Ta Sy Next level names Ta Sy Description
                     81: .It kern     Ta Dv CTL_KERN     Ta In sys/sysctl.h     Ta High kernel limits
                     82: .It vm       Ta Dv CTL_VM       Ta In uvm/uvm_param.h  Ta Virtual memory
                     83: .It vfs      Ta Dv CTL_VFS      Ta In sys/mount.h      Ta Filesystem
                     84: .It net      Ta Dv CTL_NET      Ta In sys/socket.h     Ta Networking
                     85: .It debug    Ta Dv CTL_DEBUG    Ta In sys/sysctl.h     Ta Debugging
                     86: .It hw       Ta Dv CTL_HW       Ta In sys/sysctl.h     Ta Generic CPU, I/O
                     87: .It machdep  Ta Dv CTL_MACHDEP  Ta In sys/sysctl.h     Ta Machine dependent
                     88: .It user     Ta Dv CTL_USER     Ta In sys/sysctl.h     Ta User-level
                     89: .It ddb      Ta Dv CTL_DDB      Ta In sys/sysctl.h     Ta In-kernel debugger
                     90: .It proc     Ta Dv CTL_PROC     Ta In sys/sysctl.h     Ta Per-process
                     91: .It vendor   Ta Dv CTL_VENDOR   Ta ?                   Ta Vendor specific
                     92: .It emul     Ta Dv CTL_EMUL     Ta In sys/sysctl.h     Ta Emulation settings
                     93: .It security Ta Dv CTL_SECURITY Ta In sys/sysctl.h     Ta Security settings
1.1       pavel      94: .El
1.50      jruoho     95: .Ss The debug.* subtree
1.1       pavel      96: The debugging variables vary from system to system.
                     97: A debugging variable may be added or deleted without need to recompile
                     98: .Nm
                     99: to know about it.
                    100: Each time it runs,
                    101: .Nm
                    102: gets the list of debugging variables from the kernel and
                    103: displays their current values.
                    104: The system defines twenty
1.56      uwe       105: .Vt ( struct ctldebug )
1.1       pavel     106: variables named
                    107: .Dv debug0
                    108: through
                    109: .Dv debug19 .
                    110: They are declared as separate variables so that they can be
                    111: individually initialized at the location of their associated variable.
                    112: The loader prevents multiple use of the same variable by issuing errors
                    113: if a variable is initialized in more than one place.
                    114: For example, to export the variable
1.56      uwe       115: .Va dospecialcheck
1.1       pavel     116: as a debugging variable, the following declaration would be used:
1.43      jruoho    117: .Pp
1.1       pavel     118: .Bd -literal -offset indent -compact
                    119: int dospecialcheck = 1;
                    120: struct ctldebug debug5 = { "dospecialcheck", \*[Am]dospecialcheck };
                    121: .Ed
                    122: .Pp
                    123: Note that the dynamic implementation of
                    124: .Nm
                    125: currently in use largely makes this particular
                    126: .Nm
                    127: interface obsolete.
                    128: See
                    129: .Xr sysctl 8
                    130: .\" and
                    131: .\" .Xr sysctl 9
                    132: for more information.
1.50      jruoho    133: .Ss The vfs.* subtree
1.1       pavel     134: A distinguished second level name,
                    135: .Li vfs.generic ( VFS_GENERIC ) ,
1.57      wiz       136: is used to get general information about all file systems.
1.26      elad      137: It has the following third level identifiers:
1.56      uwe       138: .Bl -tag -width "123456"
                    139: .It Li vfs.generic.maxtypenum ( VFS_MAXTYPENUM )
1.57      wiz       140: The highest valid file system type number.
1.56      uwe       141: .It Li vfs.generic.conf ( VFS_CONF )
1.57      wiz       142: Returns configuration information about the file system type given as a fourth
1.26      elad      143: level identifier.
1.59      christos  144: .It Li vfs.generic.usermount ( VFS_USERMOUNT )
1.68      jym       145: Determines if non superuser mounts are allowed, defaults to
1.59      christos  146: .Dv 0 .
                    147: .It Li vfs.generic.magiclinks ( VFS_MAGICLINKS )
                    148: Controls if expansion of variables is going to be performed on pathnames
                    149: or not.
                    150: Defaults to no variable expansion,
                    151: .Dv 0 .
                    152: Variables are of the form
                    153: .Li @name
1.60      christos  154: and the variables supported are described in
                    155: .Xr symlink 7
                    156: under
                    157: .Dq "MAGIC SYMLINKS" .
1.26      elad      158: .El
                    159: .Pp
1.54      christos  160: A second level name for controlling the
                    161: .Xr wapbl 4
                    162: (Write Ahead Physical Block Logging file system journalling)
                    163: capabilities with the following third level identifiers:
1.56      uwe       164: .Bl -tag -width "123456"
                    165: .It Li vfs.wapbl.flush_disk_cache
1.55      wiz       166: Controls whether to attempt to flush the disk cache on each commit.
1.77      apb       167: It defaults to 1 and it should always be on to ensure integrity
                    168: of file system metadata in the event of a power loss.
1.54      christos  169: For slow disks, turning it off can improve performance.
1.56      uwe       170: .It Li vfs.wapbl.verbose_commit
1.55      wiz       171: For each transaction log commit, print the number of bytes written
                    172: and the time it took to commit as seconds.nanoseconds.
1.54      christos  173: .El
                    174: .Pp
1.57      wiz       175: The remaining second level identifiers are the file system names, identified
1.26      elad      176: by the type number returned by a
1.1       pavel     177: .Xr statvfs 2
                    178: call or from
1.27      wiz       179: .Li vfs.generic.conf .
1.56      uwe       180: .Pp
1.57      wiz       181: The third level identifiers available for each file system
1.1       pavel     182: are given in the header file that defines the mount
1.57      wiz       183: argument structure for that file system.
1.50      jruoho    184: .Ss The hw.* subtree
1.1       pavel     185: The string and integer information available for the
                    186: .Li hw
                    187: level is detailed below.
                    188: The changeable column shows whether a process with appropriate
                    189: privilege may change the value.
1.37      jruoho    190: .Bl -column "hw.machine_arch" "integer" "Changeable" -offset indent
1.1       pavel     191: .It Sy Second level name       Type    Changeable
                    192: .It hw.alignbytes      integer no
                    193: .It hw.byteorder       integer no
                    194: .It hw.cnmagic string  yes
                    195: .It hw.disknames       string  no
                    196: .It hw.diskstats       struct  no
                    197: .It hw.machine string  no
                    198: .It hw.machine_arch    string  no
                    199: .It hw.model   string  no
                    200: .It hw.ncpu    integer no
                    201: .It hw.pagesize        integer no
                    202: .It hw.physmem integer no
                    203: .It hw.physmem64       quad    no
                    204: .It hw.usermem integer no
                    205: .It hw.usermem64       quad    no
                    206: .El
                    207: .Pp
                    208: .Bl -tag -width "123456"
                    209: .It Li hw.alignbytes ( HW_ALIGNBYTES )
                    210: Alignment constraint for all possible data types.
                    211: This shows the value
                    212: .Dv ALIGNBYTES
                    213: in
1.56      uwe       214: .In machine/param.h ,
1.1       pavel     215: at the kernel compilation time.
                    216: .It Li hw.byteorder ( HW_BYTEORDER )
1.56      uwe       217: The byteorder (4321, or 1234).
1.1       pavel     218: .It Li hw.cnmagic ( HW_CNMAGIC )
                    219: The console magic key sequence.
                    220: .It Li hw.disknames ( HW_DISKNAMES )
                    221: The list of (space separated) disk device names on the system.
                    222: .It Li hw.iostatnames ( HW_IOSTATNAMES )
                    223: A space separated list of devices that will have I/O statistics
                    224: collected on them.
                    225: .It Li hw.iostats ( HW_IOSTATS )
                    226: Return statistical information on the NFS mounts, disk and tape
                    227: devices on the system.
                    228: An array of
1.56      uwe       229: .Vt struct io_sysctl
1.1       pavel     230: structures is returned,
                    231: whose size depends on the current number of such objects in the system.
                    232: The third level name is the size of the
1.56      uwe       233: .Vt struct io_sysctl .
1.1       pavel     234: The type of object can be determined by examining the
                    235: .Va type
                    236: element of
1.56      uwe       237: .Vt struct io_sysctl .
1.1       pavel     238: Which can be
                    239: .Dv IOSTAT_DISK
                    240: (disk drive),
                    241: .Dv IOSTAT_TAPE
                    242: (tape drive), or
                    243: .Dv IOSTAT_NFS
                    244: (NFS mount).
                    245: .It Li hw.machine ( HW_MACHINE )
                    246: The machine class.
                    247: .It Li hw.machine_arch ( HW_MACHINE_ARCH )
                    248: The machine CPU class.
                    249: .It Li hw.model ( HW_MODEL )
                    250: The machine model.
                    251: .It Li hw.ncpu ( HW_NCPU )
                    252: The number of CPUs.
                    253: .It Li hw.pagesize ( HW_PAGESIZE )
                    254: The software page size.
                    255: .It Li hw.physmem ( HW_PHYSMEM )
                    256: The bytes of physical memory as a 32-bit integer.
                    257: .It Li hw.physmem64 ( HW_PHYSMEM64 )
                    258: The bytes of physical memory as a 64-bit integer.
                    259: .It Li hw.usermem ( HW_USERMEM )
                    260: The bytes of non-kernel memory as a 32-bit integer.
                    261: .It Li hw.usermem64 ( HW_USERMEM64 )
                    262: The bytes of non-kernel memory as a 64-bit integer.
                    263: .El
1.50      jruoho    264: .Ss The kern.* subtree
1.43      jruoho    265: This subtree includes data generally related to the kernel.
1.1       pavel     266: The string and integer information available for the
                    267: .Li kern
                    268: level is detailed below.
                    269: The changeable column shows whether a process with appropriate
                    270: privilege may change the value.
1.43      jruoho    271: .Bl -column "kern.posix_reader_writer_locks" \
                    272: "struct kinfo_drivers" "not applicable"
1.1       pavel     273: .It Sy Second level name       Type    Changeable
1.51      jruoho    274: .It kern.aio_listio_max        integer yes
                    275: .It kern.aio_max       integer yes
1.44      jruoho    276: .It kern.arandom       integer no
1.1       pavel     277: .It kern.argmax        integer no
1.39      jruoho    278: .It kern.boothowto     integer no
1.1       pavel     279: .It kern.boottime      struct timeval  no
1.39      jruoho    280: .\".It kern.bufq       node    not applicable
1.1       pavel     281: .It kern.ccpu  integer no
                    282: .It kern.clockrate     struct clockinfo        no
                    283: .It kern.consdev       integer no
1.39      jruoho    284: .It kern.coredump      node    not applicable
1.21      joerg     285: .It kern.cp_id struct  no
                    286: .It kern.cp_time       uint64_t[\|]    no
1.46      jruoho    287: .It kern.cryptodevallowsoft    integer yes
1.1       pavel     288: .It kern.defcorename   string  yes
1.38      jruoho    289: .It kern.detachall     integer yes
1.1       pavel     290: .It kern.domainname    string  yes
                    291: .It kern.drivers       struct kinfo_drivers    no
1.39      jruoho    292: .It kern.dump_on_panic integer yes
1.1       pavel     293: .It kern.file  struct file     no
                    294: .It kern.forkfsleep    integer yes
                    295: .It kern.fscale        integer no
                    296: .It kern.fsync integer no
1.21      joerg     297: .It kern.hardclock_ticks       integer no
1.1       pavel     298: .It kern.hostid        integer yes
                    299: .It kern.hostname      string  yes
1.21      joerg     300: .It kern.iov_max       integer no
1.39      jruoho    301: .It kern.ipc   node    not applicable
1.21      joerg     302: .It kern.job_control   integer no
1.1       pavel     303: .It kern.labeloffset   integer no
                    304: .It kern.labelsector   integer no
1.21      joerg     305: .It kern.login_name_max        integer no
1.1       pavel     306: .It kern.logsigexit    integer yes
1.21      joerg     307: .It kern.mapped_files  integer no
1.1       pavel     308: .It kern.maxfiles      integer yes
1.70      christos  309: .It kern.maxlwp        integer yes
1.1       pavel     310: .It kern.maxpartitions integer no
                    311: .It kern.maxphys       integer no
                    312: .It kern.maxproc       integer yes
                    313: .It kern.maxptys       integer yes
                    314: .It kern.maxvnodes     integer yes
                    315: .It kern.mbuf  node    not applicable
                    316: .It kern.memlock       integer no
1.21      joerg     317: .It kern.memlock_range integer no
                    318: .It kern.memory_protection     integer no
1.42      jruoho    319: .It kern.module        node    not applicable
1.21      joerg     320: .It kern.monotonic_clock       integer no
1.49      jruoho    321: .It kern.mqueue        node    not applicable
1.1       pavel     322: .It kern.msgbuf        integer no
                    323: .It kern.msgbufsize    integer no
                    324: .It kern.ngroups       integer no
1.41      jruoho    325: .\".It kern.no_sa_support      integer yes
1.1       pavel     326: .It kern.ntptime       struct ntptimeval       no
                    327: .It kern.osrelease     string  no
1.39      jruoho    328: .It kern.osrevision    integer no
1.1       pavel     329: .It kern.ostype        string  no
1.41      jruoho    330: .\".It kern.panic_now  integer yes
1.1       pavel     331: .It kern.pipe  node    not applicable
1.39      jruoho    332: .\" .It kern.posix     node    not applicable
                    333: .It kern.posix1version integer no
1.51      jruoho    334: .It kern.posix_aio     integer no
1.21      joerg     335: .It kern.posix_barriers        integer no
                    336: .It kern.posix_reader_writer_locks     integer no
1.39      jruoho    337: .\".It kern.posix_sched        integer yes
1.21      joerg     338: .It kern.posix_semaphores      integer no
                    339: .It kern.posix_spin_locks      integer no
                    340: .It kern.posix_threads integer no
                    341: .It kern.posix_timers  integer no
1.1       pavel     342: .It kern.proc  struct kinfo_proc       no
                    343: .It kern.proc2 struct kinfo_proc2      no
1.21      joerg     344: .It kern.proc_args     string  no
1.39      jruoho    345: .It kern.profiling     node    not applicable
1.41      jruoho    346: .\".It kern.pset       node    not applicable
1.1       pavel     347: .It kern.rawpartition  integer no
1.21      joerg     348: .It kern.root_device   string  no
                    349: .It kern.root_partition        integer no
                    350: .It kern.rtc_offset    integer yes
                    351: .It kern.saved_ids     integer no
1.39      jruoho    352: .It kern.sbmax integer yes
1.41      jruoho    353: .\".It kern.sched      node    not applicable
1.1       pavel     354: .It kern.securelevel   integer raise only
1.39      jruoho    355: .It kern.somaxkva      integer yes
1.21      joerg     356: .It kern.synchronized_io       integer no
1.19      christos  357: .It kern.timecounter   node    not applicable
1.1       pavel     358: .It kern.timex struct  no
                    359: .It kern.tkstat        node    not applicable
1.66      christos  360: .It kern.tty   node    not applicable
1.1       pavel     361: .It kern.urandom       integer no
1.45      jruoho    362: .It kern.usercrypto    integer yes
                    363: .It kern.userasymcrypto        integer yes
1.39      jruoho    364: .It kern.veriexec      node    not applicable
1.1       pavel     365: .It kern.version       string  no
                    366: .It kern.vnode struct vnode    no
                    367: .El
                    368: .Bl -tag -width "123456"
1.51      jruoho    369: .It Li kern.aio_listio_max
                    370: The maximum number of asynchronous
                    371: .Tn I/O
                    372: operations in a single list I/O call.
                    373: Like with all variables related to
                    374: .Xr aio 3 ,
                    375: the variable may be created and removed dynamically
                    376: upon loading or unloading the corresponding kernel module.
                    377: .It Li kern.aio_max
                    378: The maximum number of asynchronous I/O operations.
1.44      jruoho    379: .It Li kern.arandom
                    380: This variable picks a random number each time it is queried.
                    381: The used random number generator
1.56      uwe       382: .Pf ( Tn RNG )
1.44      jruoho    383: is based on
                    384: .Xr arc4random 3 .
1.1       pavel     385: .It Li kern.argmax ( KERN_ARGMAX )
                    386: The maximum bytes of argument to
                    387: .Xr execve 2 .
1.23      apb       388: .It Li kern.boothowto
                    389: Flags passed from the boot loader; see
                    390: .Xr reboot 2
                    391: for the meanings of the flags.
1.1       pavel     392: .It Li kern.boottime ( KERN_BOOTTIME )
                    393: A
1.56      uwe       394: .Vt struct timeval
1.1       pavel     395: structure is returned.
                    396: This structure contains the time that the system was booted.
1.41      jruoho    397: .\" .It Li kern.bufq
                    398: .\" XXX: Undocumented.
1.1       pavel     399: .It Li kern.ccpu ( KERN_CCPU )
                    400: The scheduler exponential decay value.
                    401: .It Li kern.clockrate ( KERN_CLOCKRATE )
                    402: A
1.56      uwe       403: .Vt struct clockinfo
1.1       pavel     404: structure is returned.
                    405: This structure contains the clock, statistics clock and profiling clock
                    406: frequencies, the number of micro-seconds per hz tick, and the clock
                    407: skew rate.
1.36      jruoho    408: Refer to
                    409: .Xr hz 9
                    410: for additional details.
1.1       pavel     411: .It Li kern.consdev ( KERN_CONSDEV )
                    412: Console device.
1.39      jruoho    413: .It Li kern.coredump
                    414: Settings related to set-id processes coredumps.
                    415: By default, set-id processes do not dump core in situations where
                    416: other processes would.
                    417: The settings in this node allows an administrator to change this
                    418: behavior.
                    419: .Pp
                    420: The third level name is
                    421: .Dv kern.coredump.setid
1.40      jruoho    422: and fourth level variables are described below.
                    423: .Bl -column "kern.coredump.setid.group" "integer" "Changeable" -offset indent
                    424: .It Sy Fourth level name       Type    Changeable
                    425: .It kern.coredump.setid.dump   integer yes
                    426: .It kern.coredump.setid.group  integer yes
                    427: .It kern.coredump.setid.mode   integer yes
                    428: .It kern.coredump.setid.owner  integer yes
                    429: .It kern.coredump.setid.path   string  yes
                    430: .El
1.39      jruoho    431: .Bl -tag -width "123456"
                    432: .It Li kern.coredump.setid.dump
                    433: If non-zero, set-id processes will dump core.
                    434: .It Li kern.coredump.setid.group
                    435: The group-id for the set-id processes' coredump.
                    436: .It Li kern.coredump.setid.mode
                    437: The mode for the set-id processes' coredump.
                    438: See
                    439: .Xr chmod 1 .
                    440: .It Li kern.coredump.setid.owner
                    441: The user-id that will be used as the owner of the set-id processes'
                    442: coredump.
                    443: .It Li kern.coredump.setid.path
                    444: The path to which set-id processes' coredumps will be saved to.
                    445: Same syntax as kern.defcorename.
                    446: .El
1.1       pavel     447: .It Li kern.cp_id ( KERN_CP_ID )
                    448: Mapping of CPU number to CPU id.
                    449: .It Li kern.cp_time ( KERN_CP_TIME )
1.56      uwe       450: Returns an array of
                    451: .Dv CPUSTATES
                    452: .Vt uint64_t Ns s.
1.1       pavel     453: This array contains the
                    454: number of clock ticks spent in different CPU states.
                    455: On multi-processor systems, the sum across all CPUs is returned unless
                    456: appropriate space is given for one data set for each CPU.
                    457: Data for a specific CPU can also be obtained by adding the number of the
                    458: CPU at the end of the MIB, enlarging it by one.
1.46      jruoho    459: .It Li kern.cryptodevallowsoft
                    460: This variable controls userland access to hardware versus software transforms
                    461: in the
                    462: .Xr crypto 4
                    463: system.
                    464: The available values are as follows:
1.47      wiz       465: .Bl -tag -width XX0 -offset indent
                    466: .It Dv \*[Lt] 0
1.46      jruoho    467: Always force userlevel requests to use software transforms.
                    468: .It Dv = 0
                    469: If present, use hardware and grant userlevel requests for
                    470: non-accelerated transforms (handling the latter in software).
1.47      wiz       471: .It Dv \*[Gt] 0
1.46      jruoho    472: Allow user requests only for transforms which are hardware-accelerated.
                    473: .El
1.1       pavel     474: .It Li kern.defcorename ( KERN_DEFCORENAME )
                    475: Default template for the name of core dump files (see also
                    476: .Li proc.pid.corename
                    477: in the per-process variables
                    478: .Li proc.* ,
                    479: and
                    480: .Xr core 5
                    481: for format of this template).
                    482: The default value is
1.56      uwe       483: .Pa %n.core
1.1       pavel     484: and can be changed with the kernel configuration option
                    485: .Cd options DEFCORENAME
                    486: (see
                    487: .Xr options 4
                    488: ).
1.38      jruoho    489: .It Li kern.detachall
                    490: Detach all devices at shutdown.
1.1       pavel     491: .It Li kern.domainname ( KERN_DOMAINNAME )
                    492: Get or set the YP domain name.
                    493: .It Li kern.drivers ( KERN_DRIVERS )
                    494: Return an array of
1.56      uwe       495: .Vt struct kinfo_drivers
1.1       pavel     496: that contains the name and major device numbers of all the device drivers
                    497: in the current kernel.
                    498: The
                    499: .Va d_name
                    500: field is always a NUL terminated string.
                    501: The
                    502: .Va d_bmajor
                    503: field will be set to \-1 if the driver doesn't have a block device.
1.39      jruoho    504: .It Li kern.dump_on_panic ( KERN_DUMP_ON_PANIC )
1.41      jruoho    505: Perform a crash dump on system
                    506: .Xr panic 9 .
1.1       pavel     507: .It Li kern.file ( KERN_FILE )
                    508: Return the entire file table.
                    509: The returned data consists of a single
1.56      uwe       510: .Vt struct filelist
1.1       pavel     511: followed by an array of
1.56      uwe       512: .Vt struct file ,
1.1       pavel     513: whose size depends on the current number of such objects in the system.
                    514: .It Li kern.forkfsleep ( KERN_FORKFSLEEP )
                    515: If
                    516: .Xr fork 2
                    517: system call fails due to limit on number of processes (either
                    518: the global maxproc limit or user's one), wait for this many
                    519: milliseconds before returning
                    520: .Er EAGAIN
                    521: error to process.
                    522: Useful to keep heavily forking runaway processes in bay.
                    523: Default zero (no sleep).
                    524: Maximum is 20 seconds.
                    525: .It Li kern.fscale ( KERN_FSCALE )
                    526: The kernel fixed-point scale factor.
                    527: .It Li kern.fsync ( KERN_FSYNC )
1.58      wiz       528: Return 1 if the
                    529: .St -p1003.1b-93
                    530: File Synchronization Option is available
1.1       pavel     531: on this system,
1.56      uwe       532: otherwise\ 0.
1.1       pavel     533: .It Li kern.hardclock_ticks ( KERN_HARDCLOCK_TICKS )
                    534: Returns the number of
                    535: .Xr hardclock 9
                    536: ticks.
                    537: .It Li kern.hostid ( KERN_HOSTID )
1.39      jruoho    538: Get or set the host identifier.
                    539: This is aimed to replace the legacy
                    540: .Xr gethostid 3
                    541: and
                    542: .Xr sethostid 3
                    543: system calls.
1.1       pavel     544: .It Li kern.hostname ( KERN_HOSTNAME )
1.39      jruoho    545: Get or set the
                    546: .Xr hostname 1 .
1.1       pavel     547: .It Li kern.iov_max ( KERN_IOV_MAX )
                    548: Return the maximum number of
1.56      uwe       549: .Vt iovec
1.1       pavel     550: structures that a process has available for use with
                    551: .Xr preadv 2 ,
                    552: .Xr pwritev 2 ,
                    553: .Xr readv 2 ,
                    554: .Xr recvmsg 2 ,
                    555: .Xr sendmsg 2
                    556: and
                    557: .Xr writev 2 .
1.39      jruoho    558: .It Li kern.ipc ( KERN_SYSVIPC )
                    559: Return information about the SysV IPC parameters.
                    560: The third level names for the ipc variables are detailed below.
                    561: .Bl -column "kern.ipc.shm_use_phys" "integer" "Changeable" -offset indent
                    562: .It Sy Third level name        Type    Changeable
                    563: .It kern.ipc.sysvmsg   integer no
                    564: .It kern.ipc.sysvsem   integer no
                    565: .It kern.ipc.sysvshm   integer no
                    566: .It kern.ipc.sysvipc_info      struct  no
                    567: .It kern.ipc.shmmax    integer yes
                    568: .It kern.ipc.shmmni    integer yes
                    569: .It kern.ipc.shmseg    integer yes
                    570: .It kern.ipc.shmmaxpgs integer yes
                    571: .It kern.ipc.shm_use_phys      integer yes
                    572: .It kern.ipc.msgmni    integer yes
                    573: .It kern.ipc.msgseg    integer yes
                    574: .It kern.ipc.semmni    integer yes
                    575: .It kern.ipc.semmns    integer yes
                    576: .It kern.ipc.semmnu    integer yes
                    577: .El
                    578: .Bl -tag -width "123456"
                    579: .It Li kern.ipc.sysvmsg ( KERN_SYSVIPC_MSG )
                    580: Returns 1 if System V style message queue functionality is available
                    581: on this system,
1.56      uwe       582: otherwise\ 0.
1.39      jruoho    583: .It Li kern.ipc.sysvsem ( KERN_SYSVIPC_SEM )
                    584: Returns 1 if System V style semaphore functionality is available
                    585: on this system,
1.56      uwe       586: otherwise\ 0.
1.39      jruoho    587: .It Li kern.ipc.sysvshm ( KERN_SYSVIPC_SHM )
                    588: Returns 1 if System V style share memory functionality is available
                    589: on this system,
1.56      uwe       590: otherwise\ 0.
1.39      jruoho    591: .It Li kern.ipc.sysvipc_info ( KERN_SYSVIPC_INFO )
                    592: Return System V style IPC configuration and run-time information.
                    593: The fourth level name selects the System V style IPC facility.
                    594: .Bl -column "KERN_SYSVIPC_MSG_INFO" "struct shm_sysctl_info" -offset indent
                    595: .It Sy Fourth level name       Type
                    596: .It KERN_SYSVIPC_MSG_INFO      struct msg_sysctl_info
                    597: .It KERN_SYSVIPC_SEM_INFO      struct sem_sysctl_info
                    598: .It KERN_SYSVIPC_SHM_INFO      struct shm_sysctl_info
                    599: .El
                    600: .Pp
                    601: .Bl -tag -width "123456"
                    602: .It Li KERN_SYSVIPC_MSG_INFO
                    603: Return information on the System V style message facility.
                    604: The
                    605: .Sy msg_sysctl_info
                    606: structure is defined in
                    607: .In sys/msg.h .
                    608: .It Li KERN_SYSVIPC_SEM_INFO
                    609: Return information on the System V style semaphore facility.
                    610: The
                    611: .Sy sem_sysctl_info
                    612: structure is defined in
                    613: .In sys/sem.h .
                    614: .It Li KERN_SYSVIPC_SHM_INFO
                    615: Return information on the System V style shared memory facility.
                    616: The
                    617: .Sy shm_sysctl_info
                    618: structure is defined in
                    619: .In sys/shm.h .
                    620: .El
                    621: .It Li kern.ipc.shmmax ( KERN_SYSVIPC_SHMMAX )
                    622: Max shared memory segment size in bytes.
                    623: .It Li kern.ipc.shmmni ( KERN_SYSVIPC_SHMMNI )
                    624: Max number of shared memory identifiers.
                    625: .It Li kern.ipc.shmseg ( KERN_SYSVIPC_SHMSEG )
                    626: Max shared memory segments per process.
                    627: .It Li kern.ipc.shmmaxpgs ( KERN_SYSVIPC_SHMMAXPGS )
                    628: Max amount of shared memory in pages.
                    629: .It Li kern.ipc.shm_use_phys ( KERN_SYSVIPC_SHMUSEPHYS )
                    630: Locking of shared memory in physical memory.
                    631: If 0, memory can be swapped
                    632: out, otherwise it will be locked in physical memory.
                    633: .It Li kern.ipc.msgmni
                    634: Max number of message queue identifiers.
                    635: .It Li kern.ipc.msgseg
                    636: Max number of number of message segments.
                    637: .It Li kern.ipc.semmni
                    638: Max number of number of semaphore identifiers.
                    639: .It Li kern.ipc.semmns
                    640: Max number of number of semaphores in system.
                    641: .It Li kern.ipc.semmnu
                    642: Max number of undo structures in system.
                    643: .El
1.1       pavel     644: .It Li kern.job_control ( KERN_JOB_CONTROL )
1.56      uwe       645: Return 1 if job control is available on this system, otherwise\ 0.
1.1       pavel     646: .It Li kern.labeloffset ( KERN_LABELOFFSET )
1.56      uwe       647: The offset within the sector specified by
                    648: .Dv KERN_LABELSECTOR
                    649: of the
1.1       pavel     650: .Xr disklabel 5 .
                    651: .It Li kern.labelsector ( KERN_LABELSECTOR )
                    652: The sector number containing the
                    653: .Xr disklabel 5 .
                    654: .It Li kern.login_name_max ( KERN_LOGIN_NAME_MAX )
                    655: The size of the storage required for a login name, in bytes,
                    656: including the terminating NUL.
                    657: .It Li kern.logsigexit ( KERN_LOGSIGEXIT )
                    658: If this flag is non-zero, the kernel will
                    659: .Xr log 9
                    660: all process exits due to signals which create a
                    661: .Xr core 5
                    662: file, and whether the coredump was created.
                    663: .It Li kern.mapped_files ( KERN_MAPPED_FILES )
1.58      wiz       664: Returns 1 if the
                    665: .St -p1003.1b-93
                    666: Memory Mapped Files Option is available on this system,
1.56      uwe       667: otherwise\ 0.
1.1       pavel     668: .It Li kern.maxfiles ( KERN_MAXFILES )
                    669: The maximum number of open files that may be open in the system.
                    670: .It Li kern.maxpartitions ( KERN_MAXPARTITIONS )
                    671: The maximum number of partitions allowed per disk.
1.71      wiz       672: .It Li kern.maxlwp
1.70      christos  673: The maximum number of Lightweight Processes (threads) the system allows
                    674: per uid.
1.1       pavel     675: .It Li kern.maxphys ( KERN_MAXPHYS )
                    676: Maximum raw I/O transfer size.
                    677: .It Li kern.maxproc ( KERN_MAXPROC )
                    678: The maximum number of simultaneous processes the system will allow.
                    679: .It Li kern.maxptys ( KERN_MAXPTYS )
                    680: The maximum number of pseudo terminals.
                    681: This value can be both raised and lowered, though it cannot
                    682: be set lower than number of currently used ptys.
                    683: See also
                    684: .Xr pty 4 .
                    685: .It Li kern.maxvnodes ( KERN_MAXVNODES )
                    686: The maximum number of vnodes available on the system.
                    687: This can only be raised.
                    688: .It Li kern.mbuf ( KERN_MBUF )
                    689: Return information about the mbuf control variables.
                    690: Mbufs are data structures which store network packets and other data
                    691: structures in the networking code, see
                    692: .Xr mbuf 9 .
                    693: The third level names for the mbuf variables are detailed below.
                    694: The changeable column shows whether a process with appropriate
                    695: privilege may change the value.
1.21      joerg     696: .Bl -column "kern.mbuf.nmbclusters" "integer" "Changeable" -offset indent
1.1       pavel     697: .It Sy Third level name        Type    Changeable
                    698: .\" XXX Changeable? really?
                    699: .It kern.mbuf.mblowat  integer yes
                    700: .It kern.mbuf.mclbytes integer yes
                    701: .It kern.mbuf.mcllowat integer yes
                    702: .It kern.mbuf.msize    integer yes
                    703: .It kern.mbuf.nmbclusters      integer yes
                    704: .El
                    705: .Pp
                    706: The variables are as follows:
                    707: .Bl -tag -width "123456"
                    708: .It Li kern.mbuf.mblowat ( MBUF_MBLOWAT )
                    709: The mbuf low water mark.
                    710: .It Li kern.mbuf.mclbytes ( MBUF_MCLBYTES )
                    711: The mbuf cluster size.
                    712: .It Li kern.mbuf.mcllowat ( MBUF_MCLLOWAT )
                    713: The mbuf cluster low water mark.
                    714: .It Li kern.mbuf.msize ( MBUF_MSIZE )
                    715: The mbuf base size.
                    716: .It Li kern.mbuf.nmbclusters ( MBUF_NMBCLUSTERS )
                    717: The limit on the number of mbuf clusters.
                    718: The variable can only be increased, and only increased on machines with
                    719: direct-mapped pool pages.
                    720: .El
                    721: .It Li kern.memlock ( KERN_MEMLOCK )
1.58      wiz       722: Returns 1 if the
                    723: .St -p1003.1b-93
                    724: Process Memory Locking Option is available on this system,
1.56      uwe       725: otherwise\ 0.
1.1       pavel     726: .It Li kern.memlock_range ( KERN_MEMLOCK_RANGE )
1.58      wiz       727: Returns 1 if the
                    728: .St -p1003.1b-93
                    729: Range Memory Locking Option is available on this system,
1.56      uwe       730: otherwise\ 0.
1.1       pavel     731: .It Li kern.memory_protection ( KERN_MEMORY_PROTECTION )
1.58      wiz       732: Returns 1 if the
                    733: .St -p1003.1b-93
                    734: Memory Protection Option is available on this system,
1.56      uwe       735: otherwise\ 0.
1.42      jruoho    736: .It Li kern.module
                    737: Settings related to kernel modules.
                    738: The third level names for the settings are described below.
                    739: .Bl -column "kern.module.autoload" "integer" "Changeable" -offset indent
                    740: .It Sy Third level name        Type    Changeable
                    741: .It kern.module.autoload       integer yes
1.78      pgoyette  742: .It kern.module.autotime       integer yes
1.42      jruoho    743: .It kern.module.verbose        integer yes
                    744: .El
                    745: .Pp
                    746: The variables are as follows:
                    747: .Bl -tag -width "123456"
                    748: .It Li kern.module.autoload
                    749: A boolean that controls whether kernel modules are loaded automatically.
1.52      jruoho    750: See
1.53      jruoho    751: .Xr module 7
1.42      jruoho    752: for additional details.
1.78      pgoyette  753: .It Li kern.module.autotime
                    754: An integer that controls the delay before an attempt is made to
1.79      wiz       755: automatically unload a module that was auto-loaded.
                    756: Setting this value to zero disables the auto-unload function.
1.42      jruoho    757: .It Li kern.module.verbose
                    758: A boolean that enables or disables verbose
                    759: debug messages related to kernel modules.
                    760: .El
1.49      jruoho    761: .It Li kern.monotonic_clock ( KERN_MONOTONIC_CLOCK )
1.58      wiz       762: Returns the standard version the implementation of the
                    763: .St -p1003.1b-93
1.49      jruoho    764: Monotonic Clock Option conforms to,
1.56      uwe       765: otherwise\ 0.
1.48      jruoho    766: .It Li kern.mqueue
                    767: Settings related to
                    768: .Tn POSIX
                    769: message queues; see
                    770: .Xr mqueue 3 .
                    771: This node is created dynamically when
                    772: the corresponding kernel module is loaded.
                    773: The third level names for the settings are described below.
                    774: .Bl -column "kern.mqueue.mq_max_msgsize" "integer" "Changeable" -offset indent
                    775: .It Sy Third level name        Type    Changeable
                    776: .It kern.mqueue.mq_open_max    integer yes
                    777: .It kern.mqueue.mq_prio_max    integer yes
                    778: .It kern.mqueue.mq_max_msgsize integer yes
                    779: .It kern.mqueue.mq_def_maxmsg  integer yes
                    780: .It kern.mqueue.mq_max_maxmsg  integer yes
                    781: .El
                    782: .Pp
                    783: The variables are:
                    784: .Bl -tag -width "123456"
                    785: .It Li kern.mqueue.mq_open_max
                    786: The maximum number of message queue descriptors any single process can open.
                    787: .It Li kern.mqueue.mq_prio_max
                    788: The maximum priority of a message.
                    789: .It Li kern.mqueue.mq_max_msgsize
                    790: The maximum size of a message in a message queue.
                    791: .It Li kern.mqueue.mq_def_maxmsg
                    792: The default maximum message count.
                    793: .It Li kern.mqueue.mq_max_maxmsg
                    794: The maximum number of messages in a message queue.
                    795: .El
1.1       pavel     796: .It Li kern.msgbuf ( KERN_MSGBUF )
                    797: The kernel message buffer, rotated so that the head of the circular kernel
                    798: message buffer is at the start of the returned data.
                    799: The returned data may contain NUL bytes.
                    800: .It Li kern.msgbufsize ( KERN_MSGBUFSIZE )
                    801: The maximum number of characters that the kernel message buffer can hold.
                    802: .It Li kern.ngroups ( KERN_NGROUPS )
                    803: The maximum number of supplemental groups.
1.41      jruoho    804: .\" .It Li kern.no_sa_support
                    805: .\" XXX: Undocumented.
1.1       pavel     806: .It Li kern.ntptime ( KERN_NTPTIME )
                    807: A
1.56      uwe       808: .Vt struct ntptimeval
1.1       pavel     809: structure is returned.
                    810: This structure contains data used by the
                    811: .Xr ntpd 8
                    812: program.
                    813: .It Li kern.osrelease ( KERN_OSRELEASE )
                    814: The system release string.
                    815: .It Li kern.osrevision ( KERN_OSREV )
                    816: The system revision string.
                    817: .It Li kern.ostype ( KERN_OSTYPE )
                    818: The system type string.
1.41      jruoho    819: .\".It Li kern.panic_now
                    820: .\" XXX: Undocumented.
1.1       pavel     821: .It Li kern.pipe ( KERN_PIPE )
                    822: Pipe settings.
                    823: The third level names for the  integer pipe settings is detailed below.
                    824: The changeable column shows whether a process with appropriate
                    825: privilege may change the value.
1.21      joerg     826: .Bl -column "kern.pipe.maxbigpipes" "integer" "Changeable" -offset indent
1.1       pavel     827: .It Sy Third level name        Type    Changeable
                    828: .It kern.pipe.kvasiz   integer yes
                    829: .It kern.pipe.maxbigpipes      integer yes
                    830: .It kern.pipe.maxkvasz integer yes
                    831: .It kern.pipe.limitkva integer yes
                    832: .It kern.pipe.nbigpipes        integer yes
                    833: .El
                    834: .Pp
                    835: The variables are as follows:
                    836: .Bl -tag -width "123456"
                    837: .It Li kern.pipe.kvasiz ( KERN_PIPE_KVASIZ )
                    838: Amount of kernel memory consumed by pipe buffers.
                    839: .It Li kern.pipe.maxbigpipes ( KERN_PIPE_MAXBIGPIPES )
1.56      uwe       840: Maximum number of
                    841: .Dq big
                    842: pipes.
1.1       pavel     843: .It Li kern.pipe.maxkvasz ( KERN_PIPE_MAXKVASZ )
                    844: Maximum amount of kernel memory to be used for pipes.
                    845: .It Li kern.pipe.limitkva ( KERN_PIPE_LIMITKVA )
                    846: Limit for direct transfers via page loan.
                    847: .It Li kern.pipe.nbigpipes ( KERN_PIPE_NBIGPIPES )
1.56      uwe       848: Number of
                    849: .Dq big
                    850: pipes.
1.1       pavel     851: .El
1.39      jruoho    852: .\" XXX: Undocumented .It Li kern.posix ( ? )
                    853: .\"     This is a node in which the only variable is semmax.
1.1       pavel     854: .It Li kern.posix1version ( KERN_POSIX1 )
1.58      wiz       855: The version of ISO/IEC 9945
                    856: .Pq St -p1003.1
                    857: with which the system attempts to comply.
1.51      jruoho    858: .It Li kern.posix_aio
                    859: The version of
                    860: .St -p1003.1
                    861: and its Asynchronous I/O option to which the system attempts to conform.
1.1       pavel     862: .It Li kern.posix_barriers ( KERN_POSIX_BARRIERS )
                    863: The version of
                    864: .St -p1003.1
                    865: and its
                    866: Barriers
                    867: option to which the system attempts to conform,
1.56      uwe       868: otherwise\ 0.
1.1       pavel     869: .It Li kern.posix_reader_writer_locks ( KERN_POSIX_READER_WRITER_LOCKS )
                    870: The version of
                    871: .St -p1003.1
                    872: and its
                    873: Read-Write Locks
                    874: option to which the system attempts to conform,
1.56      uwe       875: otherwise\ 0.
1.41      jruoho    876: .\".It Li kern.posix_sched
                    877: .\" XXX: Undocumented.
1.1       pavel     878: .It Li kern.posix_semaphores ( KERN_POSIX_SEMAPHORES )
                    879: The version of
                    880: .St -p1003.1
                    881: and its
                    882: Semaphores
                    883: option to which the system attempts to conform,
1.56      uwe       884: otherwise\ 0.
1.1       pavel     885: .It Li kern.posix_spin_locks ( KERN_POSIX_SPIN_LOCKS )
                    886: The version of
                    887: .St -p1003.1
                    888: and its
                    889: Spin Locks
                    890: option to which the system attempts to conform,
1.56      uwe       891: otherwise\ 0.
1.1       pavel     892: .It Li kern.posix_threads ( KERN_POSIX_THREADS )
                    893: The version of
                    894: .St -p1003.1
                    895: and its
                    896: Threads
                    897: option to which the system attempts to conform,
1.56      uwe       898: otherwise\ 0.
1.1       pavel     899: .It Li kern.posix_timers ( KERN_POSIX_TIMERS )
                    900: The version of
                    901: .St -p1003.1
                    902: and its
                    903: Timers
                    904: option to which the system attempts to conform,
1.56      uwe       905: otherwise\ 0.
1.1       pavel     906: .It Li kern.proc ( KERN_PROC )
                    907: Return the entire process table, or a subset of it.
                    908: An array of
1.56      uwe       909: .Vt struct kinfo_proc
1.1       pavel     910: structures is returned,
                    911: whose size depends on the current number of such objects in the system.
                    912: The third and fourth level numeric names are as follows:
1.21      joerg     913: .Bl -column "KERN_PROC_SESSION" "Fourth level is:" -offset indent
1.1       pavel     914: .It Sy Third level name        Fourth level is:
1.21      joerg     915: .It KERN_PROC_ALL      None
                    916: .It KERN_PROC_GID      A group ID
                    917: .It KERN_PROC_PID      A process ID
                    918: .It KERN_PROC_PGRP     A process group
                    919: .It KERN_PROC_RGID     A real group ID
                    920: .It KERN_PROC_RUID     A real user ID
                    921: .It KERN_PROC_SESSION  A session ID
                    922: .It KERN_PROC_TTY      A tty device
                    923: .It KERN_PROC_UID      A user ID
1.1       pavel     924: .El
                    925: .It Li kern.proc2 ( KERN_PROC2 )
1.56      uwe       926: As for
                    927: .Dv KERN_PROC ,
                    928: but an array of
                    929: .Vt struct kinfo_proc2
1.1       pavel     930: structures are returned.
                    931: The fifth level name is the size of the
1.56      uwe       932: .Vt struct kinfo_proc2
1.1       pavel     933: and the sixth level name is the number of structures to return.
                    934: .It Li kern.proc_args ( KERN_PROC_ARGS )
                    935: Return the argv or environment strings (or the number thereof)
                    936: of a process.
                    937: Multiple strings are returned separated by NUL characters.
                    938: The third level name is the process ID.
                    939: The fourth level name is as follows:
1.21      joerg     940: .Bl -column "KERN_PROG_NARGV" "The number of environ strings" -offset indent
                    941: .It KERN_PROC_ARGV     The argv strings
                    942: .It KERN_PROC_ENV      The environ strings
                    943: .It KERN_PROC_NARGV    The number of argv strings
                    944: .It KERN_PROC_NENV     The number of environ strings
1.1       pavel     945: .El
                    946: .It Li kern.profiling ( KERN_PROF )
                    947: Return profiling information about the kernel.
                    948: If the kernel is not compiled for profiling,
1.56      uwe       949: attempts to retrieve any of the
                    950: .Dv KERN_PROF
                    951: values will fail with
1.1       pavel     952: .Er EOPNOTSUPP .
                    953: The third level names for the string and integer profiling information
                    954: is detailed below.
                    955: The changeable column shows whether a process with appropriate
                    956: privilege may change the value.
1.21      joerg     957: .Bl -column "kern.profiling.gmonparam" "struct gmonparam" "Changeable" -offset indent
1.1       pavel     958: .It Sy Third level name        Type    Changeable
                    959: .It kern.profiling.count       u_short[\|]     yes
                    960: .It kern.profiling.froms       u_short[\|]     yes
                    961: .It kern.profiling.gmonparam   struct gmonparam        no
                    962: .It kern.profiling.state       integer yes
                    963: .It kern.profiling.tos struct tostruct yes
                    964: .El
                    965: .Pp
                    966: The variables are as follows:
                    967: .Bl -tag -width "123456"
                    968: .It Li kern.profiling.count ( GPROF_COUNT )
                    969: Array of statistical program counter counts.
                    970: .It Li kern.profiling.froms ( GPROF_FROMS )
                    971: Array indexed by program counter of call-from points.
                    972: .It Li kern.profiling.gmonparams ( GPROF_GMONPARAM )
                    973: Structure giving the sizes of the above arrays.
                    974: .It Li kern.profiling.state ( GPROF_STATE )
                    975: Profiling state.
1.56      uwe       976: If set to
                    977: .Dv GMON_PROF_ON ,
                    978: starts profiling.
                    979: If set to
                    980: .Dv GMON_PROF_OFF ,
                    981: stops profiling.
1.1       pavel     982: .It Li kern.profiling.tos ( GPROF_TOS )
                    983: Array of
1.56      uwe       984: .Vt struct tostruct
1.1       pavel     985: describing destination of calls and their counts.
                    986: .El
1.41      jruoho    987: .\" .It Li kern.pset
                    988: .\" XXX: Undocumented.
1.1       pavel     989: .It Li kern.rawpartition ( KERN_RAWPARTITION )
                    990: The raw partition of a disk (a == 0).
                    991: .It Li kern.root_device ( KERN_ROOT_DEVICE )
                    992: The name of the root device (e.g.,
                    993: .Dq wd0 ) .
                    994: .It Li kern.root_partition ( KERN_ROOT_PARTITION )
                    995: The root partition on the root device (a == 0).
                    996: .It Li kern.rtc_offset ( KERN_RTC_OFFSET )
                    997: Return the offset of real time clock from UTC in minutes.
                    998: .It Li kern.saved_ids ( KERN_SAVED_IDS )
                    999: Returns 1 if saved set-group and saved set-user ID is available.
                   1000: .It Li kern.sbmax ( KERN_SBMAX )
                   1001: Maximum socket buffer size.
                   1002: .\" XXX units?
                   1003: .It Li kern.securelevel ( KERN_SECURELVL )
1.25      elad     1004: See
                   1005: .Xr secmodel_securelevel 9 .
1.41      jruoho   1006: .\" .It Li kern.sched
                   1007: .\" XXX: Undocumented.
1.1       pavel    1008: .It Li kern.somaxkva ( KERN_SOMAXKVA )
                   1009: Maximum amount of kernel memory to be used for socket buffers.
                   1010: .\" XXX units?
                   1011: .It Li kern.synchronized_io ( KERN_SYNCHRONIZED_IO )
1.58      wiz      1012: Returns 1 if the
                   1013: .St -p1003.1b-93
                   1014: Synchronized I/O Option is available on this system,
1.56      uwe      1015: otherwise\ 0.
1.19      christos 1016: .It Li kern.timecounter ( dynamic )
                   1017: Display and control the timecounter source of the system.
1.21      joerg    1018: .Bl -column "kern.timecounter.timestepwarnings" "integer" "Changeable" -offset indent
1.19      christos 1019: .It Sy Third level name        Type    Changeable
                   1020: .It kern.timecounter.choice    string  no
                   1021: .It kern.timecounter.hardware  string  yes
                   1022: .It kern.timecounter.timestepwarnings  integer yes
                   1023: .El
                   1024: .Pp
                   1025: The variables are as follows:
                   1026: .Bl -tag -width "123456"
                   1027: .It Li kern.timecounter.choice ( dynamic )
                   1028: The list of available timecounters with their quality and frequency.
                   1029: .It Li kern.timecounter.hardware ( dynamic )
                   1030: The currently selected timecounter source.
                   1031: .It Li kern.timecounter.timestepwarnings ( dynamic )
                   1032: If non-zero display a message each time the time is stepped.
                   1033: .El
1.1       pavel    1034: .It Li kern.timex ( KERN_TIMEX )
                   1035: Not available.
                   1036: .It Li kern.tkstat ( KERN_TKSTAT )
                   1037: Return information about the number of characters sent and received
                   1038: on ttys.
                   1039: The third level names for the tty statistic variables are detailed below.
                   1040: The changeable column shows whether a process
                   1041: with appropriate privilege may change the value.
1.21      joerg    1042: .Bl -column "kern.tkstat.cancc" "quad" "Changeable" -offset indent
1.1       pavel    1043: .It Sy Third level name        Type    Changeable
                   1044: .It kern.tkstat.cancc  quad    no
                   1045: .It kern.tkstat.nin    quad    no
                   1046: .It kern.tkstat.nout   quad    no
                   1047: .It kern.tkstat.rawcc  quad    no
                   1048: .El
                   1049: .Pp
                   1050: The variables are as follows:
                   1051: .Bl -tag -width "123456"
                   1052: .It Li kern.tkstat.cancc ( KERN_TKSTAT_CANCC )
                   1053: The number of canonical input characters.
                   1054: .It Li kern.tkstat.nin ( KERN_TKSTAT_NIN )
                   1055: The total number of input characters.
                   1056: .It Li kern.tkstat.nout ( KERN_TKSTAT_NOUT )
                   1057: The total number of output characters.
                   1058: .It Li kern.tkstat.rawcc ( KERN_TKSTAT_RAWCC )
                   1059: The number of raw input characters.
                   1060: .El
1.66      christos 1061: .It Li kern.tty
                   1062: The third level names for the tty setup variables are detailed below.
                   1063: The changeable column shows whether a process
                   1064: with appropriate privilege may change the value.
                   1065: .Bl -column "kern.tty.qsize" "int" "Changeable" -offset indent
                   1066: .It Sy Third level name        Type    Changeable
                   1067: .It kern.tty.qsize     int     yes
                   1068: .El
                   1069: .Pp
                   1070: The variables are as follows:
                   1071: .Bl -tag -width "123456"
                   1072: .It Li kern.tty.qsize
                   1073: Control/display the size of the default input and output queues selected
                   1074: during tty creation.
                   1075: Is converted to a power of two and its range is between
                   1076: .Dv 1024
                   1077: and
                   1078: .Dv 65536 .
                   1079: .El
1.70      christos 1080: .It Li kern.uidinfo
                   1081: Resource usage for the current user.
                   1082: .Bl -column "kern.uidinfo.proccnt" "integer" "Changeable" -offset indent
                   1083: .It Sy Third level name        Type    Changeable
                   1084: .It kern.uidinfo.proccnt       integer no
                   1085: .It kern.uidinfo.lwpcnt        integer no
                   1086: .It kern.uidinfo.lockcnt       integer no
                   1087: .It kern.uidinfo.sbsize        integer no
                   1088: .El
                   1089: .Bl -tag -width "123456"
                   1090: .It Li kern.uidinfo.proccnt
                   1091: Returns the number of active processes for the current user.
                   1092: .It Li kern.uidinfo.lwpcnt
                   1093: Returns the number of active threads for the current user; the first thread
                   1094: of each process is not counted.
                   1095: .It Li kern.uidinfo.lockcnt
                   1096: Number of locks held by the current user.
                   1097: .It Li kern.uidinfo.sbsize
                   1098: Number of bytes in socket buffers allocated to the current user.
                   1099: .El
1.1       pavel    1100: .It Li kern.urandom ( KERN_URND )
                   1101: Random integer value.
1.45      jruoho   1102: .It Li kern.usercrypto
                   1103: When enabled, allows userland to
                   1104: .Xr open 2
                   1105: the
                   1106: .Pa /dev/crypto
                   1107: special device, used by the
                   1108: .Xr crypto 4
                   1109: system.
                   1110: .It Li kern.userasymcrypto
                   1111: Enables or disables the use of software asymmetric crypto support in the
                   1112: .Xr crypto 4
                   1113: system.
1.1       pavel    1114: .It Li kern.veriexec
1.40      jruoho   1115: Runtime information for
                   1116: .Xr veriexec 8 .
                   1117: .Bl -column "kern.veriexec.algorithms" "integer" "Changeable" -offset indent
                   1118: .It Sy Third level name        Type    Changeable
                   1119: .It kern.veriexec.algorithms   string  no
                   1120: .It kern.veriexec.count        node    not applicable
                   1121: .It kern.veriexec.strict       integer yes
                   1122: .It kern.veriexec.verbose      integer yes
                   1123: .El
1.1       pavel    1124: .Bl -tag -width "123456"
                   1125: .It Li kern.veriexec.algorithms
                   1126: Returns a string with the supported algorithms in Veriexec.
                   1127: .It Li kern.veriexec.count
                   1128: Sub-nodes are added to this node as new mounts are monitored by Veriexec.
                   1129: Each mount will be under its own
                   1130: .No tableN
                   1131: node.
                   1132: Under each node there will be three variables, indicating the mount
1.57      wiz      1133: point, the file system type, and the number of entries.
1.1       pavel    1134: .It Li kern.veriexec.strict
                   1135: Controls the strict level of Veriexec.
                   1136: See
1.62      jruoho   1137: .Xr security 7
1.1       pavel    1138: for more information on each level's implications.
                   1139: .It Li kern.veriexec.verbose
                   1140: Controls the verbosity level of Veriexec.
                   1141: If 0, only the minimal
                   1142: indication required will be given about what's happening - fingerprint
                   1143: mismatches, removal of entries from the tables, modification of a
                   1144: fingerprinted file.
                   1145: If 1, more messages will be printed (ie., when a file with a valid
                   1146: fingerprint is accessed).
                   1147: Verbose level 2 is debug mode.
                   1148: .El
                   1149: .It Li kern.version ( KERN_VERSION )
                   1150: The system version string.
                   1151: .It Li kern.vnode ( KERN_VNODE )
                   1152: Return the entire vnode table.
                   1153: Note, the vnode table is not necessarily a consistent snapshot of
                   1154: the system.
                   1155: The returned data consists of an array whose size depends on the
                   1156: current number of such objects in the system.
                   1157: Each element of the array contains the kernel address of a vnode
1.56      uwe      1158: .Vt struct vnode *
1.1       pavel    1159: followed by the vnode itself
1.56      uwe      1160: .Vt struct vnode .
1.43      jruoho   1161: .\" XXX: Undocumented: kern.lwp: no children?
1.1       pavel    1162: .El
1.50      jruoho   1163: .Ss The machdep.* subtree
1.1       pavel    1164: The set of variables defined is architecture dependent.
                   1165: Most architectures define at least the following variables.
1.43      jruoho   1166: .Bl -column "machdep.booted_kernel" "Type" "Changeable" -offset indent
1.1       pavel    1167: .It Sy Second level name       Type    Changeable
1.43      jruoho   1168: .It Li machdep.booted_kernel   string  no
1.1       pavel    1169: .El
1.43      jruoho   1170: .\" XXX: Document the above.
1.50      jruoho   1171: .Ss The net.* subtree
1.1       pavel    1172: The string and integer information available for the
                   1173: .Li net
                   1174: level is detailed below.
                   1175: The changeable column shows whether a process with appropriate
                   1176: privilege may change the value.
                   1177: The second and third levels are typically the protocol family and
                   1178: protocol number, though this is not always the case.
1.21      joerg    1179: .Bl -column "Second level name" "IPsec key management values" "Changeable" -offset indent
1.1       pavel    1180: .It Sy Second level name       Type    Changeable
                   1181: .It net.route  routing messages        no
                   1182: .It net.inet   IPv4 values     yes
                   1183: .It net.inet6  IPv6 values     yes
                   1184: .It net.key    IPsec key management values     yes
                   1185: .El
                   1186: .Pp
                   1187: .Bl -tag -width "123456"
                   1188: .It Li net.route ( PF_ROUTE )
                   1189: .\" XXX really?
                   1190: Return the entire routing table or a subset of it.
                   1191: The data is returned as a sequence of routing messages (see
                   1192: .Xr route 4
                   1193: for the header file, format and meaning).
                   1194: The length of each message is contained in the message header.
                   1195: .Pp
1.56      uwe      1196: The third level name is a protocol number, which is currently always\ 0.
1.1       pavel    1197: The fourth level name is an address family, which may be set to 0 to
                   1198: select all address families.
                   1199: The fifth and sixth level names are as follows:
1.21      joerg    1200: .Bl -column "Fifth level name" "Sixth level is:" -offset indent
1.1       pavel    1201: .It Sy Fifth level name        Sixth level is:
1.21      joerg    1202: .It NET_RT_FLAGS       rtflags
                   1203: .It NET_RT_DUMP        None
                   1204: .It NET_RT_IFLIST      None
1.1       pavel    1205: .El
                   1206: .It Li net.inet ( PF_INET )
                   1207: Get or set various global information about the IPv4
                   1208: .Pq Internet Protocol version 4 .
                   1209: The third level name is the protocol.
                   1210: The fourth level name is the variable name.
                   1211: The currently defined protocols and names are:
1.21      joerg    1212: .Bl -column "Protocol name" "sack.globalmaxholes" "integer" "Changeable" -offset 4n
1.1       pavel    1213: .It Sy Protocol name   Variable name   Type    Changeable
                   1214: .It arp        down    integer yes
                   1215: .It arp        keep    integer yes
1.65      christos 1216: .It arp        log_movements   integer yes
                   1217: .It arp        log_permanent_modify    integer yes
                   1218: .It arp        log_wrong_iface integer yes
1.1       pavel    1219: .It arp        prune   integer yes
                   1220: .It arp        refresh integer yes
                   1221: .It carp       allow   integer yes
                   1222: .It carp       preempt integer yes
                   1223: .It carp       log     integer yes
                   1224: .It carp       arpbalance      integer yes
                   1225: .It icmp       errppslimit     integer yes
                   1226: .It icmp       maskrepl        integer yes
                   1227: .It icmp       rediraccept     integer yes
                   1228: .It icmp       redirtimeout    integer yes
1.28      christos 1229: .It icmp       bmcastecho      integer yes
1.1       pavel    1230: .It ip allowsrcrt      integer yes
1.72      christos 1231: .It ip         anonportalgo.selected   string  yes
                   1232: .It ip         anonportalgo.available  string  yes
1.74      christos 1233: .It ip         anonportalgo.reserve    struct  yes
1.1       pavel    1234: .It ip anonportmax     integer yes
                   1235: .It ip anonportmin     integer yes
                   1236: .It ip checkinterface  integer yes
                   1237: .It ip directed-broadcast      integer yes
                   1238: .It ip do_loopback_cksum       integer yes
                   1239: .It ip forwarding      integer yes
                   1240: .It ip forwsrcrt       integer yes
                   1241: .It ip gifttl  integer yes
                   1242: .It ip grettl  integer yes
1.8       liamjfoy 1243: .It ip hashsize        integer yes
1.1       pavel    1244: .It ip hostzerobroadcast       integer yes
                   1245: .It ip lowportmin      integer yes
                   1246: .It ip lowportmax      integer yes
                   1247: .It ip maxflows        integer yes
                   1248: .It ip maxfragpackets  integer yes
                   1249: .It ip mtudisc integer yes
                   1250: .It ip mtudisctimeout  integer yes
                   1251: .It ip random_id       integer yes
                   1252: .It ip redirect        integer yes
                   1253: .It ip subnetsarelocal integer yes
                   1254: .It ip ttl     integer yes
                   1255: .It tcp        rfc1323 integer yes
                   1256: .It tcp        sendspace       integer yes
                   1257: .It tcp        recvspace       integer yes
                   1258: .It tcp        mssdflt integer yes
                   1259: .It tcp        syn_cache_limit integer yes
                   1260: .It tcp        syn_bucket_limit        integer yes
                   1261: .It tcp        syn_cache_interval      integer yes
                   1262: .It tcp        init_win        integer yes
                   1263: .It tcp        init_win_local  integer yes
                   1264: .It tcp        mss_ifmtu       integer yes
                   1265: .It tcp        win_scale       integer yes
                   1266: .It tcp        timestamps      integer yes
                   1267: .It tcp        compat_42       integer yes
                   1268: .It tcp        cwm     integer yes
                   1269: .It tcp        cwm_burstsize   integer yes
                   1270: .It tcp        ack_on_push     integer yes
                   1271: .It tcp        keepidle        integer yes
                   1272: .It tcp        keepintvl       integer yes
                   1273: .It tcp        keepcnt integer yes
                   1274: .It tcp        slowhz  integer no
1.12      christos 1275: .It tcp        keepinit        integer yes
1.1       pavel    1276: .It tcp        log_refused     integer yes
                   1277: .It tcp        rstppslimit     integer yes
                   1278: .It tcp        ident   struct  no
1.13      christos 1279: .It tcp        drop    struct  no
1.1       pavel    1280: .It tcp        sack.enable     integer yes
                   1281: .It tcp        sack.globalholes        integer no
                   1282: .It tcp        sack.globalmaxholes     integer yes
                   1283: .It tcp        sack.maxholes   integer yes
                   1284: .It tcp        ecn.enable      integer yes
                   1285: .It tcp        ecn.maxretries  integer yes
                   1286: .It tcp        congctl.selected        string  yes
                   1287: .It tcp        congctl.available       string  yes
                   1288: .It tcp        abc.enable      integer yes
                   1289: .It tcp        abc.aggressive  integer yes
                   1290: .It udp        checksum        integer yes
                   1291: .It udp        do_loopback_cksum       integer yes
                   1292: .It udp        recvspace       integer yes
                   1293: .It udp        sendspace       integer yes
                   1294: .El
                   1295: .Pp
                   1296: The variables are as follows:
                   1297: .Bl -tag -width "123456"
                   1298: .It Li arp.down
                   1299: Failed ARP entry lifetime.
                   1300: .It Li arp.keep
                   1301: Valid ARP entry lifetime.
                   1302: .It Li arp.prune
                   1303: ARP cache pruning interval.
                   1304: .It Li arp.refresh
                   1305: ARP entry refresh interval.
                   1306: .It Li carp.allow
                   1307: If set to 0, incoming
                   1308: .Xr carp 4
                   1309: packets will not be processed.
                   1310: If set to any other value, processing will occur.
                   1311: Enabled by default.
                   1312: .It Li carp.arpbalance
                   1313: If set to any value other than 0, the ARP balancing functionality of
                   1314: .Xr carp 4
                   1315: is enabled.
                   1316: When ARP requests are received for an IP address which is part of any virtual
                   1317: host, carp will hash the source IP in the ARP request to select one of the
                   1318: virtual hosts from the set of all the virtual hosts which have that IP address.
                   1319: The master of that host will respond with the correct virtual MAC address.
                   1320: Disabled by default.
                   1321: .It Li carp.log
                   1322: If set to any value other than 0,
                   1323: .Xr carp 4
                   1324: will log errors.
                   1325: Disabled by default.
                   1326: .It Li carp.preempt
                   1327: If set to 0,
                   1328: .Xr carp 4
                   1329: will not attempt to become master if it is receiving advertisements from
                   1330: another active master.
                   1331: If set to any other value, carp will become master of the virtual host if it
                   1332: believes it can send advertisements more frequently than the current master.
                   1333: Disabled by default.
                   1334: .It Li ip.allowsrcrt
                   1335: If set to 1, the host accepts source routed packets.
1.72      christos 1336: .It Li ip.anonportalgo.available
                   1337: The available RFC 6056 port randomization algorithms.
1.74      christos 1338: .It Li ip.anonportalgo.reserve
                   1339: A bitmask of ports that will not be used during anonymous or privileged
                   1340: port selection.
1.72      christos 1341: .It Li ip.anonportalgo.selected
                   1342: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1343: .It Li ip.anonportmax
                   1344: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1345: This cannot be set to less than 1024 or greater than 65535, and must
                   1346: be greater than
                   1347: .Li ip.anonportmin .
                   1348: .It Li ip.anonportmin
                   1349: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1350: This cannot be set to less than 1024 or greater than 65535.
                   1351: .It Li ip.checkinterface
                   1352: If set to non-zero, the host will reject packets addressed to it
                   1353: that arrive on an interface not bound to that address.
                   1354: Currently, this must be disabled if ipnat is used to translate the
                   1355: destination address to another local interface, or if addresses
                   1356: are added to the loopback interface instead of the interface where
                   1357: the packets for those packets are received.
                   1358: .It Li ip.directed-broadcast
                   1359: If set to 1, enables directed broadcast behavior for the host.
                   1360: .It Li ip.do_loopback_cksum
                   1361: Perform IP checksum on loopback.
                   1362: .It Li ip.forwarding
                   1363: If set to 1, enables IP forwarding for the host,
                   1364: meaning that the host is acting as a router.
                   1365: .It Li ip.forwsrcrt
                   1366: If set to 1, enables forwarding of source-routed packets for the host.
                   1367: This value may only be changed if the kernel security level is less than 1.
                   1368: .It Li ip.gifttl
                   1369: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1370: .Xr gif 4
                   1371: tunnel interface.
                   1372: .It Li ip.grettl
                   1373: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1374: .Xr gre 4
                   1375: tunnel interface.
1.8       liamjfoy 1376: .It Li ip.hashsize
                   1377: The size of IPv4 Fast Forward hash table.
                   1378: This value must be a power of 2 (64, 256...).
                   1379: A larger hash table size results in fewer collisions.
                   1380: Also see
                   1381: .Li ip.maxflows .
1.1       pavel    1382: .It Li ip.hostzerobroadcast
                   1383: All zeroes address is broadcast address.
                   1384: .It Li ip.lowportmax
                   1385: The highest port number to use for TCP and UDP reserved port allocation.
                   1386: This cannot be set to less than 0 or greater than 1024, and must
                   1387: be greater than
                   1388: .Li ip.lowportmin .
                   1389: .It Li ip.lowportmin
                   1390: The lowest port number to use for TCP and UDP reserved port allocation.
                   1391: This cannot be set to less than 0 or greater than 1024, and must
                   1392: be smaller than
                   1393: .Li ip.lowportmax .
                   1394: .It Li ip.maxflows
1.5       liamjfoy 1395: IPv4 Fast Forwarding is enabled by default.
                   1396: If set to 0, IPv4 Fast Forwarding is disabled.
1.1       pavel    1397: .Li ip.maxflows
                   1398: controls the maximum amount of flows which can be created.
                   1399: The default value is 256.
                   1400: .It Li ip.maxfragpackets
                   1401: The maximum number of fragmented packets the node will accept.
                   1402: 0 means that the node will not accept any fragmented packets.
                   1403: \-1 means that the node will accept as many fragmented packets as it receives.
                   1404: The flag is provided basically for avoiding possible DoS attacks.
                   1405: .It Li ip.mtudisc
                   1406: If set to 1, enables Path MTU Discovery (RFC 1191).
                   1407: When Path MTU Discovery is enabled, the transmitted TCP segment
                   1408: size will be determined by the advertised maximum segment size
                   1409: (MSS) from the remote end, as constrained by the path MTU.
                   1410: If MTU Discovery is disabled, the transmitted segment size will
                   1411: never be greater than
                   1412: .Li tcp.mssdflt
                   1413: (the local maximum segment size).
                   1414: .It Li ip.mtudisctimeout
                   1415: The number of seconds in which a route added by the Path MTU
                   1416: Discovery engine will time out.
                   1417: When the route times out, the Path
                   1418: MTU Discovery engine will attempt to probe a larger path MTU.
                   1419: .It Li ip.random_id
                   1420: Assign random ip_id values.
                   1421: .It Li ip.redirect
                   1422: If set to 1, ICMP redirects may be sent by the host.
                   1423: This option is ignored unless the host is routing IP packets,
                   1424: and should normally be enabled on all systems.
                   1425: .It Li ip.subnetsarelocal
                   1426: If set to 1, subnets are to be considered local addresses.
                   1427: .It Li ip.ttl
                   1428: The maximum time-to-live (hop count) value for an IP packet sourced by
                   1429: the system.
                   1430: This value applies to normal transport protocols, not to ICMP.
                   1431: .It Li icmp.errppslimit
                   1432: The variable specifies the maximum number of outgoing ICMP error messages,
                   1433: per second.
                   1434: ICMP error messages that exceeded the value are subject to rate limitation
                   1435: and will not go out from the node.
                   1436: Negative value disables rate limitation.
                   1437: .It Li icmp.maskrepl
                   1438: If set to 1, ICMP network mask requests are to be answered.
                   1439: .It Li icmp.rediraccept
                   1440: If set to non-zero, the host will accept ICMP redirect packets.
                   1441: Note that routers will never accept ICMP redirect packets,
                   1442: and the variable is meaningful on IP hosts only.
                   1443: .It Li icmp.redirtimeout
                   1444: The variable specifies lifetime of routing entries generated by incoming
                   1445: ICMP redirect.
                   1446: This defaults to 600 seconds.
                   1447: .It Li icmp.returndatabytes
                   1448: Number of bytes to return in an ICMP error message.
1.28      christos 1449: .It Li icmp.bmcastecho
                   1450: If set to 1, enables responding to ICMP echo or timestamp request to the
                   1451: broadcast address.
1.1       pavel    1452: .It Li tcp.ack_on_push
                   1453: If set to 1, TCP is to immediately transmit an ACK upon reception of
                   1454: a packet with PUSH set.
                   1455: This can avoid losing a round trip time in some rare situations,
                   1456: but has the caveat of potentially defeating TCP's delayed ACK algorithm.
                   1457: Use of this option is generally not recommended, but
                   1458: the variable exists in case your configuration really needs it.
                   1459: .It Li tcp.compat_42
                   1460: If set to 1, enables work-arounds for bugs in the 4.2BSD TCP implementation.
                   1461: Use of this option is not recommended, although it may be
                   1462: required in order to communicate with extremely old TCP implementations.
                   1463: .It Li tcp.cwm
                   1464: If set to 1, enables use of the Hughes/Touch/Heidemann Congestion Window
                   1465: Monitoring algorithm.
                   1466: This algorithm prevents line-rate bursts of packets that could
                   1467: otherwise occur when data begins flowing on an idle TCP connection.
                   1468: These line-rate bursts can contribute to network and router congestion.
                   1469: This can be particularly useful on World Wide Web servers
                   1470: which support HTTP/1.1, which has lingering connections.
                   1471: .It Li tcp.cwm_burstsize
                   1472: The Congestion Window Monitoring allowed burst size, in terms
                   1473: of packet count.
                   1474: .It Li tcp.delack_ticks
                   1475: Number of ticks to delay sending an ACK.
                   1476: .It Li tcp.do_loopback_cksum
                   1477: Perform TCP checksum on loopback.
                   1478: .It Li tcp.init_win
1.76      wiz      1479: A value indicating the TCP initial congestion window.
                   1480: The valid range
1.75      christos 1481: is 0 to 10 (maximum specified by draft-ietf-tcpm-initcwnd-08.txt),
                   1482: with a default of 4 (approximately 4K per RFC3390).
1.1       pavel    1483: .It Li tcp.init_win_local
                   1484: Like
                   1485: .Li tcp.init_win ,
                   1486: but used when communicating with hosts on a local network.
                   1487: .It Li tcp.keepcnt
                   1488: Number of keepalive probes sent before declaring a connection dead.
                   1489: If set to zero, there is no limit;
                   1490: keepalives will be sent until some kind of
                   1491: response is received from the peer.
                   1492: .It Li tcp.keepidle
                   1493: Time a connection must be idle before keepalives are sent (if keepalives
                   1494: are enabled for the connection).
                   1495: See also tcp.slowhz.
                   1496: .It Li tcp.keepintvl
                   1497: Time after a keepalive probe is sent until, in the absence of any response,
                   1498: another probe is sent.
                   1499: See also tcp.slowhz.
                   1500: .It Li tcp.log_refused
                   1501: If set to 1, refused TCP connections to the host will be logged.
1.12      christos 1502: .It Li tcp.keepinit
                   1503: Timeout in seconds during connection establishment.
1.1       pavel    1504: .It Li tcp.mss_ifmtu
                   1505: If set to 1, TCP calculates the outgoing maximum segment size based on
                   1506: the MTU of the appropriate interface.
                   1507: If set to 0, it is calculated based on the greater of the MTU of the
                   1508: interface, and the largest (non-loopback) interface MTU on the system.
                   1509: .It Li tcp.mssdflt
                   1510: The default maximum segment size both advertised to the peer
                   1511: and to use when either the peer does not advertise a maximum segment size to
                   1512: us during connection setup or Path MTU Discovery
                   1513: .Li ( ip.mtudisc )
                   1514: is disabled.
                   1515: Do not change this value unless you really know what you are doing.
                   1516: .It Li tcp.recvspace
                   1517: The default TCP receive buffer size.
                   1518: .It Li tcp.rfc1323
                   1519: If set to 1, enables RFC 1323 extensions to TCP.
                   1520: .It Li tcp.rstppslimit
                   1521: The variable specifies the maximum number of outgoing TCP RST packets,
                   1522: per second.
                   1523: TCP RST packet that exceeded the value are subject to rate limitation
                   1524: and will not go out from the node.
                   1525: Negative value disables rate limitation.
1.13      christos 1526: .It Li tcp.ident
                   1527: Return the user ID of a connected socket pair.
                   1528: (RFC1413 Identification Protocol lookups.)
                   1529: .It Li tcp.drop
                   1530: Drop a TCP socket pair connection.
1.1       pavel    1531: .It Li tcp.sack.enable
                   1532: If set to 1, enables RFC 2018 Selective ACKnowledgement.
                   1533: .It Li tcp.sack.globalholes
                   1534: Global number of TCP SACK holes.
                   1535: .It Li tcp.sack.globalmaxholes
                   1536: Global maximum number of TCP SACK holes.
                   1537: .It Li tcp.sack.maxholes
                   1538: Maximum number of TCP SACK holes allowed per connection.
                   1539: .It Li tcp.ecn.enable
                   1540: If set to 1, enables RFC 3168 Explicit Congestion Notification.
                   1541: .It Li tcp.ecn.maxretries
                   1542: Number of times to retry sending the ECN-setup packet.
                   1543: .It Li tcp.sendspace
                   1544: The default TCP send buffer size.
                   1545: .It Li tcp.slowhz
                   1546: The units for tcp.keepidle and tcp.keepintvl; those variables are in ticks
                   1547: of a clock that ticks tcp.slowhz times per second.
                   1548: (That is, their values
                   1549: must be divided by the tcp.slowhz value to get times in seconds.)
                   1550: .It Li tcp.syn_bucket_limit
                   1551: The maximum number of entries allowed per hash bucket in the TCP
                   1552: compressed state engine.
                   1553: .It Li tcp.syn_cache_limit
                   1554: The maximum number of entries allowed in the TCP compressed state
                   1555: engine.
                   1556: .It Li tcp.timestamps
                   1557: If rfc1323 is enabled, a value of 1 indicates RFC 1323 time stamp options,
                   1558: used for measuring TCP round trip times, are enabled.
                   1559: .It Li tcp.win_scale
                   1560: If rfc1323 is enabled, a value of 1 indicates RFC 1323 window scale options,
                   1561: for increasing the TCP window size, are enabled.
                   1562: .It Li tcp.congctl.available
                   1563: The available TCP congestion control algorithms.
                   1564: .It Li tcp.congctl.selected
                   1565: The currently selected TCP congestion control algorithm.
                   1566: .It Li tcp.abc.enable
                   1567: If set to 1, use RFC 3465 Appropriate Byte Counting (ABC).
                   1568: If set to 0, use traditional Packet Counting.
                   1569: .It Li tcp.abc.aggressive
                   1570: Choose the L parameter found in RFC 3465.
                   1571: L is the maximum cwnd increase for an ack during slow start.
                   1572: If set to 1, use L=2*SMSS.
                   1573: If set to 0, use L=1*SMSS.
                   1574: It has no effect unless tcp.abc.enable is set to 1.
                   1575: .It Li udp.checksum
                   1576: If set to 1, UDP checksums are being computed.
                   1577: Received non-zero UDP checksums are always checked.
                   1578: Disabling UDP checksums is strongly discouraged.
1.67      christos 1579: .It Li udp.recvspace
                   1580: The default UDP receive buffer size.
1.1       pavel    1581: .It Li udp.sendspace
                   1582: The default UDP send buffer size.
                   1583: .El
                   1584: .Pp
                   1585: For variables net.*.ipsec, please refer to
                   1586: .Xr ipsec 4 .
                   1587: .It Li net.inet6 ( PF_INET6 )
                   1588: Get or set various global information about the IPv6
                   1589: .Pq Internet Protocol version 6 .
                   1590: The third level name is the protocol.
                   1591: The fourth level name is the variable name.
                   1592: The currently defined protocols and names are:
1.21      joerg    1593: .Bl -column "Protocol name" "do_loopback_cksum" "integer" "Changeable" -offset indent
1.1       pavel    1594: .It Sy Protocol name   Variable name   Type    Changeable
                   1595: .It icmp6      errppslimit     integer yes
                   1596: .It icmp6      mtudisc_hiwat   integer yes
                   1597: .It icmp6      mtudisc_lowat   integer yes
                   1598: .It icmp6      nd6_debug       integer yes
                   1599: .It icmp6      nd6_delay       integer yes
                   1600: .It icmp6      nd6_maxnudhint  integer yes
                   1601: .It icmp6      nd6_mmaxtries   integer yes
                   1602: .It icmp6      nd6_prune       integer yes
                   1603: .It icmp6      nd6_umaxtries   integer yes
                   1604: .It icmp6      nd6_useloopback integer yes
                   1605: .It icmp6      nodeinfo        integer yes
                   1606: .It icmp6      rediraccept     integer yes
                   1607: .It icmp6      redirtimeout    integer yes
                   1608: .It ip6        accept_rtadv    integer yes
1.72      christos 1609: .It ip6        anonportalgo.selected   string  yes
                   1610: .It ip6        anonportalgo.available  string  yes
1.74      christos 1611: .It ip6 anonportalgo.reserve   struct  yes
1.1       pavel    1612: .It ip6        anonportmax     integer yes
                   1613: .It ip6        anonportmin     integer yes
                   1614: .It ip6        auto_flowlabel  integer yes
                   1615: .It ip6        dad_count       integer yes
                   1616: .It ip6        defmcasthlim    integer yes
                   1617: .It ip6        forwarding      integer yes
                   1618: .It ip6        gifhlim integer yes
1.7       liamjfoy 1619: .It ip6        hashsize        integer yes
1.1       pavel    1620: .It ip6        hlim    integer yes
                   1621: .It ip6        hdrnestlimit    integer yes
                   1622: .It ip6        kame_version    string  no
                   1623: .It ip6        keepfaith       integer yes
                   1624: .It ip6        log_interval    integer yes
                   1625: .It ip6        lowportmax      integer yes
                   1626: .It ip6        lowportmin      integer yes
1.73      christos 1627: .It ip6        maxdynroutes    integer yes
                   1628: .It ip6        maxifprefixes   integer yes
                   1629: .It ip6        maxifdefrouters integer yes
1.5       liamjfoy 1630: .It ip6        maxflows        integer yes
1.1       pavel    1631: .It ip6        maxfragpackets  integer yes
                   1632: .It ip6        maxfrags        integer yes
1.73      christos 1633: .It ip6        neighborgcthresh        integer yes
1.1       pavel    1634: .It ip6        redirect        integer yes
                   1635: .It ip6        rr_prune        integer yes
                   1636: .It ip6        use_deprecated  integer yes
                   1637: .It ip6        v6only  integer yes
                   1638: .It udp6       do_loopback_cksum       integer yes
                   1639: .It udp6       recvspace       integer yes
                   1640: .It udp6       sendspace       integer yes
                   1641: .El
                   1642: .Pp
                   1643: The variables are as follows:
                   1644: .Bl -tag -width "123456"
                   1645: .It Li ip6.accept_rtadv
                   1646: If set to non-zero, the node will accept ICMPv6 router advertisement packets
                   1647: and autoconfigures address prefixes and default routers.
                   1648: The node must be a host
                   1649: .Pq not a router
                   1650: for the option to be meaningful.
1.72      christos 1651: .It Li ip6.anonportalgo.available
                   1652: The available RFC 6056 port randomization algorithms.
1.74      christos 1653: .It Li ip6.anonportalgo.reserve
                   1654: A bitmask of ports that will not be used during anonymous or privileged
                   1655: port selection.
1.72      christos 1656: .It Li ip6.anonportalgo.selected
                   1657: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1658: .It Li ip6.anonportmax
                   1659: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1660: This cannot be set to less than 1024 or greater than 65535, and must
                   1661: be greater than
                   1662: .Li ip6.anonportmin .
                   1663: .It Li ip6.anonportmin
                   1664: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1665: This cannot be set to less than 1024 or greater than 65535.
                   1666: .It Li ip6.auto_flowlabel
                   1667: On connected transport protocol packets,
                   1668: fill IPv6 flowlabel field to help intermediate routers to identify packet flows.
                   1669: .It Li ip6.dad_count
                   1670: The variable configures number of IPv6 DAD
                   1671: .Pq duplicated address detection
                   1672: probe packets.
                   1673: The packets will be generated when IPv6 interface addresses are configured.
                   1674: .It Li ip6.defmcasthlim
                   1675: The default hop limit value for an IPv6 multicast packet sourced by the node.
                   1676: This value applies to all the transport protocols on top of IPv6.
                   1677: There are APIs to override the value, as documented in
                   1678: .Xr ip6 4 .
                   1679: .It Li ip6.forwarding
                   1680: If set to 1, enables IPv6 forwarding for the node,
                   1681: meaning that the node is acting as a router.
                   1682: If set to 0, disables IPv6 forwarding for the node,
                   1683: meaning that the node is acting as a host.
                   1684: IPv6 specification defines node behavior for
                   1685: .Dq router
                   1686: case and
                   1687: .Dq host
                   1688: case quite differently, and changing this variable during operation
                   1689: may cause serious trouble.
                   1690: It is recommended to configure the variable at bootstrap time,
                   1691: and bootstrap time only.
                   1692: .It Li ip6.gifhlim
                   1693: The maximum hop limit value for an IPv6 packet generated by
                   1694: .Xr gif 4
                   1695: tunnel interface.
                   1696: .It Li ip6.hdrnestlimit
                   1697: The number of IPv6 extension headers permitted on incoming IPv6 packets.
                   1698: If set to 0, the node will accept as many extension headers as possible.
1.7       liamjfoy 1699: .It Li ip6.hashsize
                   1700: The size of IPv6 Fast Forward hash table.
1.56      uwe      1701: This value must be a power of 2 (64, 256, ...).
1.7       liamjfoy 1702: A larger hash table size results in fewer collisions.
                   1703: Also see
                   1704: .Li ip6.maxflows .
1.1       pavel    1705: .It Li ip6.hlim
                   1706: The default hop limit value for an IPv6 unicast packet sourced by the node.
                   1707: This value applies to all the transport protocols on top of IPv6.
                   1708: There are APIs to override the value, as documented in
                   1709: .Xr ip6 4 .
                   1710: .It Li ip6.kame_version
                   1711: The string identifies the version of KAME IPv6 stack implemented in the kernel.
                   1712: .It Li ip6.keepfaith
                   1713: If set to non-zero, it enables
                   1714: .Dq FAITH
                   1715: TCP relay IPv6-to-IPv4 translator code in the kernel.
                   1716: Refer
                   1717: .Xr faith 4
                   1718: and
                   1719: .Xr faithd 8
                   1720: for detail.
                   1721: .It Li ip6.log_interval
                   1722: The variable controls amount of logs generated by IPv6 packet
                   1723: forwarding engine, by setting interval between log output
                   1724: .Pq in seconds .
                   1725: .It Li ip6.lowportmax
                   1726: The highest port number to use for TCP and UDP reserved port allocation.
                   1727: This cannot be set to less than 0 or greater than 1024, and must
                   1728: be greater than
                   1729: .Li ip6.lowportmin .
                   1730: .It Li ip6.lowportmin
                   1731: The lowest port number to use for TCP and UDP reserved port allocation.
                   1732: This cannot be set to less than 0 or greater than 1024, and must
                   1733: be smaller than
                   1734: .Li ip6.lowportmax .
1.73      christos 1735: .It Li ip6.maxdynroutes
                   1736: Maximum number of routes created by redirect.
                   1737: Set it to negative to disable.
                   1738: The default value is 4096.
                   1739: .It Li ip6.maxifprefixes
                   1740: Maximum number of prefixes created by route advertisements per interface.
                   1741: Set it to negative to disable.
                   1742: The default value is 16.
                   1743: .It Li ip6.maxifdefrouters 16
                   1744: Maximum number of default routers created by route advertisements per interface.
                   1745: Set it to negative to disable.
                   1746: The default value is 16.
1.5       liamjfoy 1747: .It Li ip6.maxflows
                   1748: IPv6 Fast Forwarding is enabled by default.
                   1749: If set to 0, IPv6 Fast Forwarding is disabled.
                   1750: .Li ip6.maxflows
                   1751: controls the maximum amount of flows which can be created.
1.6       liamjfoy 1752: The default value is 256.
1.1       pavel    1753: .It Li ip6.maxfragpackets
                   1754: The maximum number of fragmented packets the node will accept.
                   1755: 0 means that the node will not accept any fragmented packets.
                   1756: \-1 means that the node will accept as many fragmented packets as it receives.
                   1757: The flag is provided basically for avoiding possible DoS attacks.
                   1758: .It Li ip6.maxfrags
                   1759: The maximum number of fragments the node will accept.
                   1760: 0 means that the node will not accept any fragments.
                   1761: \-1 means that the node will accept as many fragments as it receives.
                   1762: The flag is provided basically for avoiding possible DoS attacks.
1.73      christos 1763: .It Li ip6.neighborgcthresh
                   1764: Maximum number of entries in neighbor cache.
                   1765: Set to negative to disable.
                   1766: The default value is 2048.
1.1       pavel    1767: .It Li ip6.redirect
                   1768: If set to 1, ICMPv6 redirects may be sent by the node.
                   1769: This option is ignored unless the node is routing IP packets,
                   1770: and should normally be enabled on all systems.
                   1771: .It Li ip6.rr_prune
                   1772: The variable specifies interval between IPv6 router renumbering prefix
                   1773: babysitting, in seconds.
                   1774: .It Li ip6.use_deprecated
                   1775: The variable controls use of deprecated address, specified in RFC 2462 5.5.4.
                   1776: .It Li ip6.v6only
                   1777: The variable specifies initial value for
                   1778: .Dv IPV6_V6ONLY
                   1779: socket option for
                   1780: .Dv AF_INET6
                   1781: socket.
                   1782: Please refer to
                   1783: .Xr ip6 4
                   1784: for detail.
                   1785: .It Li icmp6.errppslimit
                   1786: The variable specifies the maximum number of outgoing ICMPv6 error messages,
                   1787: per second.
                   1788: ICMPv6 error messages that exceeded the value are subject to rate limitation
                   1789: and will not go out from the node.
                   1790: Negative value disables rate limitation.
                   1791: .It Li icmp6.mtudisc_hiwat
                   1792: .It Li icmp6.mtudisc_lowat
                   1793: The variables define the maximum number of routing table entries,
                   1794: created due to path MTU discovery
                   1795: .Pq prevents denial-of-service attacks with ICMPv6 too big messages .
                   1796: When IPv6 path MTU discovery happens, we keep path MTU information into
                   1797: the routing table.
                   1798: If the number of routing table entries exceed the value,
                   1799: the kernel will not attempt to keep the path MTU information.
                   1800: .Li icmp6.mtudisc_hiwat
                   1801: is used when we have verified ICMPv6 too big messages.
                   1802: .Li icmp6.mtudisc_lowat
                   1803: is used when we have unverified ICMPv6 too big messages.
                   1804: Verification is performed by using address/port pairs kept in connected pcbs.
                   1805: Negative value disables the upper limit.
                   1806: .It Li icmp6.nd6_debug
                   1807: If set to non-zero, kernel IPv6 neighbor discovery code will generate
                   1808: debugging messages.
                   1809: The debug outputs are useful to diagnose IPv6 interoperability issues.
                   1810: The flag must be set to 0 for normal operation.
                   1811: .It Li icmp6.nd6_delay
                   1812: The variable specifies
                   1813: .Dv DELAY_FIRST_PROBE_TIME
                   1814: timing constant in IPv6 neighbor discovery specification
                   1815: .Pq RFC 2461 ,
                   1816: in seconds.
                   1817: .It Li icmp6.nd6_maxnudhint
                   1818: IPv6 neighbor discovery permits upper layer protocols to supply reachability
                   1819: hints, to avoid unnecessary neighbor discovery exchanges.
                   1820: The variable defines the number of consecutive hints the neighbor discovery
                   1821: layer will take.
                   1822: For example, by setting the variable to 3, neighbor discovery layer
                   1823: will take 3 consecutive hints in maximum.
                   1824: After receiving 3 hints, neighbor discovery layer will perform
                   1825: normal neighbor discovery process.
                   1826: .It Li icmp6.nd6_mmaxtries
                   1827: The variable specifies
                   1828: .Dv MAX_MULTICAST_SOLICIT
                   1829: constant in IPv6 neighbor discovery specification
                   1830: .Pq RFC 2461 .
                   1831: .It Li icmp6.nd6_prune
                   1832: The variable specifies interval between IPv6 neighbor cache babysitting,
                   1833: in seconds.
                   1834: .It Li icmp6.nd6_umaxtries
                   1835: The variable specifies
                   1836: .Dv MAX_UNICAST_SOLICIT
                   1837: constant in IPv6 neighbor discovery specification
                   1838: .Pq RFC 2461 .
                   1839: .It Li icmp6.nd6_useloopback
                   1840: If set to non-zero, kernel IPv6 stack will use loopback interface for
                   1841: local traffic.
                   1842: .It Li icmp6.nodeinfo
                   1843: The variable enables responses to ICMPv6 node information queries.
                   1844: If you set the variable to 0, responses will not be generated for
                   1845: ICMPv6 node information queries.
                   1846: Since node information queries can have a security impact, it is
                   1847: possible to fine tune which responses should be answered.
                   1848: Two separate bits can be set.
                   1849: .Bl -tag -width "12345"
                   1850: .It 1
                   1851: Respond to ICMPv6 FQDN queries, e.g.
                   1852: .Li ping6 -w .
                   1853: .It 2
                   1854: Respond to ICMPv6 node addresses queries, e.g.
                   1855: .Li ping6 -a .
                   1856: .El
                   1857: .It Li icmp6.rediraccept
                   1858: If set to non-zero, the host will accept ICMPv6 redirect packets.
                   1859: Note that IPv6 routers will never accept ICMPv6 redirect packets,
                   1860: and the variable is meaningful on IPv6 hosts
                   1861: .Pq non-router
                   1862: only.
                   1863: .It Li icmp6.redirtimeout
                   1864: The variable specifies lifetime of routing entries generated by incoming
                   1865: ICMPv6 redirect.
                   1866: .It Li udp6.do_loopback_cksum
                   1867: Perform UDP checksum on loopback.
                   1868: .It Li udp6.recvspace
                   1869: Default UDP receive buffer size.
                   1870: .It Li udp6.sendspace
                   1871: Default UDP send buffer size.
                   1872: .El
                   1873: .Pp
                   1874: We reuse net.*.tcp for
                   1875: .Tn TCP
                   1876: over
                   1877: .Tn IPv6 ,
                   1878: and therefore we do not have variables net.*.tcp6.
                   1879: Variables net.inet6.udp6 have identical meaning to net.inet.udp.
                   1880: Please refer to
                   1881: .Li PF_INET
                   1882: section above.
                   1883: For variables net.*.ipsec6, please refer to
                   1884: .Xr ipsec 4 .
                   1885: .It Li net.key ( PF_KEY )
                   1886: Get or set various global information about the IPsec key management.
                   1887: The third level name is the variable name.
                   1888: The currently defined variable and names are:
1.21      joerg    1889: .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent
1.1       pavel    1890: .It Sy Variable name   Type    Changeable
                   1891: .It debug      integer yes
1.80    ! christos 1892: .It enabled    integer yes
        !          1893: .It used       integer no
1.1       pavel    1894: .It spi_try    integer yes
                   1895: .It spi_min_value      integer yes
                   1896: .It spi_max_value      integer yes
                   1897: .It larval_lifetime    integer yes
                   1898: .It blockacq_count     integer yes
                   1899: .It blockacq_lifetime  integer yes
                   1900: .It esp_keymin integer yes
                   1901: .It esp_auth   integer yes
                   1902: .It ah_keymin  integer yes
                   1903: .El
1.21      joerg    1904: .Pp
1.1       pavel    1905: The variables are as follows:
                   1906: .Bl -tag -width "123456"
                   1907: .It Li debug
                   1908: Turn on debugging message from within the kernel.
                   1909: The value is a bitmap, as defined in
1.56      uwe      1910: .In netkey/key_debug.h .
1.80    ! christos 1911: .It Li enabled
        !          1912: Turn on and off IPsec processing.
        !          1913: .It Li used
        !          1914: Based on if IPsec is enabled, and SPD rule existance, show if
        !          1915: IPsec is being used.
        !          1916: Note that currenly once IPsec is being used, it cannot be disabled.
1.1       pavel    1917: .It Li spi_try
                   1918: The number of times the kernel will try to obtain an unique SPI
                   1919: when it generates it from random number generator.
                   1920: .It Li spi_min_value
                   1921: Minimum SPI value when generating it within the kernel.
                   1922: .It Li spi_max_value
                   1923: Maximum SPI value when generating it within the kernel.
                   1924: .It Li larval_lifetime
                   1925: Lifetime for LARVAL SAD entries, in seconds.
                   1926: .It Li blockacq_count
                   1927: Number of ACQUIRE PF_KEY messages to be blocked after an ACQUIRE message.
                   1928: It avoids flood of ACQUIRE PF_KEY from being sent from the kernel to the
                   1929: key management daemon.
                   1930: .It Li blockacq_lifetime
                   1931: Lifetime of ACQUIRE PF_KEY message.
                   1932: .It Li esp_keymin
                   1933: Minimum ESP key length, in bits.
                   1934: The value is used when the kernel creates proposal payload
                   1935: on ACQUIRE PF_KEY message.
                   1936: .It Li esp_auth
                   1937: Whether ESP authentication should be used or not.
                   1938: Non-zero value indicates that ESP authentication should be used.
                   1939: The value is used when the kernel creates proposal payload
                   1940: on ACQUIRE PF_KEY message.
                   1941: .It Li ah_keymin
                   1942: Minimum AH key length, in bits,
                   1943: The value is used when the kernel creates proposal payload
                   1944: on ACQUIRE PF_KEY message.
                   1945: .El
                   1946: .El
1.50      jruoho   1947: .Ss The proc.* subtree
1.1       pavel    1948: The string and integer information available for the
                   1949: .Li proc
                   1950: level is detailed below.
                   1951: The changeable column shows whether a process with appropriate
                   1952: privilege may change the value.
                   1953: These values are per-process,
                   1954: and as such may change from one process to another.
                   1955: When a process is created,
                   1956: the default values are inherited from its parent.
                   1957: When a set-user-ID or set-group-ID binary is executed, the
                   1958: value of PROC_PID_CORENAME is reset to the system default value.
                   1959: The second level name is either the magic value PROC_CURPROC, which
                   1960: points to the current process, or the PID of the target process.
1.21      joerg    1961: .Bl -column "proc.pid.corename" "string" "not applicable" -offset indent
1.1       pavel    1962: .It Sy Third level name        Type    Changeable
                   1963: .It proc.pid.corename  string  yes
                   1964: .It proc.pid.rlimit    node    not applicable
                   1965: .It proc.pid.stopfork  int     yes
                   1966: .It proc.pid.stopexec  int     yes
                   1967: .It proc.pid.stopexit  int     yes
                   1968: .El
                   1969: .Bl -tag -width "123456"
                   1970: .It Li proc.pid.corename ( PROC_PID_CORENAME )
                   1971: The template used for the core dump file name (see
                   1972: .Xr core 5
                   1973: for details).
                   1974: The base name must either be
1.56      uwe      1975: .Pa core
                   1976: or end with the suffix
                   1977: .Pa .core
                   1978: (the super-user may set arbitrary names).
                   1979: By default it points to
                   1980: .Dv KERN_DEFCORENAME .
1.1       pavel    1981: .It Li proc.pid.rlimit ( PROC_PID_LIMIT )
                   1982: Return resources limits, as defined for the
                   1983: .Xr getrlimit 2
                   1984: and
                   1985: .Xr setrlimit 2
                   1986: system calls.
                   1987: The fourth level name is one of:
1.56      uwe      1988: .Bl -tag -width "123456"
1.1       pavel    1989: .It Li proc.pid.rlimit.cputime ( PROC_PID_LIMIT_CPU )
                   1990: The maximum amount of CPU time (in seconds) to be used by each process.
                   1991: .It Li proc.pid.rlimit.filesize ( PROC_PID_LIMIT_FSIZE )
                   1992: The largest size (in bytes) file that may be created.
                   1993: .It Li proc.pid.rlimit.datasize ( PROC_PID_LIMIT_DATA )
                   1994: The maximum size (in bytes) of the data segment for a process;
                   1995: this defines how far a program may extend its break with the
                   1996: .Xr sbrk 2
                   1997: system call.
                   1998: .It Li proc.pid.rlimit.stacksize ( PROC_PID_LIMIT_STACK )
                   1999: The maximum size (in bytes) of the stack segment for a process;
                   2000: this defines how far a program's stack segment may be extended.
                   2001: Stack extension is performed automatically by the system.
                   2002: .It Li proc.pid.rlimit.coredumpsize ( PROC_PID_LIMIT_CORE )
                   2003: The largest size (in bytes)
                   2004: .Pa core
                   2005: file that may be created.
                   2006: .It Li proc.pid.rlimit.memoryuse ( PROC_PID_LIMIT_RSS )
                   2007: The maximum size (in bytes) to which a process's resident set size may
                   2008: grow.
                   2009: This imposes a limit on the amount of physical memory to be given to
                   2010: a process; if memory is tight, the system will prefer to take memory
                   2011: from processes that are exceeding their declared resident set size.
                   2012: .It Li proc.pid.rlimit.memorylocked ( PROC_PID_LIMIT_MEMLOCK )
                   2013: The maximum size (in bytes) which a process may lock into memory
                   2014: using the
                   2015: .Xr mlock 2
                   2016: function.
                   2017: .It Li proc.pid.rlimit.maxproc ( PROC_PID_LIMIT_NPROC )
                   2018: The maximum number of simultaneous processes for this user id.
                   2019: .It Li proc.pid.rlimit.descriptors ( PROC_PID_LIMIT_NOFILE )
                   2020: The maximum number of open files for this process.
1.22      snj      2021: .It Li proc.pid.rlimit.sbsize ( PROC_PID_LIMIT_SBSIZE )
                   2022: The maximum size (in bytes) of the socket buffers
                   2023: set by the
                   2024: .Xr setsockopt 2
                   2025: .Dv SO_RCVBUF
                   2026: and
                   2027: .Dv SO_SNDBUF
                   2028: options.
1.1       pavel    2029: .El
                   2030: .Pp
                   2031: The fifth level name is one of
1.56      uwe      2032: .Li soft ( PROC_PID_LIMIT_TYPE_SOFT )
                   2033: or
1.1       pavel    2034: .Li hard ( PROC_PID_LIMIT_TYPE_HARD ) ,
                   2035: to select respectively the soft or hard limit.
                   2036: Both are of type integer.
                   2037: .It Li proc.pid.stopfork ( PROC_PID_STOPFORK )
                   2038: If non zero, the process' children will be stopped after
                   2039: .Xr fork 2
                   2040: calls.
                   2041: The children is created in the SSTOP state and is never scheduled
                   2042: for running before being stopped.
                   2043: This feature helps attaching a process with a debugger such as
                   2044: .Xr gdb 1
                   2045: before it had the opportunity to actually do anything.
                   2046: .Pp
                   2047: This value is inherited by the process's children, and it also
                   2048: apply to emulation specific system calls that fork a new process, such as
                   2049: .Fn sproc
                   2050: or
                   2051: .Fn clone .
                   2052: .It Li proc.pid.stopexec ( PROC_PID_STOPEXEC )
                   2053: If non zero, the process will be stopped on next
                   2054: .Xr exec 3
                   2055: call.
                   2056: The process created by
                   2057: .Xr exec 3
                   2058: is created in the SSTOP state and is never scheduled for running
                   2059: before being stopped.
                   2060: This feature helps attaching a process with a debugger such as
                   2061: .Xr gdb 1
                   2062: before it had the opportunity to actually do anything.
                   2063: .Pp
                   2064: This value is inherited by the process's children.
                   2065: .It Li proc.pid.stopexit ( PROC_PID_STOPEXIT )
                   2066: If non zero, the process will be stopped on when it has cause to exit,
                   2067: either by way of calling
                   2068: .Xr exit 3 ,
                   2069: .Xr _exit 2 ,
                   2070: or by the receipt of a specific signal.
                   2071: The process is stopped before any of its resources or vm space is
                   2072: released allowing examination of the termination state of a process
                   2073: before it disappears.
                   2074: This feature can be used to examine the final conditions of the
                   2075: process's vmspace via
                   2076: .Xr pmap 1
                   2077: or its resource settings with
                   2078: .Xr sysctl 8
                   2079: before it disappears.
                   2080: .Pp
                   2081: This value is also inherited by the process's children.
                   2082: .El
1.50      jruoho   2083: .Ss The user.* subtree ( CTL_USER )
1.1       pavel    2084: The string and integer information available for the
                   2085: .Li user
                   2086: level is detailed below.
                   2087: The changeable column shows whether a process with appropriate
                   2088: privilege may change the value.
1.21      joerg    2089: .Bl -column "user.coll_weights_max" "integer" "Changeable" -offset indent
1.1       pavel    2090: .It Sy Second level name       Type    Changeable
                   2091: .It user.atexit_max    integer no
                   2092: .It user.bc_base_max   integer no
                   2093: .It user.bc_dim_max    integer no
                   2094: .It user.bc_scale_max  integer no
                   2095: .It user.bc_string_max integer no
                   2096: .It user.coll_weights_max      integer no
                   2097: .It user.cs_path       string  no
                   2098: .It user.expr_nest_max integer no
                   2099: .It user.line_max      integer no
                   2100: .It user.posix2_c_bind integer no
                   2101: .It user.posix2_c_dev  integer no
                   2102: .It user.posix2_char_term      integer no
                   2103: .It user.posix2_fort_dev       integer no
                   2104: .It user.posix2_fort_run       integer no
                   2105: .It user.posix2_localedef      integer no
                   2106: .It user.posix2_sw_dev integer no
                   2107: .It user.posix2_upe    integer no
                   2108: .It user.posix2_version        integer no
                   2109: .It user.re_dup_max    integer no
                   2110: .It user.stream_max    integer no
                   2111: .It user.stream_max    integer no
                   2112: .It user.tzname_max    integer no
                   2113: .El
                   2114: .Bl -tag -width "123456"
                   2115: .It Li user.atexit_max ( USER_ATEXIT_MAX )
                   2116: The maximum number of functions that may be registered with
                   2117: .Xr atexit 3 .
                   2118: .It Li user.bc_base_max ( USER_BC_BASE_MAX )
                   2119: The maximum ibase/obase values in the
                   2120: .Xr bc 1
                   2121: utility.
                   2122: .It Li user.bc_dim_max ( USER_BC_DIM_MAX )
                   2123: The maximum array size in the
                   2124: .Xr bc 1
                   2125: utility.
                   2126: .It Li user.bc_scale_max ( USER_BC_SCALE_MAX )
                   2127: The maximum scale value in the
                   2128: .Xr bc 1
                   2129: utility.
                   2130: .It Li user.bc_string_max ( USER_BC_STRING_MAX )
                   2131: The maximum string length in the
                   2132: .Xr bc 1
                   2133: utility.
                   2134: .It Li user.coll_weights_max ( USER_COLL_WEIGHTS_MAX )
                   2135: The maximum number of weights that can be assigned to any entry of
                   2136: the LC_COLLATE order keyword in the locale definition file.
                   2137: .It Li user.cs_path ( USER_CS_PATH )
                   2138: Return a value for the
                   2139: .Ev PATH
                   2140: environment variable that finds all the standard utilities.
                   2141: .It Li user.expr_nest_max ( USER_EXPR_NEST_MAX )
                   2142: The maximum number of expressions that can be nested within
                   2143: parenthesis by the
                   2144: .Xr expr 1
                   2145: utility.
                   2146: .It Li user.line_max ( USER_LINE_MAX )
                   2147: The maximum length in bytes of a text-processing utility's input
                   2148: line.
                   2149: .It Li user.posix2_char_term ( USER_POSIX2_CHAR_TERM )
                   2150: Return 1 if the system supports at least one terminal type capable of
1.58      wiz      2151: all operations described in
                   2152: .St -p1003.2 ,
                   2153: otherwise\ 0.
1.1       pavel    2154: .It Li user.posix2_c_bind ( USER_POSIX2_C_BIND )
                   2155: Return 1 if the system's C-language development facilities support the
1.56      uwe      2156: C-Language Bindings Option, otherwise\ 0.
1.1       pavel    2157: .It Li user.posix2_c_dev ( USER_POSIX2_C_DEV )
                   2158: Return 1 if the system supports the C-Language Development Utilities Option,
1.56      uwe      2159: otherwise\ 0.
1.1       pavel    2160: .It Li user.posix2_fort_dev ( USER_POSIX2_FORT_DEV )
                   2161: Return 1 if the system supports the FORTRAN Development Utilities Option,
1.56      uwe      2162: otherwise\ 0.
1.1       pavel    2163: .It Li user.posix2_fort_run ( USER_POSIX2_FORT_RUN )
                   2164: Return 1 if the system supports the FORTRAN Runtime Utilities Option,
1.56      uwe      2165: otherwise\ 0.
1.1       pavel    2166: .It Li user.posix2_localedef ( USER_POSIX2_LOCALEDEF )
1.56      uwe      2167: Return 1 if the system supports the creation of locales, otherwise\ 0.
1.1       pavel    2168: .It Li user.posix2_sw_dev ( USER_POSIX2_SW_DEV )
                   2169: Return 1 if the system supports the Software Development Utilities Option,
1.56      uwe      2170: otherwise\ 0.
1.1       pavel    2171: .It Li user.posix2_upe ( USER_POSIX2_UPE )
                   2172: Return 1 if the system supports the User Portability Utilities Option,
1.56      uwe      2173: otherwise\ 0.
1.1       pavel    2174: .It Li user.posix2_version ( USER_POSIX2_VERSION )
1.58      wiz      2175: The version of
                   2176: .St -p1003.2
                   2177: with which the system attempts to comply.
1.1       pavel    2178: .It Li user.re_dup_max ( USER_RE_DUP_MAX )
                   2179: The maximum number of repeated occurrences of a regular expression
                   2180: permitted when using interval notation.
                   2181: .It Li user.stream_max ( USER_STREAM_MAX )
                   2182: The minimum maximum number of streams that a process may have open
                   2183: at any one time.
                   2184: .It Li user.tzname_max ( USER_TZNAME_MAX )
                   2185: The minimum maximum number of types supported for the name of a
                   2186: timezone.
                   2187: .El
1.50      jruoho   2188: .Ss The vm.* subtree ( CTL_VM )
1.1       pavel    2189: The string and integer information available for the
                   2190: .Li vm
                   2191: level is detailed below.
                   2192: The changeable column shows whether a process with appropriate
                   2193: privilege may change the value.
1.21      joerg    2194: .Bl -column "Second level name" "struct uvmexp_sysctl" "Changeable" -offset indent
1.1       pavel    2195: .It Sy Second level name       Type    Changeable
                   2196: .It vm.anonmax int     yes
                   2197: .It vm.anonmin int     yes
                   2198: .It vm.bufcache        int     yes
                   2199: .It vm.bufmem  int     no
                   2200: .It vm.bufmem_hiwater  int     yes
                   2201: .It vm.bufmem_lowater  int     yes
                   2202: .It vm.execmax int     yes
                   2203: .It vm.execmin int     yes
                   2204: .It vm.filemax int     yes
                   2205: .It vm.filemin int     yes
                   2206: .It vm.loadavg struct loadavg  no
                   2207: .It vm.maxslp  int     no
                   2208: .It vm.nkmempages      int     no
                   2209: .It vm.uspace  int     no
                   2210: .It vm.uvmexp  struct uvmexp   no
                   2211: .It vm.uvmexp2 struct uvmexp_sysctl    no
                   2212: .It vm.vmmeter struct vmtotal  no
                   2213: .El
                   2214: .Pp
                   2215: .Bl -tag -width "123456"
                   2216: .It Li vm.anonmax ( VM_ANONMAX )
                   2217: The percentage of physical memory which will be reclaimed
                   2218: from other types of memory usage to store anonymous application data.
                   2219: .It Li vm.anonmin ( VM_ANONMIN )
                   2220: The percentage of physical memory which will be always be available for
                   2221: anonymous application data.
                   2222: .It Li vm.bufcache ( VM_BUFCACHE )
                   2223: The percentage of physical memory which will be available
                   2224: for the buffer cache.
                   2225: .It Li vm.bufmem ( VM_BUFMEM )
                   2226: The amount of kernel memory that is being used by the buffer cache.
                   2227: .It Li vm.bufmem_lowater ( VM_BUFMEM_LOWATER )
                   2228: The minimum amount of kernel memory to reserve for the
                   2229: buffer cache.
                   2230: .It Li vm.bufmem_hiwater ( VM_BUFMEM_HIWATER )
                   2231: The maximum amount of kernel memory to be used for the
                   2232: buffer cache.
                   2233: .It Li vm.execmax ( VM_EXECMAX )
                   2234: The percentage of physical memory which will be reclaimed
                   2235: from other types of memory usage to store cached executable data.
                   2236: .It Li vm.execmin ( VM_EXECMIN )
                   2237: The percentage of physical memory which will be always be available for
                   2238: cached executable data.
                   2239: .It Li vm.filemax ( VM_FILEMAX )
                   2240: The percentage of physical memory which will be reclaimed
                   2241: from other types of memory usage to store cached file data.
                   2242: .It Li vm.filemin ( VM_FILEMIN )
                   2243: The percentage of physical memory which will be always be available for
                   2244: cached file data.
                   2245: .It Li vm.loadavg ( VM_LOADAVG )
                   2246: Return the load average history.
                   2247: The returned data consists of a
1.56      uwe      2248: .Vt struct loadavg .
1.1       pavel    2249: .It Li vm.maxslp ( VM_MAXSLP )
                   2250: The value of the maxslp kernel global variable.
                   2251: .It Li vm.vmmeter ( VM_METER )
                   2252: Return system wide virtual memory statistics.
                   2253: The returned data consists of a
1.56      uwe      2254: .Vt struct vmtotal .
1.31      drochner 2255: .It vm.user_va0_disable
1.56      uwe      2256: A flag which controls whether user processes can map virtual address\ 0.
1.1       pavel    2257: .It Li vm.uspace ( VM_USPACE )
                   2258: The number of bytes allocated for each kernel stack.
                   2259: .It Li vm.uvmexp ( VM_UVMEXP )
                   2260: Return system wide virtual memory statistics.
                   2261: The returned data consists of a
1.56      uwe      2262: .Vt struct uvmexp .
1.1       pavel    2263: .It Li vm.uvmexp2 ( VM_UVMEXP2 )
                   2264: Return system wide virtual memory statistics.
                   2265: The returned data consists of a
1.56      uwe      2266: .Vt struct uvmexp_sysctl .
1.1       pavel    2267: .\" XXX vm.idlezero
                   2268: .El
1.50      jruoho   2269: .Ss The ddb.* subtree ( CTL_DDB )
1.34      jruoho   2270: The information available for the
1.1       pavel    2271: .Li ddb
                   2272: level is detailed below.
                   2273: The changeable column shows whether a process with appropriate
                   2274: privilege may change the value.
                   2275: .\" XXX sort
1.21      joerg    2276: .Bl -column "Second level name" "integer" "Changeable" -offset indent
1.1       pavel    2277: .It Sy Second level name       Type    Changeable
                   2278: .It ddb.radix  integer yes
                   2279: .It ddb.maxoff integer yes
1.34      jruoho   2280: .It ddb.maxwidth       integer yes
1.1       pavel    2281: .It ddb.lines  integer yes
                   2282: .It ddb.tabstops       integer yes
                   2283: .It ddb.onpanic        integer yes
                   2284: .It ddb.fromconsole    integer yes
1.34      jruoho   2285: .It ddb.tee_msgbuf     integer yes
                   2286: .It ddb.commandonenter string  yes
1.1       pavel    2287: .El
                   2288: .Pp
                   2289: .Bl -tag -width "123456"
1.35      jruoho   2290: .It Li ddb.radix ( DDBCTL_RADIX )
1.1       pavel    2291: The input and output radix.
1.35      jruoho   2292: .It Li ddb.maxoff ( DDBCTL_MAXOFF )
1.1       pavel    2293: The maximum symbol offset.
1.34      jruoho   2294: .It Li ddb.maxwidth ( DDBCTL_MAXWIDTH )
                   2295: The maximum output line width.
1.35      jruoho   2296: .It Li ddb.lines ( DDBCTL_LINES )
1.1       pavel    2297: Number of display lines.
1.35      jruoho   2298: .It Li ddb.tabstops ( DDBCTL_TABSTOPS )
1.1       pavel    2299: Tab width.
1.35      jruoho   2300: .It Li ddb.onpanic ( DDBCTL_ONPANIC )
1.63      riz      2301: If greater than zero, DDB will be entered if the kernel panics.
                   2302: A value of 1 causes the system to enter DDB on panic, while a value of 2
                   2303: causes the kernel to attempt to print out a stack trace before entering DDB.
                   2304: A value of 0 causes the kernel to attempt to print a stack trace, then
1.64      wiz      2305: reboot, while a value of \-1 means neither a stack trace will be printed
1.63      riz      2306: nor DDB entered.
1.35      jruoho   2307: .It Li ddb.fromconsole ( DDBCTL_FROMCONSOLE )
1.1       pavel    2308: If not zero, DDB may be entered by sending a break on a serial
                   2309: console or by a special key sequence on a graphics console.
1.34      jruoho   2310: .It Li ddb.tee_msgbuf
                   2311: If not zero, DDB will output also to the kernel message buffer.
                   2312: .It Li ddb.commandonenter
                   2313: If not empty, a command to be executed on each enter to the
                   2314: .Tn DDB .
                   2315: .\"
                   2316: .\" XXX: (a) ddb.commandonenter is missing in ddb(4);
                   2317: .\"     (b) No DDBCTL definitions for tee_msgbuf and commandonenter.
1.1       pavel    2318: .El
                   2319: .Pp
1.34      jruoho   2320: Some of these
                   2321: .Tn MIB
                   2322: nodes are also available as variables from within the debugger.
1.1       pavel    2323: See
                   2324: .Xr ddb 4
                   2325: for more details.
1.50      jruoho   2326: .Ss The security.* subtree ( CTL_SECURITY )
1.1       pavel    2327: The
                   2328: .Li security
                   2329: level contains various security-related settings for
1.2       wiz      2330: the system.
1.43      jruoho   2331: The available second level names are:
                   2332: .Bl -column "Second level name" "integer" "Changeable" -offset indent
                   2333: .It Sy Second level name       Type    Changeable
                   2334: .It Li security.curtain        integer yes
                   2335: .It Li security.models node    not applicable
                   2336: .It Li security.pax    node    not applicable
                   2337: .El
                   2338: .Pp
1.2       wiz      2339: Available settings are detailed below.
1.1       pavel    2340: .Pp
                   2341: .Bl -tag -width "123456"
                   2342: .It Li security.curtain
1.43      jruoho   2343: If non-zero, will filter return objects according to the user
                   2344: .Tn ID
1.1       pavel    2345: requesting information about them, preventing from users any
1.43      jruoho   2346: access to objects they do not own.
1.1       pavel    2347: .Pp
                   2348: At the moment, it affects
                   2349: .Xr ps 1 ,
                   2350: .Xr netstat 1
                   2351: (for
                   2352: .Dv PF_INET ,
                   2353: .Dv PF_INET6 ,
                   2354: and
                   2355: .Dv PF_UNIX
                   2356: PCBs), and
                   2357: .Xr w 1 .
1.4       elad     2358: .It Li security.models
                   2359: .Nx
                   2360: supports pluggable security models.
1.17      ad       2361: Every security model used, whether if loaded as a module or built with the system,
1.4       elad     2362: is required to add an entry to this node with at least one element,
                   2363: .Dq name ,
                   2364: indicating the name of the security model.
                   2365: .Pp
                   2366: In addition to the name, any settings and other information private to the
                   2367: security model will be available under this node.
                   2368: See
                   2369: .Xr secmodel 9
                   2370: for more information.
1.1       pavel    2371: .It Li security.pax
                   2372: Settings for PaX -- exploit mitigation features.
1.4       elad     2373: For more information on any of the PaX features, please see
                   2374: .Xr paxctl 8
                   2375: and
1.62      jruoho   2376: .Xr security 7 .
1.43      jruoho   2377: The available third and fourth level names are:
                   2378: .Bl -column "security.pax.segvguard.suspend_timeout" "integer" "Changeable" \
                   2379: -offset 2n
                   2380: .It Sy Third and fourth level names Ta Sy Type Ta Sy Changeable
                   2381: .It Li security.pax.aslr.enabled       integer yes
                   2382: .\".It Li security.pax.aslr.exec_len   integer yes
                   2383: .It Li security.pax.aslr.global        integer yes
                   2384: .\".It Li security.pax.aslr.mmap_len   integer yes
                   2385: .\".It Li security.pax.aslr.stack_len  integer yes
                   2386: .It Li security.pax.mprotect.enabled   integer yes
                   2387: .It Li security.pax.mprotect.global    integer yes
                   2388: .It Li security.pax.segvguard.enabled  integer yes
                   2389: .It Li security.pax.segvguard.expiry_timeout   integer yes
                   2390: .It Li security.pax.segvguard.global   integer yes
                   2391: .It Li security.pax.segvguard.max_crashes      integer yes
                   2392: .It Li security.pax.segvguard.suspend_timeout  integer yes
                   2393: .El
1.1       pavel    2394: .Pp
                   2395: .Bl -tag -width "123456"
1.43      jruoho   2396: .It Li security.pax.aslr.enabled
1.14      elad     2397: Enable PaX ASLR (Address Space Layout Randomization).
                   2398: .Pp
                   2399: The value of this
                   2400: knob must be non-zero for PaX ASLR to be enabled, even if a program is set to
                   2401: explicit enable.
1.43      jruoho   2402: .\".It Li security.pax.aslr.exec_len
                   2403: .\" XXX: Undocumented.
1.14      elad     2404: .It Li security.pax.aslr.global
                   2405: Specifies the default global policy for programs without an
                   2406: explicit enable/disable flag.
                   2407: .Pp
                   2408: When non-zero, all programs will get PaX ASLR, except those exempted with
1.69      wiz      2409: .Xr paxctl 8 .
1.14      elad     2410: Otherwise, all programs will not get PaX ASLR, except those specifically
                   2411: marked as such with
                   2412: .Xr paxctl 8 .
1.43      jruoho   2413: .\".It Li security.pax.aslr.mmap_len
                   2414: .\" XXX: Undocumented.
                   2415: .\" .It Li security.pax.aslr.stack_len
                   2416: .\" XXX: Undocumented.
                   2417: .It Li security.pax.mprotect.enabled
1.1       pavel    2418: Enable PaX MPROTECT restrictions.
                   2419: .Pp
                   2420: These are
                   2421: .Xr mprotect 2
1.2       wiz      2422: restrictions to better enforce a W^X policy.
                   2423: The value of this
1.1       pavel    2424: knob must be non-zero for PaX MPROTECT to be enabled, even if a
                   2425: program is set to explicit enable.
                   2426: .It Li security.pax.mprotect.global
                   2427: Specifies the default global policy for programs without an
                   2428: explicit enable/disable flag.
                   2429: .Pp
                   2430: When non-zero, all programs will get the PaX MPROTECT restrictions,
                   2431: except those exempted with
1.69      wiz      2432: .Xr paxctl 8 .
1.1       pavel    2433: Otherwise, all programs will not get the PaX MPROTECT restrictions,
                   2434: except those specifically marked as such with
1.4       elad     2435: .Xr paxctl 8 .
1.43      jruoho   2436: .It Li security.pax.segvguard.enabled
1.1       pavel    2437: Enable PaX Segvguard.
                   2438: .Pp
                   2439: PaX Segvguard can detect and prevent certain exploitation attempts, where
                   2440: an attacker may try for example to brute-force function return addresses
                   2441: of respawning daemons.
                   2442: .Pp
                   2443: .Em Note :
                   2444: The
                   2445: .Nx
                   2446: interface and implementation of the Segvguard is still experimental, and may
                   2447: change in future releases.
1.43      jruoho   2448: .It Li security.pax.segvguard.expiry_timeout
                   2449: If the max number was not reached within this timeout (in seconds), the entry
                   2450: will expire.
1.1       pavel    2451: .It Li security.pax.segvguard.global
                   2452: Specifies the default global policy for programs without an
                   2453: explicit enable/disable flag.
                   2454: .Pp
                   2455: When non-zero, all programs will get the PaX Segvguard,
                   2456: except those exempted with
1.69      wiz      2457: .Xr paxctl 8 .
1.2       wiz      2458: Otherwise, no program will get the PaX Segvguard restrictions,
1.1       pavel    2459: except those specifically marked as such with
1.4       elad     2460: .Xr paxctl 8 .
1.43      jruoho   2461: .It Li security.pax.segvguard.max_crashes
                   2462: The maximum number of segfaults a program can receive before suspension.
1.1       pavel    2463: .It Li security.pax.segvguard.suspend_timeout
                   2464: Number of seconds to suspend a user from running a faulting program when the
                   2465: limit was exceeded.
                   2466: .El
                   2467: .El
1.50      jruoho   2468: .Ss The vendor.* subtree ( CTL_VENDOR )
1.1       pavel    2469: The
                   2470: .Li vendor
                   2471: toplevel name is reserved to be used by vendors who wish to
                   2472: have their own private MIB tree.
                   2473: Intended use is to store values under
                   2474: .Dq vendor.\*[Lt]yourname\*[Gt].* .
                   2475: .Sh SEE ALSO
                   2476: .Xr sysctl 3 ,
                   2477: .Xr ipsec 4 ,
                   2478: .Xr tcp 4 ,
1.62      jruoho   2479: .Xr security 7 ,
1.1       pavel    2480: .Xr sysctl 8
                   2481: .Sh HISTORY
                   2482: The
                   2483: .Nm
                   2484: variables first appeared in
                   2485: .Bx 4.4 .

CVSweb <webmaster@jp.NetBSD.org>