summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
AgeCommit message (Collapse)Author
2004-02-27Move setperf_prio to the machdep code, requested by deraadt@Alexander Yurchenko
ok deraadt@
2004-02-27Introduce simple priorities mechanism so that concurrentAlexander Yurchenko
hw.setperf handlers don't override each other. Problem reported and tested by danh@. ok tedu@ deraadt@
2004-02-15add sysctl_int_arr() API similar to BSD/OS; ok itojun, deraadt, miod, henningMarkus Friedl
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-14Simplify hw.{cpuspeed,setperf} api moving all the sysctl stuffAlexander Yurchenko
from the underlying callbacks. Testing hppa mickey@, ppc drahn@ Ok markus@ tedu@
2004-01-07Add p_rlim_rss_cur for ps "lim" field. OK deraadt@Todd C. Miller
2004-01-07no kern_watchdog for SMALL_KERNEL; ok deraadt@Markus Friedl
2004-01-07Unbreak KERN_PROC_KTHREAD. Explicitly list KERN_PROC_KTHREAD inTodd C. Miller
the sysctl_doproc() switch so it does not match the default case (EINVAL). deraadt@ OK.
2004-01-07Add p_emul to kinfo_proc2 for psTodd C. Miller
2004-01-07Implement KERN_PROC2 sysctl from NetBSD. This will allow us toTodd C. Miller
have ps and friends be independent of changes in struct proc et al in the kernel. OK deraadt@
2003-12-18add new hw sysctls, cpuspeed and setperf to control cpu frequency.Ted Unangst
convert longrun support to use new sysctls. add enhanced speedstep support, based on code by Michael Eriksson. idea, help testing & ok deraadt@
2003-11-23Check correct array index KERN_VNODE; from Alistair KerrTodd C. Miller
Closes PR 3571 as per on icb.
2003-10-26per deraadt@ request, don't permit insanely large stackgap values.Ted Unangst
2003-10-24refactor stackgap sysctl. prompted by a bug report from Michael Coulter.Ted Unangst
ok deraadt@ markus@
2003-08-23remove native emulations from emulsw. you can't change them and probablyTed Unangst
aren't interested, so keep them out of the sysctl. ok deraadt
2003-08-23knfTheo de Raadt
2003-08-23allow disabling a emul after enabling it; tedu@ ok.Federico G. Schwindt
2003-08-21emulation is now controlled by sysctl. changes:Ted Unangst
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-06-10debug0 and debug1 are defined elsewhere -- make 'em extern hereMichael Shalayeff
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-03string fixes; tedu okTheo de Raadt
2003-04-25sysctl front-end for the hardware monitoring sensors. This addsAlexander Yurchenko
new node hw.sensors; information from the sensors can be obtained via hw.sensors.n, where n is a sensor number. All values are read only for now. Documentation and back-end drivers are comming. Tested by henning@ and millert@. Four oks from henning@ and one from millert@.
2003-01-21add kern.watchdog sysctl and generic watchdog interface;Markus Friedl
based on feedback and discussions with mickey, henric, fgsch and jakob. ok art@, mickey@, jakob@, henric@
2003-01-15Fix two minor nits; deraadt@ OKTodd C. Miller
o Avoid taking the address of an array when we just want a pointer o Use &array[1] not array + 1
2003-01-13Sysctls for fetching intrcnt.Artur Grabowski
2002-12-17Make SysV-style shared memory and semaphore limits sysctl'able.Todd C. Miller
Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
2002-09-01Oppsie. Remove my debugging code.Artur Grabowski
noted by tdeval@
2002-08-23Use LIST_ macros for the list of all struct file.Artur Grabowski
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