summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
AgeCommit message (Collapse)Author
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-06-24Redo the logic of reading of proc arguments to be more readable.Artur Grabowski
kjell@ says that it fixes his problems, noone else responded.
2002-06-11kernel changes to make asymmetric crypto work in userlandBob Beck
- modify getfeat to return something more useful to us on devices (like lofn and everything else until jason fixes it) that can't do rsa stuff, etc and can only do mod_exp.. - error handling fixes so we correctly fail to software when we can't deal with a particular key size - add sysctl kern.userasymcrypto to turn on/off userland asymmetric crypto via /dev/crypto - 1 == on, 0 == off, default is off
2002-06-09add struct pstats to struct eprocArtur Grabowski
2002-06-09KERN_MBSTATAngelos D. Keromytis
2002-06-08TTYCOUNT and NUMVNODES.Angelos D. Keromytis
2002-06-08Add read-only KERN_NFILES (number of open files).Angelos D. Keromytis
2002-06-08Sysctl for getting process arguments and environment.Artur Grabowski
2002-05-15Implement splassert() for sparc - a tool for finding problems related toArtur Grabowski
spl handling (already found 3 problems). Man page in a few seconds. deraadt@ ok.
2002-03-14remove ambiguity in version,ostype,osversion,osrelease and their constanity, ↵Michael Shalayeff
they are and declarre 'em accordingly also removing private externies of those
2002-03-14version[] is externed in the systm.h and give it some constMichael Shalayeff
2002-03-01sysctl for cryptodevallowsoft - /dev/crypto will allow the software engineNiels Provos
to be used if there are no hardware cards. mostly for debugging and regression.
2002-02-23sysctl kern.usercryptoTheo de Raadt
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
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