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

1.79.2.1! tls         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.79.2.1! tls        32: .Dd August 3, 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.79.2.1! tls       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.79.2.1! tls       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.79.2.1! tls       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.79.2.1! tls       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.79.2.1! tls       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.79.2.1! tls       860: .It Li kern.pool
        !           861: Provides statistics about the
        !           862: .Xr pool 9
        !           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
                   1232: .It arp        log_wrong_iface integer yes
1.1       pavel    1233: .It arp        prune   integer yes
                   1234: .It arp        refresh integer yes
                   1235: .It carp       allow   integer yes
                   1236: .It carp       preempt integer yes
                   1237: .It carp       log     integer yes
                   1238: .It carp       arpbalance      integer yes
                   1239: .It icmp       errppslimit     integer yes
                   1240: .It icmp       maskrepl        integer yes
                   1241: .It icmp       rediraccept     integer yes
                   1242: .It icmp       redirtimeout    integer yes
1.28      christos 1243: .It icmp       bmcastecho      integer yes
1.1       pavel    1244: .It ip allowsrcrt      integer yes
1.72      christos 1245: .It ip         anonportalgo.selected   string  yes
                   1246: .It ip         anonportalgo.available  string  yes
1.74      christos 1247: .It ip         anonportalgo.reserve    struct  yes
1.1       pavel    1248: .It ip anonportmax     integer yes
                   1249: .It ip anonportmin     integer yes
                   1250: .It ip checkinterface  integer yes
                   1251: .It ip directed-broadcast      integer yes
                   1252: .It ip do_loopback_cksum       integer yes
                   1253: .It ip forwarding      integer yes
                   1254: .It ip forwsrcrt       integer yes
                   1255: .It ip gifttl  integer yes
                   1256: .It ip grettl  integer yes
1.8       liamjfoy 1257: .It ip hashsize        integer yes
1.1       pavel    1258: .It ip hostzerobroadcast       integer yes
                   1259: .It ip lowportmin      integer yes
                   1260: .It ip lowportmax      integer yes
                   1261: .It ip maxflows        integer yes
                   1262: .It ip maxfragpackets  integer yes
                   1263: .It ip mtudisc integer yes
                   1264: .It ip mtudisctimeout  integer yes
                   1265: .It ip random_id       integer yes
                   1266: .It ip redirect        integer yes
                   1267: .It ip subnetsarelocal integer yes
                   1268: .It ip ttl     integer yes
                   1269: .It tcp        rfc1323 integer yes
                   1270: .It tcp        sendspace       integer yes
                   1271: .It tcp        recvspace       integer yes
                   1272: .It tcp        mssdflt integer yes
                   1273: .It tcp        syn_cache_limit integer yes
                   1274: .It tcp        syn_bucket_limit        integer yes
                   1275: .It tcp        syn_cache_interval      integer yes
                   1276: .It tcp        init_win        integer yes
                   1277: .It tcp        init_win_local  integer yes
                   1278: .It tcp        mss_ifmtu       integer yes
                   1279: .It tcp        win_scale       integer yes
                   1280: .It tcp        timestamps      integer yes
                   1281: .It tcp        compat_42       integer yes
                   1282: .It tcp        cwm     integer yes
                   1283: .It tcp        cwm_burstsize   integer yes
                   1284: .It tcp        ack_on_push     integer yes
                   1285: .It tcp        keepidle        integer yes
                   1286: .It tcp        keepintvl       integer yes
                   1287: .It tcp        keepcnt integer yes
                   1288: .It tcp        slowhz  integer no
1.12      christos 1289: .It tcp        keepinit        integer yes
1.1       pavel    1290: .It tcp        log_refused     integer yes
                   1291: .It tcp        rstppslimit     integer yes
                   1292: .It tcp        ident   struct  no
1.13      christos 1293: .It tcp        drop    struct  no
1.1       pavel    1294: .It tcp        sack.enable     integer yes
                   1295: .It tcp        sack.globalholes        integer no
                   1296: .It tcp        sack.globalmaxholes     integer yes
                   1297: .It tcp        sack.maxholes   integer yes
                   1298: .It tcp        ecn.enable      integer yes
                   1299: .It tcp        ecn.maxretries  integer yes
                   1300: .It tcp        congctl.selected        string  yes
                   1301: .It tcp        congctl.available       string  yes
                   1302: .It tcp        abc.enable      integer yes
                   1303: .It tcp        abc.aggressive  integer yes
                   1304: .It udp        checksum        integer yes
                   1305: .It udp        do_loopback_cksum       integer yes
                   1306: .It udp        recvspace       integer yes
                   1307: .It udp        sendspace       integer yes
                   1308: .El
                   1309: .Pp
                   1310: The variables are as follows:
                   1311: .Bl -tag -width "123456"
                   1312: .It Li arp.down
                   1313: Failed ARP entry lifetime.
                   1314: .It Li arp.keep
                   1315: Valid ARP entry lifetime.
                   1316: .It Li arp.prune
                   1317: ARP cache pruning interval.
                   1318: .It Li arp.refresh
                   1319: ARP entry refresh interval.
                   1320: .It Li carp.allow
                   1321: If set to 0, incoming
                   1322: .Xr carp 4
                   1323: packets will not be processed.
                   1324: If set to any other value, processing will occur.
                   1325: Enabled by default.
                   1326: .It Li carp.arpbalance
                   1327: If set to any value other than 0, the ARP balancing functionality of
                   1328: .Xr carp 4
                   1329: is enabled.
                   1330: When ARP requests are received for an IP address which is part of any virtual
                   1331: host, carp will hash the source IP in the ARP request to select one of the
                   1332: virtual hosts from the set of all the virtual hosts which have that IP address.
                   1333: The master of that host will respond with the correct virtual MAC address.
                   1334: Disabled by default.
                   1335: .It Li carp.log
                   1336: If set to any value other than 0,
                   1337: .Xr carp 4
                   1338: will log errors.
                   1339: Disabled by default.
                   1340: .It Li carp.preempt
                   1341: If set to 0,
                   1342: .Xr carp 4
                   1343: will not attempt to become master if it is receiving advertisements from
                   1344: another active master.
                   1345: If set to any other value, carp will become master of the virtual host if it
                   1346: believes it can send advertisements more frequently than the current master.
                   1347: Disabled by default.
                   1348: .It Li ip.allowsrcrt
                   1349: If set to 1, the host accepts source routed packets.
1.72      christos 1350: .It Li ip.anonportalgo.available
                   1351: The available RFC 6056 port randomization algorithms.
1.74      christos 1352: .It Li ip.anonportalgo.reserve
                   1353: A bitmask of ports that will not be used during anonymous or privileged
                   1354: port selection.
1.72      christos 1355: .It Li ip.anonportalgo.selected
                   1356: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1357: .It Li ip.anonportmax
                   1358: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1359: This cannot be set to less than 1024 or greater than 65535, and must
                   1360: be greater than
                   1361: .Li ip.anonportmin .
                   1362: .It Li ip.anonportmin
                   1363: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1364: This cannot be set to less than 1024 or greater than 65535.
                   1365: .It Li ip.checkinterface
                   1366: If set to non-zero, the host will reject packets addressed to it
                   1367: that arrive on an interface not bound to that address.
                   1368: Currently, this must be disabled if ipnat is used to translate the
                   1369: destination address to another local interface, or if addresses
                   1370: are added to the loopback interface instead of the interface where
                   1371: the packets for those packets are received.
                   1372: .It Li ip.directed-broadcast
                   1373: If set to 1, enables directed broadcast behavior for the host.
                   1374: .It Li ip.do_loopback_cksum
                   1375: Perform IP checksum on loopback.
                   1376: .It Li ip.forwarding
                   1377: If set to 1, enables IP forwarding for the host,
                   1378: meaning that the host is acting as a router.
                   1379: .It Li ip.forwsrcrt
                   1380: If set to 1, enables forwarding of source-routed packets for the host.
                   1381: This value may only be changed if the kernel security level is less than 1.
                   1382: .It Li ip.gifttl
                   1383: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1384: .Xr gif 4
                   1385: tunnel interface.
                   1386: .It Li ip.grettl
                   1387: The maximum time-to-live (hop count) value for an IPv4 packet generated by
                   1388: .Xr gre 4
                   1389: tunnel interface.
1.8       liamjfoy 1390: .It Li ip.hashsize
                   1391: The size of IPv4 Fast Forward hash table.
                   1392: This value must be a power of 2 (64, 256...).
                   1393: A larger hash table size results in fewer collisions.
                   1394: Also see
                   1395: .Li ip.maxflows .
1.1       pavel    1396: .It Li ip.hostzerobroadcast
                   1397: All zeroes address is broadcast address.
                   1398: .It Li ip.lowportmax
                   1399: The highest port number to use for TCP and UDP reserved port allocation.
                   1400: This cannot be set to less than 0 or greater than 1024, and must
                   1401: be greater than
                   1402: .Li ip.lowportmin .
                   1403: .It Li ip.lowportmin
                   1404: The lowest port number to use for TCP and UDP reserved port allocation.
                   1405: This cannot be set to less than 0 or greater than 1024, and must
                   1406: be smaller than
                   1407: .Li ip.lowportmax .
                   1408: .It Li ip.maxflows
1.5       liamjfoy 1409: IPv4 Fast Forwarding is enabled by default.
                   1410: If set to 0, IPv4 Fast Forwarding is disabled.
1.1       pavel    1411: .Li ip.maxflows
                   1412: controls the maximum amount of flows which can be created.
                   1413: The default value is 256.
                   1414: .It Li ip.maxfragpackets
                   1415: The maximum number of fragmented packets the node will accept.
                   1416: 0 means that the node will not accept any fragmented packets.
                   1417: \-1 means that the node will accept as many fragmented packets as it receives.
                   1418: The flag is provided basically for avoiding possible DoS attacks.
                   1419: .It Li ip.mtudisc
                   1420: If set to 1, enables Path MTU Discovery (RFC 1191).
                   1421: When Path MTU Discovery is enabled, the transmitted TCP segment
                   1422: size will be determined by the advertised maximum segment size
                   1423: (MSS) from the remote end, as constrained by the path MTU.
                   1424: If MTU Discovery is disabled, the transmitted segment size will
                   1425: never be greater than
                   1426: .Li tcp.mssdflt
                   1427: (the local maximum segment size).
                   1428: .It Li ip.mtudisctimeout
                   1429: The number of seconds in which a route added by the Path MTU
                   1430: Discovery engine will time out.
                   1431: When the route times out, the Path
                   1432: MTU Discovery engine will attempt to probe a larger path MTU.
                   1433: .It Li ip.random_id
                   1434: Assign random ip_id values.
                   1435: .It Li ip.redirect
                   1436: If set to 1, ICMP redirects may be sent by the host.
                   1437: This option is ignored unless the host is routing IP packets,
                   1438: and should normally be enabled on all systems.
                   1439: .It Li ip.subnetsarelocal
                   1440: If set to 1, subnets are to be considered local addresses.
                   1441: .It Li ip.ttl
                   1442: The maximum time-to-live (hop count) value for an IP packet sourced by
                   1443: the system.
                   1444: This value applies to normal transport protocols, not to ICMP.
                   1445: .It Li icmp.errppslimit
                   1446: The variable specifies the maximum number of outgoing ICMP error messages,
                   1447: per second.
                   1448: ICMP error messages that exceeded the value are subject to rate limitation
                   1449: and will not go out from the node.
                   1450: Negative value disables rate limitation.
                   1451: .It Li icmp.maskrepl
                   1452: If set to 1, ICMP network mask requests are to be answered.
                   1453: .It Li icmp.rediraccept
                   1454: If set to non-zero, the host will accept ICMP redirect packets.
                   1455: Note that routers will never accept ICMP redirect packets,
                   1456: and the variable is meaningful on IP hosts only.
                   1457: .It Li icmp.redirtimeout
                   1458: The variable specifies lifetime of routing entries generated by incoming
                   1459: ICMP redirect.
                   1460: This defaults to 600 seconds.
                   1461: .It Li icmp.returndatabytes
                   1462: Number of bytes to return in an ICMP error message.
1.28      christos 1463: .It Li icmp.bmcastecho
                   1464: If set to 1, enables responding to ICMP echo or timestamp request to the
                   1465: broadcast address.
1.1       pavel    1466: .It Li tcp.ack_on_push
                   1467: If set to 1, TCP is to immediately transmit an ACK upon reception of
                   1468: a packet with PUSH set.
                   1469: This can avoid losing a round trip time in some rare situations,
                   1470: but has the caveat of potentially defeating TCP's delayed ACK algorithm.
                   1471: Use of this option is generally not recommended, but
                   1472: the variable exists in case your configuration really needs it.
                   1473: .It Li tcp.compat_42
                   1474: If set to 1, enables work-arounds for bugs in the 4.2BSD TCP implementation.
                   1475: Use of this option is not recommended, although it may be
                   1476: required in order to communicate with extremely old TCP implementations.
                   1477: .It Li tcp.cwm
                   1478: If set to 1, enables use of the Hughes/Touch/Heidemann Congestion Window
                   1479: Monitoring algorithm.
                   1480: This algorithm prevents line-rate bursts of packets that could
                   1481: otherwise occur when data begins flowing on an idle TCP connection.
                   1482: These line-rate bursts can contribute to network and router congestion.
                   1483: This can be particularly useful on World Wide Web servers
                   1484: which support HTTP/1.1, which has lingering connections.
                   1485: .It Li tcp.cwm_burstsize
                   1486: The Congestion Window Monitoring allowed burst size, in terms
                   1487: of packet count.
                   1488: .It Li tcp.delack_ticks
                   1489: Number of ticks to delay sending an ACK.
                   1490: .It Li tcp.do_loopback_cksum
                   1491: Perform TCP checksum on loopback.
                   1492: .It Li tcp.init_win
1.76      wiz      1493: A value indicating the TCP initial congestion window.
                   1494: The valid range
1.75      christos 1495: is 0 to 10 (maximum specified by draft-ietf-tcpm-initcwnd-08.txt),
                   1496: with a default of 4 (approximately 4K per RFC3390).
1.1       pavel    1497: .It Li tcp.init_win_local
                   1498: Like
                   1499: .Li tcp.init_win ,
                   1500: but used when communicating with hosts on a local network.
                   1501: .It Li tcp.keepcnt
                   1502: Number of keepalive probes sent before declaring a connection dead.
                   1503: If set to zero, there is no limit;
                   1504: keepalives will be sent until some kind of
                   1505: response is received from the peer.
                   1506: .It Li tcp.keepidle
                   1507: Time a connection must be idle before keepalives are sent (if keepalives
                   1508: are enabled for the connection).
                   1509: See also tcp.slowhz.
                   1510: .It Li tcp.keepintvl
                   1511: Time after a keepalive probe is sent until, in the absence of any response,
                   1512: another probe is sent.
                   1513: See also tcp.slowhz.
                   1514: .It Li tcp.log_refused
                   1515: If set to 1, refused TCP connections to the host will be logged.
1.12      christos 1516: .It Li tcp.keepinit
                   1517: Timeout in seconds during connection establishment.
1.1       pavel    1518: .It Li tcp.mss_ifmtu
                   1519: If set to 1, TCP calculates the outgoing maximum segment size based on
                   1520: the MTU of the appropriate interface.
                   1521: If set to 0, it is calculated based on the greater of the MTU of the
                   1522: interface, and the largest (non-loopback) interface MTU on the system.
                   1523: .It Li tcp.mssdflt
                   1524: The default maximum segment size both advertised to the peer
                   1525: and to use when either the peer does not advertise a maximum segment size to
                   1526: us during connection setup or Path MTU Discovery
                   1527: .Li ( ip.mtudisc )
                   1528: is disabled.
                   1529: Do not change this value unless you really know what you are doing.
                   1530: .It Li tcp.recvspace
                   1531: The default TCP receive buffer size.
                   1532: .It Li tcp.rfc1323
                   1533: If set to 1, enables RFC 1323 extensions to TCP.
                   1534: .It Li tcp.rstppslimit
                   1535: The variable specifies the maximum number of outgoing TCP RST packets,
                   1536: per second.
                   1537: TCP RST packet that exceeded the value are subject to rate limitation
                   1538: and will not go out from the node.
                   1539: Negative value disables rate limitation.
1.13      christos 1540: .It Li tcp.ident
                   1541: Return the user ID of a connected socket pair.
                   1542: (RFC1413 Identification Protocol lookups.)
                   1543: .It Li tcp.drop
                   1544: Drop a TCP socket pair connection.
1.1       pavel    1545: .It Li tcp.sack.enable
                   1546: If set to 1, enables RFC 2018 Selective ACKnowledgement.
                   1547: .It Li tcp.sack.globalholes
                   1548: Global number of TCP SACK holes.
                   1549: .It Li tcp.sack.globalmaxholes
                   1550: Global maximum number of TCP SACK holes.
                   1551: .It Li tcp.sack.maxholes
                   1552: Maximum number of TCP SACK holes allowed per connection.
                   1553: .It Li tcp.ecn.enable
                   1554: If set to 1, enables RFC 3168 Explicit Congestion Notification.
                   1555: .It Li tcp.ecn.maxretries
                   1556: Number of times to retry sending the ECN-setup packet.
                   1557: .It Li tcp.sendspace
                   1558: The default TCP send buffer size.
                   1559: .It Li tcp.slowhz
                   1560: The units for tcp.keepidle and tcp.keepintvl; those variables are in ticks
                   1561: of a clock that ticks tcp.slowhz times per second.
                   1562: (That is, their values
                   1563: must be divided by the tcp.slowhz value to get times in seconds.)
                   1564: .It Li tcp.syn_bucket_limit
                   1565: The maximum number of entries allowed per hash bucket in the TCP
                   1566: compressed state engine.
                   1567: .It Li tcp.syn_cache_limit
                   1568: The maximum number of entries allowed in the TCP compressed state
                   1569: engine.
                   1570: .It Li tcp.timestamps
                   1571: If rfc1323 is enabled, a value of 1 indicates RFC 1323 time stamp options,
                   1572: used for measuring TCP round trip times, are enabled.
                   1573: .It Li tcp.win_scale
                   1574: If rfc1323 is enabled, a value of 1 indicates RFC 1323 window scale options,
                   1575: for increasing the TCP window size, are enabled.
                   1576: .It Li tcp.congctl.available
                   1577: The available TCP congestion control algorithms.
                   1578: .It Li tcp.congctl.selected
                   1579: The currently selected TCP congestion control algorithm.
                   1580: .It Li tcp.abc.enable
                   1581: If set to 1, use RFC 3465 Appropriate Byte Counting (ABC).
                   1582: If set to 0, use traditional Packet Counting.
                   1583: .It Li tcp.abc.aggressive
                   1584: Choose the L parameter found in RFC 3465.
                   1585: L is the maximum cwnd increase for an ack during slow start.
                   1586: If set to 1, use L=2*SMSS.
                   1587: If set to 0, use L=1*SMSS.
                   1588: It has no effect unless tcp.abc.enable is set to 1.
                   1589: .It Li udp.checksum
                   1590: If set to 1, UDP checksums are being computed.
                   1591: Received non-zero UDP checksums are always checked.
                   1592: Disabling UDP checksums is strongly discouraged.
1.67      christos 1593: .It Li udp.recvspace
                   1594: The default UDP receive buffer size.
1.1       pavel    1595: .It Li udp.sendspace
                   1596: The default UDP send buffer size.
                   1597: .El
                   1598: .Pp
                   1599: For variables net.*.ipsec, please refer to
                   1600: .Xr ipsec 4 .
                   1601: .It Li net.inet6 ( PF_INET6 )
                   1602: Get or set various global information about the IPv6
                   1603: .Pq Internet Protocol version 6 .
                   1604: The third level name is the protocol.
                   1605: The fourth level name is the variable name.
                   1606: The currently defined protocols and names are:
1.21      joerg    1607: .Bl -column "Protocol name" "do_loopback_cksum" "integer" "Changeable" -offset indent
1.1       pavel    1608: .It Sy Protocol name   Variable name   Type    Changeable
                   1609: .It icmp6      errppslimit     integer yes
                   1610: .It icmp6      mtudisc_hiwat   integer yes
                   1611: .It icmp6      mtudisc_lowat   integer yes
                   1612: .It icmp6      nd6_debug       integer yes
                   1613: .It icmp6      nd6_delay       integer yes
                   1614: .It icmp6      nd6_maxnudhint  integer yes
                   1615: .It icmp6      nd6_mmaxtries   integer yes
                   1616: .It icmp6      nd6_prune       integer yes
                   1617: .It icmp6      nd6_umaxtries   integer yes
                   1618: .It icmp6      nd6_useloopback integer yes
                   1619: .It icmp6      nodeinfo        integer yes
                   1620: .It icmp6      rediraccept     integer yes
                   1621: .It icmp6      redirtimeout    integer yes
                   1622: .It ip6        accept_rtadv    integer yes
1.72      christos 1623: .It ip6        anonportalgo.selected   string  yes
                   1624: .It ip6        anonportalgo.available  string  yes
1.74      christos 1625: .It ip6 anonportalgo.reserve   struct  yes
1.1       pavel    1626: .It ip6        anonportmax     integer yes
                   1627: .It ip6        anonportmin     integer yes
                   1628: .It ip6        auto_flowlabel  integer yes
                   1629: .It ip6        dad_count       integer yes
                   1630: .It ip6        defmcasthlim    integer yes
                   1631: .It ip6        forwarding      integer yes
                   1632: .It ip6        gifhlim integer yes
1.7       liamjfoy 1633: .It ip6        hashsize        integer yes
1.1       pavel    1634: .It ip6        hlim    integer yes
                   1635: .It ip6        hdrnestlimit    integer yes
                   1636: .It ip6        kame_version    string  no
                   1637: .It ip6        keepfaith       integer yes
                   1638: .It ip6        log_interval    integer yes
                   1639: .It ip6        lowportmax      integer yes
                   1640: .It ip6        lowportmin      integer yes
1.73      christos 1641: .It ip6        maxdynroutes    integer yes
                   1642: .It ip6        maxifprefixes   integer yes
                   1643: .It ip6        maxifdefrouters integer yes
1.5       liamjfoy 1644: .It ip6        maxflows        integer yes
1.1       pavel    1645: .It ip6        maxfragpackets  integer yes
                   1646: .It ip6        maxfrags        integer yes
1.73      christos 1647: .It ip6        neighborgcthresh        integer yes
1.1       pavel    1648: .It ip6        redirect        integer yes
                   1649: .It ip6        rr_prune        integer yes
                   1650: .It ip6        use_deprecated  integer yes
                   1651: .It ip6        v6only  integer yes
                   1652: .It udp6       do_loopback_cksum       integer yes
                   1653: .It udp6       recvspace       integer yes
                   1654: .It udp6       sendspace       integer yes
                   1655: .El
                   1656: .Pp
                   1657: The variables are as follows:
                   1658: .Bl -tag -width "123456"
                   1659: .It Li ip6.accept_rtadv
                   1660: If set to non-zero, the node will accept ICMPv6 router advertisement packets
                   1661: and autoconfigures address prefixes and default routers.
                   1662: The node must be a host
                   1663: .Pq not a router
                   1664: for the option to be meaningful.
1.72      christos 1665: .It Li ip6.anonportalgo.available
                   1666: The available RFC 6056 port randomization algorithms.
1.74      christos 1667: .It Li ip6.anonportalgo.reserve
                   1668: A bitmask of ports that will not be used during anonymous or privileged
                   1669: port selection.
1.72      christos 1670: .It Li ip6.anonportalgo.selected
                   1671: The currently selected RFC 6056 port randomization algorithm.
1.1       pavel    1672: .It Li ip6.anonportmax
                   1673: The highest port number to use for TCP and UDP ephemeral port allocation.
                   1674: This cannot be set to less than 1024 or greater than 65535, and must
                   1675: be greater than
                   1676: .Li ip6.anonportmin .
                   1677: .It Li ip6.anonportmin
                   1678: The lowest port number to use for TCP and UDP ephemeral port allocation.
                   1679: This cannot be set to less than 1024 or greater than 65535.
                   1680: .It Li ip6.auto_flowlabel
                   1681: On connected transport protocol packets,
                   1682: fill IPv6 flowlabel field to help intermediate routers to identify packet flows.
                   1683: .It Li ip6.dad_count
                   1684: The variable configures number of IPv6 DAD
                   1685: .Pq duplicated address detection
                   1686: probe packets.
                   1687: The packets will be generated when IPv6 interface addresses are configured.
                   1688: .It Li ip6.defmcasthlim
                   1689: The default hop limit value for an IPv6 multicast packet sourced by the node.
                   1690: This value applies to all the transport protocols on top of IPv6.
                   1691: There are APIs to override the value, as documented in
                   1692: .Xr ip6 4 .
                   1693: .It Li ip6.forwarding
                   1694: If set to 1, enables IPv6 forwarding for the node,
                   1695: meaning that the node is acting as a router.
                   1696: If set to 0, disables IPv6 forwarding for the node,
                   1697: meaning that the node is acting as a host.
                   1698: IPv6 specification defines node behavior for
                   1699: .Dq router
                   1700: case and
                   1701: .Dq host
                   1702: case quite differently, and changing this variable during operation
                   1703: may cause serious trouble.
                   1704: It is recommended to configure the variable at bootstrap time,
                   1705: and bootstrap time only.
                   1706: .It Li ip6.gifhlim
                   1707: The maximum hop limit value for an IPv6 packet generated by
                   1708: .Xr gif 4
                   1709: tunnel interface.
                   1710: .It Li ip6.hdrnestlimit
                   1711: The number of IPv6 extension headers permitted on incoming IPv6 packets.
                   1712: If set to 0, the node will accept as many extension headers as possible.
1.7       liamjfoy 1713: .It Li ip6.hashsize
                   1714: The size of IPv6 Fast Forward hash table.
1.56      uwe      1715: This value must be a power of 2 (64, 256, ...).
1.7       liamjfoy 1716: A larger hash table size results in fewer collisions.
                   1717: Also see
                   1718: .Li ip6.maxflows .
1.1       pavel    1719: .It Li ip6.hlim
                   1720: The default hop limit value for an IPv6 unicast packet sourced by the node.
                   1721: This value applies to all the transport protocols on top of IPv6.
                   1722: There are APIs to override the value, as documented in
                   1723: .Xr ip6 4 .
                   1724: .It Li ip6.kame_version
                   1725: The string identifies the version of KAME IPv6 stack implemented in the kernel.
                   1726: .It Li ip6.keepfaith
                   1727: If set to non-zero, it enables
                   1728: .Dq FAITH
                   1729: TCP relay IPv6-to-IPv4 translator code in the kernel.
                   1730: Refer
                   1731: .Xr faith 4
                   1732: and
                   1733: .Xr faithd 8
                   1734: for detail.
                   1735: .It Li ip6.log_interval
                   1736: The variable controls amount of logs generated by IPv6 packet
                   1737: forwarding engine, by setting interval between log output
                   1738: .Pq in seconds .
                   1739: .It Li ip6.lowportmax
                   1740: The highest port number to use for TCP and UDP reserved port allocation.
                   1741: This cannot be set to less than 0 or greater than 1024, and must
                   1742: be greater than
                   1743: .Li ip6.lowportmin .
                   1744: .It Li ip6.lowportmin
                   1745: The lowest port number to use for TCP and UDP reserved port allocation.
                   1746: This cannot be set to less than 0 or greater than 1024, and must
                   1747: be smaller than
                   1748: .Li ip6.lowportmax .
1.73      christos 1749: .It Li ip6.maxdynroutes
                   1750: Maximum number of routes created by redirect.
                   1751: Set it to negative to disable.
                   1752: The default value is 4096.
                   1753: .It Li ip6.maxifprefixes
                   1754: Maximum number of prefixes created by route advertisements per interface.
                   1755: Set it to negative to disable.
                   1756: The default value is 16.
                   1757: .It Li ip6.maxifdefrouters 16
                   1758: Maximum number of default routers created by route advertisements per interface.
                   1759: Set it to negative to disable.
                   1760: The default value is 16.
1.5       liamjfoy 1761: .It Li ip6.maxflows
                   1762: IPv6 Fast Forwarding is enabled by default.
                   1763: If set to 0, IPv6 Fast Forwarding is disabled.
                   1764: .Li ip6.maxflows
                   1765: controls the maximum amount of flows which can be created.
1.6       liamjfoy 1766: The default value is 256.
1.1       pavel    1767: .It Li ip6.maxfragpackets
                   1768: The maximum number of fragmented packets the node will accept.
                   1769: 0 means that the node will not accept any fragmented packets.
                   1770: \-1 means that the node will accept as many fragmented packets as it receives.
                   1771: The flag is provided basically for avoiding possible DoS attacks.
                   1772: .It Li ip6.maxfrags
                   1773: The maximum number of fragments the node will accept.
                   1774: 0 means that the node will not accept any fragments.
                   1775: \-1 means that the node will accept as many fragments as it receives.
                   1776: The flag is provided basically for avoiding possible DoS attacks.
1.73      christos 1777: .It Li ip6.neighborgcthresh
                   1778: Maximum number of entries in neighbor cache.
                   1779: Set to negative to disable.
                   1780: The default value is 2048.
1.1       pavel    1781: .It Li ip6.redirect
                   1782: If set to 1, ICMPv6 redirects may be sent by the node.
                   1783: This option is ignored unless the node is routing IP packets,
                   1784: and should normally be enabled on all systems.
                   1785: .It Li ip6.rr_prune
                   1786: The variable specifies interval between IPv6 router renumbering prefix
                   1787: babysitting, in seconds.
                   1788: .It Li ip6.use_deprecated
                   1789: The variable controls use of deprecated address, specified in RFC 2462 5.5.4.
                   1790: .It Li ip6.v6only
                   1791: The variable specifies initial value for
                   1792: .Dv IPV6_V6ONLY
                   1793: socket option for
                   1794: .Dv AF_INET6
                   1795: socket.
                   1796: Please refer to
                   1797: .Xr ip6 4
                   1798: for detail.
                   1799: .It Li icmp6.errppslimit
                   1800: The variable specifies the maximum number of outgoing ICMPv6 error messages,
                   1801: per second.
                   1802: ICMPv6 error messages that exceeded the value are subject to rate limitation
                   1803: and will not go out from the node.
                   1804: Negative value disables rate limitation.
                   1805: .It Li icmp6.mtudisc_hiwat
                   1806: .It Li icmp6.mtudisc_lowat
                   1807: The variables define the maximum number of routing table entries,
                   1808: created due to path MTU discovery
                   1809: .Pq prevents denial-of-service attacks with ICMPv6 too big messages .
                   1810: When IPv6 path MTU discovery happens, we keep path MTU information into
                   1811: the routing table.
                   1812: If the number of routing table entries exceed the value,
                   1813: the kernel will not attempt to keep the path MTU information.
                   1814: .Li icmp6.mtudisc_hiwat
                   1815: is used when we have verified ICMPv6 too big messages.
                   1816: .Li icmp6.mtudisc_lowat
                   1817: is used when we have unverified ICMPv6 too big messages.
                   1818: Verification is performed by using address/port pairs kept in connected pcbs.
                   1819: Negative value disables the upper limit.
                   1820: .It Li icmp6.nd6_debug
                   1821: If set to non-zero, kernel IPv6 neighbor discovery code will generate
                   1822: debugging messages.
                   1823: The debug outputs are useful to diagnose IPv6 interoperability issues.
                   1824: The flag must be set to 0 for normal operation.
                   1825: .It Li icmp6.nd6_delay
                   1826: The variable specifies
                   1827: .Dv DELAY_FIRST_PROBE_TIME
                   1828: timing constant in IPv6 neighbor discovery specification
                   1829: .Pq RFC 2461 ,
                   1830: in seconds.
                   1831: .It Li icmp6.nd6_maxnudhint
                   1832: IPv6 neighbor discovery permits upper layer protocols to supply reachability
                   1833: hints, to avoid unnecessary neighbor discovery exchanges.
                   1834: The variable defines the number of consecutive hints the neighbor discovery
                   1835: layer will take.
                   1836: For example, by setting the variable to 3, neighbor discovery layer
                   1837: will take 3 consecutive hints in maximum.
                   1838: After receiving 3 hints, neighbor discovery layer will perform
                   1839: normal neighbor discovery process.
                   1840: .It Li icmp6.nd6_mmaxtries
                   1841: The variable specifies
                   1842: .Dv MAX_MULTICAST_SOLICIT
                   1843: constant in IPv6 neighbor discovery specification
                   1844: .Pq RFC 2461 .
                   1845: .It Li icmp6.nd6_prune
                   1846: The variable specifies interval between IPv6 neighbor cache babysitting,
                   1847: in seconds.
                   1848: .It Li icmp6.nd6_umaxtries
                   1849: The variable specifies
                   1850: .Dv MAX_UNICAST_SOLICIT
                   1851: constant in IPv6 neighbor discovery specification
                   1852: .Pq RFC 2461 .
                   1853: .It Li icmp6.nd6_useloopback
                   1854: If set to non-zero, kernel IPv6 stack will use loopback interface for
                   1855: local traffic.
                   1856: .It Li icmp6.nodeinfo
                   1857: The variable enables responses to ICMPv6 node information queries.
                   1858: If you set the variable to 0, responses will not be generated for
                   1859: ICMPv6 node information queries.
                   1860: Since node information queries can have a security impact, it is
                   1861: possible to fine tune which responses should be answered.
                   1862: Two separate bits can be set.
                   1863: .Bl -tag -width "12345"
                   1864: .It 1
                   1865: Respond to ICMPv6 FQDN queries, e.g.
                   1866: .Li ping6 -w .
                   1867: .It 2
                   1868: Respond to ICMPv6 node addresses queries, e.g.
                   1869: .Li ping6 -a .
                   1870: .El
                   1871: .It Li icmp6.rediraccept
                   1872: If set to non-zero, the host will accept ICMPv6 redirect packets.
                   1873: Note that IPv6 routers will never accept ICMPv6 redirect packets,
                   1874: and the variable is meaningful on IPv6 hosts
                   1875: .Pq non-router
                   1876: only.
                   1877: .It Li icmp6.redirtimeout
                   1878: The variable specifies lifetime of routing entries generated by incoming
                   1879: ICMPv6 redirect.
                   1880: .It Li udp6.do_loopback_cksum
                   1881: Perform UDP checksum on loopback.
                   1882: .It Li udp6.recvspace
                   1883: Default UDP receive buffer size.
                   1884: .It Li udp6.sendspace
                   1885: Default UDP send buffer size.
                   1886: .El
                   1887: .Pp
                   1888: We reuse net.*.tcp for
                   1889: .Tn TCP
                   1890: over
                   1891: .Tn IPv6 ,
                   1892: and therefore we do not have variables net.*.tcp6.
                   1893: Variables net.inet6.udp6 have identical meaning to net.inet.udp.
                   1894: Please refer to
                   1895: .Li PF_INET
                   1896: section above.
                   1897: For variables net.*.ipsec6, please refer to
                   1898: .Xr ipsec 4 .
                   1899: .It Li net.key ( PF_KEY )
                   1900: Get or set various global information about the IPsec key management.
                   1901: The third level name is the variable name.
                   1902: The currently defined variable and names are:
1.21      joerg    1903: .Bl -column "blockacq_lifetime" "integer" "Changeable" -offset indent
1.1       pavel    1904: .It Sy Variable name   Type    Changeable
                   1905: .It debug      integer yes
1.79.2.1! tls      1906: .It enabled    integer yes
        !          1907: .It used       integer no
1.1       pavel    1908: .It spi_try    integer yes
                   1909: .It spi_min_value      integer yes
                   1910: .It spi_max_value      integer yes
                   1911: .It larval_lifetime    integer yes
                   1912: .It blockacq_count     integer yes
                   1913: .It blockacq_lifetime  integer yes
                   1914: .It esp_keymin integer yes
                   1915: .It esp_auth   integer yes
                   1916: .It ah_keymin  integer yes
                   1917: .El
1.21      joerg    1918: .Pp
1.1       pavel    1919: The variables are as follows:
                   1920: .Bl -tag -width "123456"
                   1921: .It Li debug
                   1922: Turn on debugging message from within the kernel.
                   1923: The value is a bitmap, as defined in
1.56      uwe      1924: .In netkey/key_debug.h .
1.79.2.1! tls      1925: .It Li enabled
        !          1926: Control processing of IPsec control messages.
        !          1927: .Bl -tag -width indent
        !          1928: .It 0
        !          1929: Never allow IPsec processing
        !          1930: .It 1
        !          1931: Allow IPsec processing when SPD policies are present.
        !          1932: .It 2
        !          1933: Force IPsec processing even when SPD policies are not present.
        !          1934: .El
        !          1935: .It Li used
        !          1936: Based on if IPsec is enabled, and SPD rule existance, show if
        !          1937: IPsec is being used.
        !          1938: Note that currenly once IPsec is being used, it cannot be disabled.
1.1       pavel    1939: .It Li spi_try
                   1940: The number of times the kernel will try to obtain an unique SPI
                   1941: when it generates it from random number generator.
                   1942: .It Li spi_min_value
                   1943: Minimum SPI value when generating it within the kernel.
                   1944: .It Li spi_max_value
                   1945: Maximum SPI value when generating it within the kernel.
                   1946: .It Li larval_lifetime
                   1947: Lifetime for LARVAL SAD entries, in seconds.
                   1948: .It Li blockacq_count
                   1949: Number of ACQUIRE PF_KEY messages to be blocked after an ACQUIRE message.
                   1950: It avoids flood of ACQUIRE PF_KEY from being sent from the kernel to the
                   1951: key management daemon.
                   1952: .It Li blockacq_lifetime
                   1953: Lifetime of ACQUIRE PF_KEY message.
                   1954: .It Li esp_keymin
                   1955: Minimum ESP key length, in bits.
                   1956: The value is used when the kernel creates proposal payload
                   1957: on ACQUIRE PF_KEY message.
                   1958: .It Li esp_auth
                   1959: Whether ESP authentication should be used or not.
                   1960: Non-zero value indicates that ESP authentication should be used.
                   1961: The value is used when the kernel creates proposal payload
                   1962: on ACQUIRE PF_KEY message.
                   1963: .It Li ah_keymin
                   1964: Minimum AH key length, in bits,
                   1965: The value is used when the kernel creates proposal payload
                   1966: on ACQUIRE PF_KEY message.
                   1967: .El
                   1968: .El
1.50      jruoho   1969: .Ss The proc.* subtree
1.1       pavel    1970: The string and integer information available for the
                   1971: .Li proc
                   1972: level is detailed below.
                   1973: The changeable column shows whether a process with appropriate
                   1974: privilege may change the value.
                   1975: These values are per-process,
                   1976: and as such may change from one process to another.
                   1977: When a process is created,
                   1978: the default values are inherited from its parent.
                   1979: When a set-user-ID or set-group-ID binary is executed, the
                   1980: value of PROC_PID_CORENAME is reset to the system default value.
                   1981: The second level name is either the magic value PROC_CURPROC, which
                   1982: points to the current process, or the PID of the target process.
1.21      joerg    1983: .Bl -column "proc.pid.corename" "string" "not applicable" -offset indent
1.1       pavel    1984: .It Sy Third level name        Type    Changeable
                   1985: .It proc.pid.corename  string  yes
                   1986: .It proc.pid.rlimit    node    not applicable
                   1987: .It proc.pid.stopfork  int     yes
                   1988: .It proc.pid.stopexec  int     yes
                   1989: .It proc.pid.stopexit  int     yes
                   1990: .El
                   1991: .Bl -tag -width "123456"
                   1992: .It Li proc.pid.corename ( PROC_PID_CORENAME )
                   1993: The template used for the core dump file name (see
                   1994: .Xr core 5
                   1995: for details).
                   1996: The base name must either be
1.56      uwe      1997: .Pa core
                   1998: or end with the suffix
                   1999: .Pa .core
                   2000: (the super-user may set arbitrary names).
                   2001: By default it points to
                   2002: .Dv KERN_DEFCORENAME .
1.1       pavel    2003: .It Li proc.pid.rlimit ( PROC_PID_LIMIT )
                   2004: Return resources limits, as defined for the
                   2005: .Xr getrlimit 2
                   2006: and
                   2007: .Xr setrlimit 2
                   2008: system calls.
                   2009: The fourth level name is one of:
1.56      uwe      2010: .Bl -tag -width "123456"
1.1       pavel    2011: .It Li proc.pid.rlimit.cputime ( PROC_PID_LIMIT_CPU )
                   2012: The maximum amount of CPU time (in seconds) to be used by each process.
                   2013: .It Li proc.pid.rlimit.filesize ( PROC_PID_LIMIT_FSIZE )
                   2014: The largest size (in bytes) file that may be created.
                   2015: .It Li proc.pid.rlimit.datasize ( PROC_PID_LIMIT_DATA )
                   2016: The maximum size (in bytes) of the data segment for a process;
                   2017: this defines how far a program may extend its break with the
                   2018: .Xr sbrk 2
                   2019: system call.
                   2020: .It Li proc.pid.rlimit.stacksize ( PROC_PID_LIMIT_STACK )
                   2021: The maximum size (in bytes) of the stack segment for a process;
                   2022: this defines how far a program's stack segment may be extended.
                   2023: Stack extension is performed automatically by the system.
                   2024: .It Li proc.pid.rlimit.coredumpsize ( PROC_PID_LIMIT_CORE )
                   2025: The largest size (in bytes)
                   2026: .Pa core
                   2027: file that may be created.
                   2028: .It Li proc.pid.rlimit.memoryuse ( PROC_PID_LIMIT_RSS )
                   2029: The maximum size (in bytes) to which a process's resident set size may
                   2030: grow.
                   2031: This imposes a limit on the amount of physical memory to be given to
                   2032: a process; if memory is tight, the system will prefer to take memory
                   2033: from processes that are exceeding their declared resident set size.
                   2034: .It Li proc.pid.rlimit.memorylocked ( PROC_PID_LIMIT_MEMLOCK )
                   2035: The maximum size (in bytes) which a process may lock into memory
                   2036: using the
                   2037: .Xr mlock 2
                   2038: function.
                   2039: .It Li proc.pid.rlimit.maxproc ( PROC_PID_LIMIT_NPROC )
                   2040: The maximum number of simultaneous processes for this user id.
                   2041: .It Li proc.pid.rlimit.descriptors ( PROC_PID_LIMIT_NOFILE )
                   2042: The maximum number of open files for this process.
1.22      snj      2043: .It Li proc.pid.rlimit.sbsize ( PROC_PID_LIMIT_SBSIZE )
                   2044: The maximum size (in bytes) of the socket buffers
                   2045: set by the
                   2046: .Xr setsockopt 2
                   2047: .Dv SO_RCVBUF
                   2048: and
                   2049: .Dv SO_SNDBUF
                   2050: options.
1.1       pavel    2051: .El
                   2052: .Pp
                   2053: The fifth level name is one of
1.56      uwe      2054: .Li soft ( PROC_PID_LIMIT_TYPE_SOFT )
                   2055: or
1.1       pavel    2056: .Li hard ( PROC_PID_LIMIT_TYPE_HARD ) ,
                   2057: to select respectively the soft or hard limit.
                   2058: Both are of type integer.
                   2059: .It Li proc.pid.stopfork ( PROC_PID_STOPFORK )
                   2060: If non zero, the process' children will be stopped after
                   2061: .Xr fork 2
                   2062: calls.
                   2063: The children is created in the SSTOP state and is never scheduled
                   2064: for running before being stopped.
                   2065: This feature helps attaching a process with a debugger such as
                   2066: .Xr gdb 1
                   2067: before it had the opportunity to actually do anything.
                   2068: .Pp
                   2069: This value is inherited by the process's children, and it also
                   2070: apply to emulation specific system calls that fork a new process, such as
                   2071: .Fn sproc
                   2072: or
                   2073: .Fn clone .
                   2074: .It Li proc.pid.stopexec ( PROC_PID_STOPEXEC )
                   2075: If non zero, the process will be stopped on next
                   2076: .Xr exec 3
                   2077: call.
                   2078: The process created by
                   2079: .Xr exec 3
                   2080: is created in the SSTOP state and is never scheduled for running
                   2081: before being stopped.
                   2082: This feature helps attaching a process with a debugger such as
                   2083: .Xr gdb 1
                   2084: before it had the opportunity to actually do anything.
                   2085: .Pp
                   2086: This value is inherited by the process's children.
                   2087: .It Li proc.pid.stopexit ( PROC_PID_STOPEXIT )
                   2088: If non zero, the process will be stopped on when it has cause to exit,
                   2089: either by way of calling
                   2090: .Xr exit 3 ,
                   2091: .Xr _exit 2 ,
                   2092: or by the receipt of a specific signal.
                   2093: The process is stopped before any of its resources or vm space is
                   2094: released allowing examination of the termination state of a process
                   2095: before it disappears.
                   2096: This feature can be used to examine the final conditions of the
                   2097: process's vmspace via
                   2098: .Xr pmap 1
                   2099: or its resource settings with
                   2100: .Xr sysctl 8
                   2101: before it disappears.
                   2102: .Pp
                   2103: This value is also inherited by the process's children.
                   2104: .El
1.50      jruoho   2105: .Ss The user.* subtree ( CTL_USER )
1.1       pavel    2106: The string and integer information available for the
                   2107: .Li user
                   2108: level is detailed below.
                   2109: The changeable column shows whether a process with appropriate
                   2110: privilege may change the value.
1.21      joerg    2111: .Bl -column "user.coll_weights_max" "integer" "Changeable" -offset indent
1.1       pavel    2112: .It Sy Second level name       Type    Changeable
                   2113: .It user.atexit_max    integer no
                   2114: .It user.bc_base_max   integer no
                   2115: .It user.bc_dim_max    integer no
                   2116: .It user.bc_scale_max  integer no
                   2117: .It user.bc_string_max integer no
                   2118: .It user.coll_weights_max      integer no
                   2119: .It user.cs_path       string  no
                   2120: .It user.expr_nest_max integer no
                   2121: .It user.line_max      integer no
                   2122: .It user.posix2_c_bind integer no
                   2123: .It user.posix2_c_dev  integer no
                   2124: .It user.posix2_char_term      integer no
                   2125: .It user.posix2_fort_dev       integer no
                   2126: .It user.posix2_fort_run       integer no
                   2127: .It user.posix2_localedef      integer no
                   2128: .It user.posix2_sw_dev integer no
                   2129: .It user.posix2_upe    integer no
                   2130: .It user.posix2_version        integer no
                   2131: .It user.re_dup_max    integer no
                   2132: .It user.stream_max    integer no
                   2133: .It user.stream_max    integer no
                   2134: .It user.tzname_max    integer no
                   2135: .El
                   2136: .Bl -tag -width "123456"
                   2137: .It Li user.atexit_max ( USER_ATEXIT_MAX )
                   2138: The maximum number of functions that may be registered with
                   2139: .Xr atexit 3 .
                   2140: .It Li user.bc_base_max ( USER_BC_BASE_MAX )
                   2141: The maximum ibase/obase values in the
                   2142: .Xr bc 1
                   2143: utility.
                   2144: .It Li user.bc_dim_max ( USER_BC_DIM_MAX )
                   2145: The maximum array size in the
                   2146: .Xr bc 1
                   2147: utility.
                   2148: .It Li user.bc_scale_max ( USER_BC_SCALE_MAX )
                   2149: The maximum scale value in the
                   2150: .Xr bc 1
                   2151: utility.
                   2152: .It Li user.bc_string_max ( USER_BC_STRING_MAX )
                   2153: The maximum string length in the
                   2154: .Xr bc 1
                   2155: utility.
                   2156: .It Li user.coll_weights_max ( USER_COLL_WEIGHTS_MAX )
                   2157: The maximum number of weights that can be assigned to any entry of
                   2158: the LC_COLLATE order keyword in the locale definition file.
                   2159: .It Li user.cs_path ( USER_CS_PATH )
                   2160: Return a value for the
                   2161: .Ev PATH
                   2162: environment variable that finds all the standard utilities.
                   2163: .It Li user.expr_nest_max ( USER_EXPR_NEST_MAX )
                   2164: The maximum number of expressions that can be nested within
                   2165: parenthesis by the
                   2166: .Xr expr 1
                   2167: utility.
                   2168: .It Li user.line_max ( USER_LINE_MAX )
                   2169: The maximum length in bytes of a text-processing utility's input
                   2170: line.
                   2171: .It Li user.posix2_char_term ( USER_POSIX2_CHAR_TERM )
                   2172: Return 1 if the system supports at least one terminal type capable of
1.58      wiz      2173: all operations described in
                   2174: .St -p1003.2 ,
                   2175: otherwise\ 0.
1.1       pavel    2176: .It Li user.posix2_c_bind ( USER_POSIX2_C_BIND )
                   2177: Return 1 if the system's C-language development facilities support the
1.56      uwe      2178: C-Language Bindings Option, otherwise\ 0.
1.1       pavel    2179: .It Li user.posix2_c_dev ( USER_POSIX2_C_DEV )
                   2180: Return 1 if the system supports the C-Language Development Utilities Option,
1.56      uwe      2181: otherwise\ 0.
1.1       pavel    2182: .It Li user.posix2_fort_dev ( USER_POSIX2_FORT_DEV )
                   2183: Return 1 if the system supports the FORTRAN Development Utilities Option,
1.56      uwe      2184: otherwise\ 0.
1.1       pavel    2185: .It Li user.posix2_fort_run ( USER_POSIX2_FORT_RUN )
                   2186: Return 1 if the system supports the FORTRAN Runtime Utilities Option,
1.56      uwe      2187: otherwise\ 0.
1.1       pavel    2188: .It Li user.posix2_localedef ( USER_POSIX2_LOCALEDEF )
1.56      uwe      2189: Return 1 if the system supports the creation of locales, otherwise\ 0.
1.1       pavel    2190: .It Li user.posix2_sw_dev ( USER_POSIX2_SW_DEV )
                   2191: Return 1 if the system supports the Software Development Utilities Option,
1.56      uwe      2192: otherwise\ 0.
1.1       pavel    2193: .It Li user.posix2_upe ( USER_POSIX2_UPE )
                   2194: Return 1 if the system supports the User Portability Utilities Option,
1.56      uwe      2195: otherwise\ 0.
1.1       pavel    2196: .It Li user.posix2_version ( USER_POSIX2_VERSION )
1.58      wiz      2197: The version of
                   2198: .St -p1003.2
                   2199: with which the system attempts to comply.
1.1       pavel    2200: .It Li user.re_dup_max ( USER_RE_DUP_MAX )
                   2201: The maximum number of repeated occurrences of a regular expression
                   2202: permitted when using interval notation.
                   2203: .It Li user.stream_max ( USER_STREAM_MAX )
                   2204: The minimum maximum number of streams that a process may have open
                   2205: at any one time.
                   2206: .It Li user.tzname_max ( USER_TZNAME_MAX )
                   2207: The minimum maximum number of types supported for the name of a
                   2208: timezone.
                   2209: .El
1.50      jruoho   2210: .Ss The vm.* subtree ( CTL_VM )
1.1       pavel    2211: The string and integer information available for the
                   2212: .Li vm
                   2213: level is detailed below.
                   2214: The changeable column shows whether a process with appropriate
                   2215: privilege may change the value.
1.21      joerg    2216: .Bl -column "Second level name" "struct uvmexp_sysctl" "Changeable" -offset indent
1.1       pavel    2217: .It Sy Second level name       Type    Changeable
                   2218: .It vm.anonmax int     yes
                   2219: .It vm.anonmin int     yes
                   2220: .It vm.bufcache        int     yes
                   2221: .It vm.bufmem  int     no
                   2222: .It vm.bufmem_hiwater  int     yes
                   2223: .It vm.bufmem_lowater  int     yes
                   2224: .It vm.execmax int     yes
                   2225: .It vm.execmin int     yes
                   2226: .It vm.filemax int     yes
                   2227: .It vm.filemin int     yes
                   2228: .It vm.loadavg struct loadavg  no
                   2229: .It vm.maxslp  int     no
                   2230: .It vm.nkmempages      int     no
                   2231: .It vm.uspace  int     no
                   2232: .It vm.uvmexp  struct uvmexp   no
                   2233: .It vm.uvmexp2 struct uvmexp_sysctl    no
                   2234: .It vm.vmmeter struct vmtotal  no
                   2235: .El
                   2236: .Pp
                   2237: .Bl -tag -width "123456"
                   2238: .It Li vm.anonmax ( VM_ANONMAX )
                   2239: The percentage of physical memory which will be reclaimed
                   2240: from other types of memory usage to store anonymous application data.
                   2241: .It Li vm.anonmin ( VM_ANONMIN )
                   2242: The percentage of physical memory which will be always be available for
                   2243: anonymous application data.
                   2244: .It Li vm.bufcache ( VM_BUFCACHE )
                   2245: The percentage of physical memory which will be available
                   2246: for the buffer cache.
                   2247: .It Li vm.bufmem ( VM_BUFMEM )
                   2248: The amount of kernel memory that is being used by the buffer cache.
                   2249: .It Li vm.bufmem_lowater ( VM_BUFMEM_LOWATER )
                   2250: The minimum amount of kernel memory to reserve for the
                   2251: buffer cache.
                   2252: .It Li vm.bufmem_hiwater ( VM_BUFMEM_HIWATER )
                   2253: The maximum amount of kernel memory to be used for the
                   2254: buffer cache.
                   2255: .It Li vm.execmax ( VM_EXECMAX )
                   2256: The percentage of physical memory which will be reclaimed
                   2257: from other types of memory usage to store cached executable data.
                   2258: .It Li vm.execmin ( VM_EXECMIN )
                   2259: The percentage of physical memory which will be always be available for
                   2260: cached executable data.
                   2261: .It Li vm.filemax ( VM_FILEMAX )
                   2262: The percentage of physical memory which will be reclaimed
                   2263: from other types of memory usage to store cached file data.
                   2264: .It Li vm.filemin ( VM_FILEMIN )
                   2265: The percentage of physical memory which will be always be available for
                   2266: cached file data.
                   2267: .It Li vm.loadavg ( VM_LOADAVG )
                   2268: Return the load average history.
                   2269: The returned data consists of a
1.56      uwe      2270: .Vt struct loadavg .
1.1       pavel    2271: .It Li vm.maxslp ( VM_MAXSLP )
                   2272: The value of the maxslp kernel global variable.
                   2273: .It Li vm.vmmeter ( VM_METER )
                   2274: Return system wide virtual memory statistics.
                   2275: The returned data consists of a
1.56      uwe      2276: .Vt struct vmtotal .
1.31      drochner 2277: .It vm.user_va0_disable
1.56      uwe      2278: A flag which controls whether user processes can map virtual address\ 0.
1.1       pavel    2279: .It Li vm.uspace ( VM_USPACE )
                   2280: The number of bytes allocated for each kernel stack.
                   2281: .It Li vm.uvmexp ( VM_UVMEXP )
                   2282: Return system wide virtual memory statistics.
                   2283: The returned data consists of a
1.56      uwe      2284: .Vt struct uvmexp .
1.1       pavel    2285: .It Li vm.uvmexp2 ( VM_UVMEXP2 )
                   2286: Return system wide virtual memory statistics.
                   2287: The returned data consists of a
1.56      uwe      2288: .Vt struct uvmexp_sysctl .
1.1       pavel    2289: .\" XXX vm.idlezero
                   2290: .El
1.50      jruoho   2291: .Ss The ddb.* subtree ( CTL_DDB )
1.34      jruoho   2292: The information available for the
1.1       pavel    2293: .Li ddb
                   2294: level is detailed below.
                   2295: The changeable column shows whether a process with appropriate
                   2296: privilege may change the value.
                   2297: .\" XXX sort
1.21      joerg    2298: .Bl -column "Second level name" "integer" "Changeable" -offset indent
1.1       pavel    2299: .It Sy Second level name       Type    Changeable
                   2300: .It ddb.radix  integer yes
                   2301: .It ddb.maxoff integer yes
1.34      jruoho   2302: .It ddb.maxwidth       integer yes
1.1       pavel    2303: .It ddb.lines  integer yes
                   2304: .It ddb.tabstops       integer yes
                   2305: .It ddb.onpanic        integer yes
                   2306: .It ddb.fromconsole    integer yes
1.34      jruoho   2307: .It ddb.tee_msgbuf     integer yes
                   2308: .It ddb.commandonenter string  yes
1.1       pavel    2309: .El
                   2310: .Pp
                   2311: .Bl -tag -width "123456"
1.35      jruoho   2312: .It Li ddb.radix ( DDBCTL_RADIX )
1.1       pavel    2313: The input and output radix.
1.35      jruoho   2314: .It Li ddb.maxoff ( DDBCTL_MAXOFF )
1.1       pavel    2315: The maximum symbol offset.
1.34      jruoho   2316: .It Li ddb.maxwidth ( DDBCTL_MAXWIDTH )
                   2317: The maximum output line width.
1.35      jruoho   2318: .It Li ddb.lines ( DDBCTL_LINES )
1.1       pavel    2319: Number of display lines.
1.35      jruoho   2320: .It Li ddb.tabstops ( DDBCTL_TABSTOPS )
1.1       pavel    2321: Tab width.
1.35      jruoho   2322: .It Li ddb.onpanic ( DDBCTL_ONPANIC )
1.63      riz      2323: If greater than zero, DDB will be entered if the kernel panics.
                   2324: A value of 1 causes the system to enter DDB on panic, while a value of 2
                   2325: causes the kernel to attempt to print out a stack trace before entering DDB.
                   2326: A value of 0 causes the kernel to attempt to print a stack trace, then
1.64      wiz      2327: reboot, while a value of \-1 means neither a stack trace will be printed
1.63      riz      2328: nor DDB entered.
1.35      jruoho   2329: .It Li ddb.fromconsole ( DDBCTL_FROMCONSOLE )
1.1       pavel    2330: If not zero, DDB may be entered by sending a break on a serial
                   2331: console or by a special key sequence on a graphics console.
1.34      jruoho   2332: .It Li ddb.tee_msgbuf
                   2333: If not zero, DDB will output also to the kernel message buffer.
                   2334: .It Li ddb.commandonenter
                   2335: If not empty, a command to be executed on each enter to the
                   2336: .Tn DDB .
                   2337: .\"
                   2338: .\" XXX: (a) ddb.commandonenter is missing in ddb(4);
                   2339: .\"     (b) No DDBCTL definitions for tee_msgbuf and commandonenter.
1.1       pavel    2340: .El
                   2341: .Pp
1.34      jruoho   2342: Some of these
                   2343: .Tn MIB
                   2344: nodes are also available as variables from within the debugger.
1.1       pavel    2345: See
                   2346: .Xr ddb 4
                   2347: for more details.
1.50      jruoho   2348: .Ss The security.* subtree ( CTL_SECURITY )
1.1       pavel    2349: The
                   2350: .Li security
                   2351: level contains various security-related settings for
1.2       wiz      2352: the system.
1.43      jruoho   2353: The available second level names are:
                   2354: .Bl -column "Second level name" "integer" "Changeable" -offset indent
                   2355: .It Sy Second level name       Type    Changeable
                   2356: .It Li security.curtain        integer yes
                   2357: .It Li security.models node    not applicable
                   2358: .It Li security.pax    node    not applicable
                   2359: .El
                   2360: .Pp
1.2       wiz      2361: Available settings are detailed below.
1.1       pavel    2362: .Pp
                   2363: .Bl -tag -width "123456"
                   2364: .It Li security.curtain
1.43      jruoho   2365: If non-zero, will filter return objects according to the user
                   2366: .Tn ID
1.1       pavel    2367: requesting information about them, preventing from users any
1.43      jruoho   2368: access to objects they do not own.
1.1       pavel    2369: .Pp
                   2370: At the moment, it affects
                   2371: .Xr ps 1 ,
                   2372: .Xr netstat 1
                   2373: (for
                   2374: .Dv PF_INET ,
                   2375: .Dv PF_INET6 ,
                   2376: and
                   2377: .Dv PF_UNIX
                   2378: PCBs), and
                   2379: .Xr w 1 .
1.4       elad     2380: .It Li security.models
                   2381: .Nx
                   2382: supports pluggable security models.
1.17      ad       2383: Every security model used, whether if loaded as a module or built with the system,
1.4       elad     2384: is required to add an entry to this node with at least one element,
                   2385: .Dq name ,
                   2386: indicating the name of the security model.
                   2387: .Pp
                   2388: In addition to the name, any settings and other information private to the
                   2389: security model will be available under this node.
                   2390: See
                   2391: .Xr secmodel 9
                   2392: for more information.
1.1       pavel    2393: .It Li security.pax
                   2394: Settings for PaX -- exploit mitigation features.
1.4       elad     2395: For more information on any of the PaX features, please see
                   2396: .Xr paxctl 8
                   2397: and
1.62      jruoho   2398: .Xr security 7 .
1.43      jruoho   2399: The available third and fourth level names are:
                   2400: .Bl -column "security.pax.segvguard.suspend_timeout" "integer" "Changeable" \
                   2401: -offset 2n
                   2402: .It Sy Third and fourth level names Ta Sy Type Ta Sy Changeable
                   2403: .It Li security.pax.aslr.enabled       integer yes
                   2404: .\".It Li security.pax.aslr.exec_len   integer yes
                   2405: .It Li security.pax.aslr.global        integer yes
                   2406: .\".It Li security.pax.aslr.mmap_len   integer yes
                   2407: .\".It Li security.pax.aslr.stack_len  integer yes
                   2408: .It Li security.pax.mprotect.enabled   integer yes
                   2409: .It Li security.pax.mprotect.global    integer yes
                   2410: .It Li security.pax.segvguard.enabled  integer yes
                   2411: .It Li security.pax.segvguard.expiry_timeout   integer yes
                   2412: .It Li security.pax.segvguard.global   integer yes
                   2413: .It Li security.pax.segvguard.max_crashes      integer yes
                   2414: .It Li security.pax.segvguard.suspend_timeout  integer yes
                   2415: .El
1.1       pavel    2416: .Pp
                   2417: .Bl -tag -width "123456"
1.43      jruoho   2418: .It Li security.pax.aslr.enabled
1.14      elad     2419: Enable PaX ASLR (Address Space Layout Randomization).
                   2420: .Pp
                   2421: The value of this
                   2422: knob must be non-zero for PaX ASLR to be enabled, even if a program is set to
                   2423: explicit enable.
1.43      jruoho   2424: .\".It Li security.pax.aslr.exec_len
                   2425: .\" XXX: Undocumented.
1.14      elad     2426: .It Li security.pax.aslr.global
                   2427: Specifies the default global policy for programs without an
                   2428: explicit enable/disable flag.
                   2429: .Pp
                   2430: When non-zero, all programs will get PaX ASLR, except those exempted with
1.69      wiz      2431: .Xr paxctl 8 .
1.14      elad     2432: Otherwise, all programs will not get PaX ASLR, except those specifically
                   2433: marked as such with
                   2434: .Xr paxctl 8 .
1.43      jruoho   2435: .\".It Li security.pax.aslr.mmap_len
                   2436: .\" XXX: Undocumented.
                   2437: .\" .It Li security.pax.aslr.stack_len
                   2438: .\" XXX: Undocumented.
                   2439: .It Li security.pax.mprotect.enabled
1.1       pavel    2440: Enable PaX MPROTECT restrictions.
                   2441: .Pp
                   2442: These are
                   2443: .Xr mprotect 2
1.2       wiz      2444: restrictions to better enforce a W^X policy.
                   2445: The value of this
1.1       pavel    2446: knob must be non-zero for PaX MPROTECT to be enabled, even if a
                   2447: program is set to explicit enable.
                   2448: .It Li security.pax.mprotect.global
                   2449: Specifies the default global policy for programs without an
                   2450: explicit enable/disable flag.
                   2451: .Pp
                   2452: When non-zero, all programs will get the PaX MPROTECT restrictions,
                   2453: except those exempted with
1.69      wiz      2454: .Xr paxctl 8 .
1.1       pavel    2455: Otherwise, all programs will not get the PaX MPROTECT restrictions,
                   2456: except those specifically marked as such with
1.4       elad     2457: .Xr paxctl 8 .
1.43      jruoho   2458: .It Li security.pax.segvguard.enabled
1.1       pavel    2459: Enable PaX Segvguard.
                   2460: .Pp
                   2461: PaX Segvguard can detect and prevent certain exploitation attempts, where
                   2462: an attacker may try for example to brute-force function return addresses
                   2463: of respawning daemons.
                   2464: .Pp
                   2465: .Em Note :
                   2466: The
                   2467: .Nx
                   2468: interface and implementation of the Segvguard is still experimental, and may
                   2469: change in future releases.
1.43      jruoho   2470: .It Li security.pax.segvguard.expiry_timeout
                   2471: If the max number was not reached within this timeout (in seconds), the entry
                   2472: will expire.
1.1       pavel    2473: .It Li security.pax.segvguard.global
                   2474: Specifies the default global policy for programs without an
                   2475: explicit enable/disable flag.
                   2476: .Pp
                   2477: When non-zero, all programs will get the PaX Segvguard,
                   2478: except those exempted with
1.69      wiz      2479: .Xr paxctl 8 .
1.2       wiz      2480: Otherwise, no program will get the PaX Segvguard restrictions,
1.1       pavel    2481: except those specifically marked as such with
1.4       elad     2482: .Xr paxctl 8 .
1.43      jruoho   2483: .It Li security.pax.segvguard.max_crashes
                   2484: The maximum number of segfaults a program can receive before suspension.
1.1       pavel    2485: .It Li security.pax.segvguard.suspend_timeout
                   2486: Number of seconds to suspend a user from running a faulting program when the
                   2487: limit was exceeded.
                   2488: .El
                   2489: .El
1.50      jruoho   2490: .Ss The vendor.* subtree ( CTL_VENDOR )
1.1       pavel    2491: The
                   2492: .Li vendor
                   2493: toplevel name is reserved to be used by vendors who wish to
                   2494: have their own private MIB tree.
                   2495: Intended use is to store values under
                   2496: .Dq vendor.\*[Lt]yourname\*[Gt].* .
                   2497: .Sh SEE ALSO
                   2498: .Xr sysctl 3 ,
                   2499: .Xr ipsec 4 ,
                   2500: .Xr tcp 4 ,
1.62      jruoho   2501: .Xr security 7 ,
1.1       pavel    2502: .Xr sysctl 8
                   2503: .Sh HISTORY
                   2504: The
                   2505: .Nm
                   2506: variables first appeared in
                   2507: .Bx 4.4 .

CVSweb <webmaster@jp.NetBSD.org>