summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2002-06-27do not permit ktrace on P_SUGID; millert okTheo de Raadt
2002-06-27KNFTheo de Raadt
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-16When processing the KERN_VNODE sysctl, the kernel builds a packed structure,Miod Vallat
while pstat(8) expects a C structure abiding the regular structure packing rules. This caused pstat -v to break on powerpc. Unbreak the confusion by defining the structure in a common header file, and having the kernel use it. ok millert@ deraadt@
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
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-11Protect mi_switch with splstatclock.Artur Grabowski
2002-06-11ANSIfyArtur Grabowski
2002-06-11Remove unnecessary spllowersoftclock(). ok art@Thomas Nordin
2002-06-11splvm, not splimp.Artur Grabowski
2002-06-11splvm, not splimpArtur Grabowski
2002-06-11splassert where necessaryArtur Grabowski
2002-06-11splassert(IPL_TTY) where comments tell us we shouldArtur Grabowski
2002-06-11splassert(IPL_STATCLOCK) mi_switchArtur Grabowski
2002-06-11splassert where neededArtur Grabowski
2002-06-10Grammar.Thomas Nordin
2002-06-09add struct pstats to struct eprocArtur Grabowski
2002-06-09Use LIST_FOREACH.Artur Grabowski
2002-06-09KERN_MBSTATAngelos D. Keromytis
2002-06-09ANSIfy (started as some other change that just ran away).Artur Grabowski
2002-06-09different magics for malloc and pool, art@ okNiklas Hallqvist
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-06-08Use ltsleep in vfs_busy.Artur Grabowski
2002-06-07Change addupc_intr to not use fuswintr and suswintr to update the profilingArtur Grabowski
info. Since we only use it to profile processes in user mode and there is no way to get back user mode without going past the AST that will write out the profiling info in a context where copyout works. Sitting in my tree for ages. Reviewed and with some suggestions from nordin@
2002-06-07Simplify so that we can remove CLKF_BASEPRI() and spllowersoftclock()Thomas Nordin
infrastructure. ok art@ and miod@
2002-06-06Fix *documentation*: one arg of the ktrace(2) is pid_t not int, found whileMike Pechkin
have fun w/ pid_t cleanups. millert@ ok
2002-06-03compatiblity -> compatibilityTheo de Raadt
decriptor -> descriptor authentciated -> authenticated transmition -> transmission
2002-05-27if_attach() gets called before domaininit(). scan all interfaces for if_afdataJun-ichiro itojun Hagino
initialization after domaininit().
2002-05-24protect more of the bookkeeping variables with splbio.Artur Grabowski
2002-05-24typoArtur Grabowski
2002-05-24cluster_callback is a b_iodone handler. Since it calls functionsArtur Grabowski
that assume splbio, splassert(IPL_BIO) in it.
2002-05-23In sys_accept don't FILE_SET_MATURE the file if we got an error and we've ↵Artur Grabowski
freed it. Noticed by enami@netbsd in a recent discussion on tech-kern@netbsd. Thanks to miod@ for helping me understand my code and realize that what the discussion was originally about (a diff by itojun@) didn't apply to us because I tweaked the semantics of closef() to solve the problem automagically for us (and I forgot about it). miod@ ok.
2002-05-23Fix a comment I missed when renaming FILE_UNUSE to FRELE.Artur Grabowski
2002-05-22some b_iodone handlers and vwakeup require splbio.Artur Grabowski
Mark biodone with splassert(IPL_BIO).
2002-05-20Add one more level to the kern.splassert sysctl.Artur Grabowski
0 - do nothing. 1 - small message on error (function name and the levels). 2 - big message on error (function name, levels and traceback (if possible)). 3 - panic. After suggestion from deraadt@.
2002-05-20make it compile w/ debugging onMichael Shalayeff
2002-05-18dump the stack on splassert failure (XXX - need some kind ofArtur Grabowski
rate limiting).
2002-05-18If ddb.panic is disabled, print the stack trace before dumping.Artur Grabowski
2002-05-16systrace facility, used to enforce and generate policies for system callsNiels Provos
okay deraadt@
2002-05-16sprinkle some splassert(IPL_BIO) in some functions that are commented as ↵Artur Grabowski
"should be called at splbio()"
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-05-11track egid/rgid on bound/connected sockets too (pf will use this)Theo de Raadt
2002-05-08A process can always signal itself--no need to restrict signals even ifTodd C. Miller
it is setugid. deraadt@ ok
2002-05-02In UKC, when adding a fixed unit device (foo0) by cloning a star deviceMiod Vallat
(foo*), be sure to update all cf_starunit1 fields for related star devices, so that they will not compete for the foo0 probe. This fixes the new sparc bsd.scsi3 behaviour. Tested by brad@ and myself, ok maja@
2002-05-02Cause the exec to fail if we are unable to allocate resources when dup'ingTodd C. Miller
/dev/null to fd's 0-2 for a setuid program; deraadt@ and art@ OK
2002-04-27Comment biodone as "must be called at splbio".Artur Grabowski
It calls vwakeup and vwakeup is marked as "must be at splbio".
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-04-18Provide the correct signal number to the ktrace PSIG information insteadMiod Vallat
of an uninitialized variable. millert@ ok