summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
AgeCommit message (Collapse)Author
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
1997-09-15From FreeBSD (joerg@freebsd.org):Todd C. Miller
Implement SA_NOCLDWAIT by reparenting kids of processes that have the appropriate bit set to PID 1, and let PID 1 handle the zombie. This assumes that PID 1 will wait for its kids (which is true of init). This also includes some FreeBSD sigaction.2.
1997-09-12add copyright for the work i did in csignal()Theo de Raadt
1997-08-31for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidTheo de Raadt
and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion.
1997-02-01add type & union sigval args to sendsig/trapsignalTheo de Raadt
1997-01-27add another parameter to trapsignal() and sendsig() -- fault addr to beTheo de Raadt
delivered with in the siginfo information
1997-01-27initial cut at SA_SIGINFO supportTheo de Raadt
1996-10-27Signal handling now fully POSIX.1-1990 compliantThorsten Lockert
1996-10-27Allow kill(, 0) on process groups that hold only zombies; per POSIXThorsten Lockert