summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
AgeCommit message (Collapse)Author
2004-01-14change sigaltstack.ss_size type to size_t. handle syscall fallout.Ted Unangst
add stack_t and ucontext_t typedefs. ok deraadt@
2003-09-01match syscallargs comments with realityHenning Brauer
from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
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-04Use strlcpy(), not strncpy() when copying p->p_comm to core.c_nameTodd C. Miller
to guarantee NUL termination; from Patrick Latifi.
2003-08-03Implement the WCONTINUED flag to the wait(2) family of syscalls and theTodd C. Miller
associated WIFCONTINUED macro as per 1003.1-2001. Adapted from FreeBSD. A minor amount of trickiness is involved here. The value for WCONTINUED is chosen in such a way that _WSTATUS(_WCONTINUED) == _WSTOPPED and the WIFSTOPPED macro has been modified such that WIFSTOPPED(_WCONTINUED) != _WSTOPPED. This means we don't need to add an extra check to the WIFSIGNALED and WIFSTOPPED macros. deraadt@ OK.
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
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
2002-10-01Oppsie. Missing part from this commit:Artur Grabowski
Prevent two localhost crashes with proc filters. - don't send NOTE_SIGNAL to exiting processes. - null dereference on error condition. from Peter Werner <peterw at ifost.org.au> deraadt@ ok
2002-07-14be more permissive, and let close relatives do SIGALRMTheo de Raadt
2002-06-11Protect mi_switch with splstatclock.Artur Grabowski
2002-05-08A process can always signal itself--no need to restrict signals even ifTodd C. Miller
it is setugid. deraadt@ ok
2002-04-18Provide the correct signal number to the ktrace PSIG information insteadMiod Vallat
of an uninitialized variable. millert@ ok
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-22include a siginfo_t with ktrace PSIG information, so that kdump can printTheo de Raadt
fault addresses and other information. (a small bug exists: in some signal delivery cases, two PSIG records may be inserted, because postsig() is unaware a PSIG record has already been placed. but this small bug can stay since the siginfo_t information helps us find and fix other bugs)
2002-01-31Ignore signals if/when we are exiting.Tobias Weingartner
Prevents a hang in the NFS code when dumping core and pressing ^C, etc. ok art@
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2002-01-19If handler for SIGCHLD is SIG_IGN, reset to SIG_DLF. This is consistentTodd C. Miller
with our handling of SA_NOCLDWAIT as well as other operating systems. From FreeBSD.
2002-01-07If the handler for SIGCHLD is set to SIG_IGN, act as if theTodd C. Miller
SA_NOCLDWAIT (don't create zombies) flag has been specified. This is consistent with most other operating systems and is what XPG4.2 specifies.
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-21execsigs() could modify the wrong sigacts; based on David.Arana@eng.sun.com ↵Theo de Raadt
saying he could not understand how this worked
2001-09-20cosmetic.Artur Grabowski
2001-08-09Unshare signal actions on exec, from NetBSD. While I am here a little KNF ↵Niklas Hallqvist
nit too
2001-06-27remove old vmArtur Grabowski
2001-06-22KNFTheo de Raadt
2001-06-18trace_req is a nop.Artur Grabowski
rename stop -> proc_stop (stop is not a good function name).
2001-05-16kill COMPAT_{09,10,11} kernel options. We still need kern_info_09.c and ↵Todd C. Miller
kern_ipc_10.c for other compat modules.
2001-04-02On popular demand, the Linux-compatibility clone(2) implementation basedNiklas Hallqvist
on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.
2001-02-19Clean up spl handling.Artur Grabowski
2000-11-16support kernel event queues, from FreeBSD by Jonathan Lemon,Niels Provos
okay art@, millert@
2000-11-10Change the ktrace interface functions from taking the trace vnode to taking theArtur Grabowski
traced proc. The vnode is in the proc and all functions need the proc.
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-04-21Change kernel-only open flag FNOSYMLINK to userland-visible O_NOFOLLOW;Todd C. Miller
adapated from FreeBSD. Also change O_FSYNC to the more standard O_SYNC and document it. open(2) needs some real examples for proper usage, to come later.
2000-03-03Use LIST_ macros instead of internal field names to walk the allproc list.Artur Grabowski
1999-11-05more stack direction fixes; art@ okMichael Shalayeff
1999-07-18on exec, clear P_NOCLDWAIT; ambrisko@whistle.comTheo de Raadt
1999-02-26uvm allocation and name changesArtur Grabowski
1999-02-18oopsTheo de Raadt
1999-02-17missing spl; christosTheo de Raadt
1998-06-07permit SIGUSR1/USR2 through as well in cansignal()Theo de Raadt
1998-05-30permit sig 0 (existance checking) to setuid parents; ibo@ragnarok.val-axs.netTheo de Raadt
1998-05-18add more signals to setuid part of cansignal()Theo de Raadt
1998-05-17convert CANSIGNAL() macro into a function, and then add significant constraintsTheo de Raadt
regarding setuid/setgid targets (this is permitted by POSIX, and solves a number of security issues). This is due to a conversation months ago with dholland@hcs.harvard.edu.
1998-02-20GCC 2.8 caught this type error, thanksNiklas Hallqvist
1998-01-09core dumps disabled for SUID programs is default again.Constantine Sapuntzakis
1998-01-09Get rid of dumping across symlinks. Races can cause this to be problematicConstantine Sapuntzakis
from a security standpoint (i.e. arbitrary files on the FS can be wiped out).
1997-12-08add kern.nosuidcoredump to lock things out even moreTheo de Raadt
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