summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
AgeCommit message (Expand)Author
2018-07-12Add hw.ncpuonline to count the number of online CPUs.cheloha
2018-07-02Update the file reference count field `f_count' using atomic operationsVisa Hankala
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
2018-06-19SMT (Simultanious Multi Threading) implementations typically shareMark Kettenis
2018-06-02Move the declarations of the raw ip and ip6 pcb tables into theAlexander Bluhm
2018-05-27Add missing #include "audio.h" needed for the NAUDIO macro.Alexandre Ratchov
2018-05-26Condition the new audio_record_enable pieces on NAUDIO > 0, fixingStuart Henderson
2018-05-26In addition to "on" and "off", allow the audio "record.enable" mixerAlexandre Ratchov
2018-05-16Add kern.witnesswatch sysctl for controlling witness(4). By default,Visa Hankala
2018-05-08Use fd_getfile() in sysctl_file() instead of rewriting it.Martin Pieuchot
2018-05-08Change fd_iterfile() to not return imature fps instead of skipping themMartin Pieuchot
2018-05-08Protect per-file counters and document which lock is used to protectMartin Pieuchot
2018-04-25Introduce fd_iterfile() a new helper function to iterate over `filehead'.Martin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
2017-08-11Remove NET_LOCK()'s argument.Martin Pieuchot
2017-06-20Do not touch file pointers for which FILE_IS_USABLE() is false.Gerhard Roth
2017-06-14tweak sysctl_string and sysctl_tstring to use size_t for lengths, not intDavid Gwynne
2017-06-13use size_t for the size of things in memory, not int.David Gwynne
2017-05-06Do not export the protocol PCB pointer from kernel to non-root usersAlexander Bluhm
2017-04-27Enforce that sysctl kern.somaxconn and sominconn can only be setAlexander Bluhm
2017-04-05timeval has trailing padding on powerpc and m88k, so memset it beforePhilip Guenther
2017-04-05Here at OpenBSD we change ABIs at the fling of a hat. Just in case aTheo de Raadt
2017-03-07Enforce that tcbtable and udbtable must be accessed with the NET_LOCK().Martin Pieuchot
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-11-11Export p_cpuid via sysctl for all processes; ok guentherMike Belopuhov
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-10-24move the mbstat structure to percpu countersDavid Gwynne
2016-10-22Factor out pr->ps_vmspace into a local variable for fill_kproc()Philip Guenther
2016-10-08upon further review, port numbers go all the way up to ushort maxTed Unangst
2016-10-08initialize the port variable before sysctl, since it's also read out.Ted Unangst
2016-10-07introduce a sysctl to hijack dns sockets. when set to a port number,Ted Unangst
2016-10-02Add va_nlink information to struct kinfo_file (so bump the shlib minor)Philip Guenther
2016-09-25Make a move towards ending 4 decades of kernel snooping.Theo de Raadt
2016-09-21sysctl KERN_ARND is no longer used (in ports, it only occurs in fallbackTheo de Raadt
2016-09-18option INSECURE is obsoleteTheo de Raadt
2016-09-07Remove usermount remnants. ok teduMartin Natano
2016-09-04Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernelMartin Pieuchot
2016-08-23rename nfiles to numfiles to avoid shadowing and stretch out the name.Ted Unangst
2016-07-14kern.usermount=1 is unsafe for everyone, since it allows any non-pledgedTheo de Raadt
2016-05-27W^X violations are no longer permitted by default. A kernel log messageTheo de Raadt
2016-05-23remove the sysctl kern.random counters, since none of the remainingTheo de Raadt
2016-05-21Cleanup some of the DUID code and refactor for readability.Joel Sing
2016-05-04Make KERN_FILE_BYPID return ESRCH when PID not found, both in sysctl andVadim Zhukov
2016-04-25boom goes the dynamiteTed Unangst
2016-02-29delete the kern.emul/KERN_EMUL sysctl bits since there are noChristian Weisgerber
2015-12-05Make sure we use the same cpu numbering for the kern.cptime2 sysctl as weMark Kettenis
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt