summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
AgeCommit message (Collapse)Author
2001-09-28sysctl() support for getting the SYSV *info structs and the associatedTodd C. Miller
SYSV structs. To be used by ipcs(1). Based on work by simonb@netbsd.org
2001-09-07Fix PR 2051, tested by miod@Angelos D. Keromytis
2001-08-18Add a possibility to add a random offset to the stack on exec. This makesArtur Grabowski
it slightly harder to write generic buffer overflows. This doesn't really give any real security, but it raises the bar for script-kiddies and it's really cheap. The range of the random offsets is controlled by the sysctl kern.stackgap_random (must be a power of 2). This is disabled by default right now, but we'll set it to a reasonable value (1024?) soon, after some more testing.
2001-07-17It takes a greek to put buffer overflow and unterminated stringTheo de Raadt
handling into the kernel. Stick with the complicated stuff dude, breaking this simple shit is killing us!
2001-07-13make kern_msgbuf work for sparc, i thought it worked for me before; from miodMichael Shalayeff
2001-06-27uvm_useracc is not necessary now that uvm_vslock knows how to fail.Artur Grabowski
2001-06-27remove old vmArtur Grabowski
2001-06-24Add a sysctl for getting pool information out of the kernel.Artur Grabowski
2001-06-22provide sysctl iface for msgbuf; raadtifiedMichael Shalayeff
2001-06-03e_wmesg was not initialized in all cases; kirk.russell@acm.orgTheo de Raadt
2001-06-03Export nprocs.Angelos D. Keromytis
2001-06-03KERN_FSCALE and KERN_CCPUAngelos D. Keromytis
2001-06-03Pass struct diskstats through sysctl, deraadt@ okAngelos D. Keromytis
2001-05-14Use lockmgr locks for kern.malloc.kmemstat andAngelos D. Keromytis
hw.diskstats/hw.disknames.
2001-05-14Disk statistics via sysctl, first pass (locking to come in a few, thenAngelos D. Keromytis
use a separate sub-structure for the statistics)
2001-05-11kmemstats, nselcoll, forkstat, and nchstats structures throughAngelos D. Keromytis
sysctl. deraadt@ ok
2001-05-07Check for failure now that uvm_vslock can return one. Before this, there wasArtur Grabowski
a risk that we could crash when doing physio/sysctl when the system was completly out of RAM and swap.
2001-04-06Get rid of vm_pmap from struct vmspace.Artur Grabowski
2001-03-23Take vm_pmap out of struct vmspace if we are using UVM since UVM doesn'tTodd C. Miller
use that. Fixes size mismatch in i386 pmap.new kernel. This requires that users rebuild libkvm and friends using the new headers for ps et al to work with a new kernel.
2001-03-16Use a lockmgr lock for keeping down the vslocked memory in sysctlArtur Grabowski
instead of a home-brew equivalent.
2001-01-31add kern.cp_time sysctl, to be used by various thingsTheo de Raadt
2001-01-04sysctl_quad/sysctl_rdquad, and "malloc" node in kern sysctlAngelos D. Keromytis
2000-06-18Mark kernel threads as system processes. Make ps hide them by default,Niklas Hallqvist
show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
2000-06-05Changes to exit handling.Artur Grabowski
cpu_exit no longer frees the vmspace and u-area. This is now handled by a separate kernel thread "reaper". This is to avoid sleeping locks in the critical path of cpu_exit where we're not allowed to sleep. From NetBSD
2000-05-06work around filleproc() vs exit1() race of p_rlimitTheo de Raadt
2000-03-16Bring in some new UVM code from NetBSD (not current).Artur Grabowski
- Introduce a new type of map that are interrupt safe and never allow faults in them. mb_map and kmem_map are made intrsafe. - Add "access protection" to uvm_vslock (to be passed down to uvm_fault and later to pmap_enter). - madvise(2) now works. - various cleanups.
2000-03-03Use the LIST_FIRST macro to get the head of zombproc list.Artur Grabowski
2000-03-03Use LIST_ macros instead of internal field names to walk the allproc list.Artur Grabowski
2000-02-22enlarge msgbuf, somewhat line netbsd didTheo de Raadt
1999-06-29add sysctl kern.arandom to get a random integer. useful when chrooted withNiels Provos
no /dev/arandom.
1999-06-01remove the "ifdef pmap_resident_count" hack and replace it with a macro.Artur Grabowski
change some &vm->vm_pmap to vm->vm_map.pmap
1999-02-26compat with uvm sysctl, some uvm name changes, cnt.foo -> uvmexp.barArtur Grabowski
1998-07-07per XPG, gethostname() with a short buffer returns truncated data - not ENOMEM.Theo de Raadt
As permitted, make the truncated buffer be NUL terminated. make getdomainname() match.
1998-06-02add sysctl and sysconf support for sysvsem, sysvshm, sysvmsg, and fsync; ↵Theo de Raadt
mostly from kleink
1997-12-08add kern.nosuidcoredump to lock things out even moreTheo de Raadt
1997-11-06fix ps(1) LIM columnkstailey
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-09-03changes for ps "emul" optionkstailey
1997-06-22wasn't a race after all. properly initialize event_q pointers so theflipk
last one doesn't point off the end.
1997-06-21revert, there's a nasty race condition here.flipk
1997-06-14split the treatment of the random eventsMichael Shalayeff
event_q by flipk@ spl fix by deraadt@ gother statistics about whole processing use 'sysctl kern.random' to view what had happened also fix wrong vm.psstrings description
1997-03-27Make kern.osrevision (sysctl) and /kern/osrev report value ofTodd C. Miller
OpenBSD define, not BSD which is a bit more useful.
1997-03-26loginname copying in fill_eproc; gwing@primenet.com.auTheo de Raadt
1996-10-04usermount sysctl, default to prevent users from using mount syscallTheo de Raadt
1996-09-20`solve' the syn bomb problem as well as currently known; add sysctl's forTheo de Raadt
SOMAXCONN (kern.somaxconn), SOMINCONN (kern.sominconn), and TCPTV_KEEP_INIT (net.inet.tcp.keepinittime). when this is not enough (ie. overfull), start doing tail drop, but slightly prefer the same port.
1996-08-08Make {,f}chown(2) behaviour POSIX.1 compliant with SUID / SGID filesThorsten Lockert
Enable CTL_FS processing by sysctl(3) Add CTL_FS request to disable clearing SUID / SGID bit when a files owner or group is changed by root Make sysctl(8) understand CTL_FS requests
1996-06-29Add external declaration for osversion[]Thorsten Lockert
1996-06-29MIssed this one in previous commit; make uname(1) and uname(3) do theThorsten Lockert
right thing for the version field