summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2001-06-27uvm_useracc is not necessary now that uvm_vslock knows how to fail.Artur Grabowski
2001-06-27no more cpu_set_init_frameArtur Grabowski
2001-06-27no more fork braindamageArtur Grabowski
2001-06-27vm_pageout.h bye bye.Artur Grabowski
2001-06-27mips_cachealias is no moreArtur Grabowski
2001-06-27remove old vmArtur Grabowski
2001-06-27Update comment.Angelos D. Keromytis
2001-06-27Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, dependingAngelos D. Keromytis
on how macros should be treated. Code by fgsch@, ok by me and itojun@
2001-06-26regenDug Song
2001-06-26implement djb's getpeereid(2), to allow local-domain servers to determine ↵Dug Song
client credentials. mostly from superscript.com. deraadt@ ok
2001-06-26Appease gcc by not using void pointers in arithmetic operations; art@ okAaron Campbell
2001-06-25Remove NQNFSConstantine Sapuntzakis
2001-06-25Don't reset M_PKTHDR before we copy the mbuf flags (bad Federico!)Angelos D. Keromytis
2001-06-25Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok.Federico G. Schwindt
2001-06-24cold is in systm.h nowMichael Shalayeff
2001-06-24No need to define splvm() here anymore.Miod Vallat
art@ ok
2001-06-24Add a sysctl for getting pool information out of the kernel.Artur Grabowski
2001-06-23merge crypto/crypto{dev,}.h to crypto/cryptodev.h, to avoid name conflicts ↵Theo de Raadt
inside OpenSSL codebase
2001-06-23ooops. remove unfinished work in progress.Artur Grabowski
2001-06-23Bring in a bunch of improvements from NetBSD.Artur Grabowski
- pool_cache similar to the slab allocator in Solaris. - clean up locking a bit. - Don't pass __LINE__ and __FILE__ to pool_get and pool_put unless POOL_DIAGNOSTIC is defined.
2001-06-23pool_init, not pool_createArtur Grabowski
2001-06-23pipe_stat isn't referenced from outside sys_pipe.c anymoreArtur Grabowski
2001-06-23Add pipe_init, call it from main, move the pool initialization into it.Artur Grabowski
2001-06-23Since malloc in hashinit can get M_NOWAIT flags, we shouldArtur Grabowski
check the return value.
2001-06-23Having to update queue(3) for DLIST_* is a major PITA; thus, just useAngelos D. Keromytis
SLIST and be done with it.
2001-06-23Use DLIST for tags.Angelos D. Keromytis
2001-06-23Bye-bye to UFS-specific and unused functionsConstantine Sapuntzakis
2001-06-23Get rid of UFS-specific and unused functions in the VFS interfaceConstantine Sapuntzakis
2001-06-23Get rid of several unused vnode operationsConstantine Sapuntzakis
2001-06-22Try again. (this time it's tested).Artur Grabowski
Add proc_cansugid that checks if a process may raise it's privileges. Rework exec to remove the old sugid workaround and check proc_cansugid just before raising privileges.
2001-06-22provide sysctl iface for msgbuf; raadtifiedMichael Shalayeff
2001-06-22KNFTheo de Raadt
2001-06-21Canonicalize panic messageNiklas Hallqvist
2001-06-21Panic if we free stuff not in malloc region. (ifdef DIAGNOSTIC)Niklas Hallqvist
2001-06-20Fix PR1826. tsleep in lf_setlock can return 0 if process was ptrace'd,Grigoriy Orlov
but not wakeup'ed. In this case one entry can be placed twice at list of blocked locks. As a result block list contain an entry which points to itself. lf_wakelock can't remove such an entry and system livelocks trying to remove a bad entry from block list. Other changes include: - repair debug functions and make vfs_lockf.c compilable with LOCKF_DEBUG - simplify debug printing and remove useless debugging - remove unnecessary casting, replace NOLOCKF with NULL - free -> FREE (use one form over the file) - convert list of blocked locks to use TAILQ_* macroses - lf_addblock() -> TAILQ_INSERT_TAIL - Fix bug in lf_findoverlap(): in old code if (end == -1) && (lf->lf_end == -1) && (lf->lf_start <= start) then lf_findoverlap() return 4 instead of 2 - work more carefully with pointers (probably fix one or two bugs) - use wakeup_one() - KNF
2001-06-19no way, you are on drugs. last commit revoked because it broke setuid majorlyTheo de Raadt
2001-06-18Check is sugid is allowed where we set the P_SUGID* flags.Artur Grabowski
Remove the ugly hack added in last revision.
2001-06-18Add proc_cansugid used to check if a process should be allowedArtur Grabowski
to raise its privileges in exec.
2001-06-18trace_req is not used anymore (was a nop).Artur Grabowski
2001-06-18trace_req is a nop.Artur Grabowski
rename stop -> proc_stop (stop is not a good function name).
2001-06-18split PT_DETACH handling, so that pc cannot be set by it; art okTheo de Raadt
2001-06-16syncTheo de Raadt
2001-06-16sysarch() takes a void *Theo de Raadt
2001-06-15Avoid a dangerous race.Artur Grabowski
To avoid having a ptrace(2)d process from doing an exec of a suid binary we strip off the suid bits from the executable if the process is traced. Later we P_SUGID{,EXEC} in the process flags that stops further ptrace attempts. The problem is that between the stripping of suid bits and setting P_SUGID{,EXEC} there is a pretty large window where the process can sleep and other processes can attach to it with ptrace. This is a quick fix for that. We set P_SUGID{,EXEC} early and take care to remove them (we don't want the process to become tainted unnecessarily) if exec fails. XXX - exec needs a lot more work, but people are asking for a solution now.
2001-06-13Repair bad printf (-Wall cleanup)Miod Vallat
2001-06-12deal with gnu kernel dependencies right; cyxob@thief.dyndns.orgTheo de Raadt
2001-06-05send note_revoke to knotes when vnode goes away, okay art@Niels Provos
2001-06-05generic kqfilter that just like select returns ready for read and write.Niels Provos
2001-06-05fix kqueue EVFILT_WRITE; okay art@Niels Provos
2001-06-03e_wmesg was not initialized in all cases; kirk.russell@acm.orgTheo de Raadt