[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.86

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

CVSweb <webmaster@jp.NetBSD.org>