summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* A process can always signal itself--no need to restrict signals even ifmillert2002-05-081-1/+4
| | | | it is setugid. deraadt@ ok
* Provide the correct signal number to the ktrace PSIG information insteadmiod2002-04-181-5/+9
| | | | | of an uninitialized variable. millert@ ok
* First round of __P removal in sysmillert2002-03-141-4/+4
|
* include a siginfo_t with ktrace PSIG information, so that kdump can printderaadt2002-02-221-8/+17
| | | | | | | 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)
* Ignore signals if/when we are exiting.weingart2002-01-311-1/+8
| | | | | | Prevents a hang in the NFS code when dumping core and pressing ^C, etc. ok art@
* Pool deals fairly well with physical memory shortage, but it doesn't dealart2002-01-231-2/+2
| | | | | | | | | | | | | | | | | | 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.
* If handler for SIGCHLD is SIG_IGN, reset to SIG_DLF. This is consistentmillert2002-01-191-1/+3
| | | | | with our handling of SA_NOCLDWAIT as well as other operating systems. From FreeBSD.
* If the handler for SIGCHLD is set to SIG_IGN, act as if themillert2002-01-071-13/+12
| | | | | | SA_NOCLDWAIT (don't create zombies) flag has been specified. This is consistent with most other operating systems and is what XPG4.2 specifies.
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-4/+2
| | | | (Look ma, I might have broken the tree)
* execsigs() could modify the wrong sigacts; based on David.Arana@eng.sun.com saying he could not understand how this workedderaadt2001-09-211-2/+3
|
* cosmetic.art2001-09-201-2/+2
|
* Unshare signal actions on exec, from NetBSD. While I am here a little KNF nit tooniklas2001-08-091-2/+4
|
* remove old vmart2001-06-271-5/+1
|
* KNFderaadt2001-06-221-12/+12
|
* trace_req is a nop.art2001-06-181-10/+8
| | | | rename stop -> proc_stop (stop is not a good function name).
* kill COMPAT_{09,10,11} kernel options. We still need kern_info_09.c and kern_ipc_10.c for other compat modules.millert2001-05-161-5/+1
|
* On popular demand, the Linux-compatibility clone(2) implementation basedniklas2001-04-021-3/+78
| | | | | on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.
* Clean up spl handling.art2001-02-191-12/+15
|
* support kernel event queues, from FreeBSD by Jonathan Lemon,provos2000-11-161-1/+54
| | | | okay art@, millert@
* Change the ktrace interface functions from taking the trace vnode to taking theart2000-11-101-4/+3
| | | | traced proc. The vnode is in the proc and all functions need the proc.
* Changes to exit handling.art2000-06-051-2/+2
| | | | | | | | 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
* Change kernel-only open flag FNOSYMLINK to userland-visible O_NOFOLLOW;millert2000-04-211-2/+2
| | | | | | 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.
* Use LIST_ macros instead of internal field names to walk the allproc list.art2000-03-031-2/+2
|
* more stack direction fixes; art@ okmickey1999-11-051-1/+5
|
* on exec, clear P_NOCLDWAIT; ambrisko@whistle.comderaadt1999-07-181-1/+2
|
* uvm allocation and name changesart1999-02-261-1/+9
|
* oopsderaadt1999-02-181-2/+1
|
* missing spl; christosderaadt1999-02-171-1/+2
|
* permit SIGUSR1/USR2 through as well in cansignal()deraadt1998-06-071-1/+3
|
* permit sig 0 (existance checking) to setuid parents; ibo@ragnarok.val-axs.netderaadt1998-05-301-1/+2
|
* add more signals to setuid part of cansignal()deraadt1998-05-181-1/+5
|
* convert CANSIGNAL() macro into a function, and then add significant constraintsderaadt1998-05-171-13/+51
| | | | | | 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.
* GCC 2.8 caught this type error, thanksniklas1998-02-201-2/+4
|
* core dumps disabled for SUID programs is default again.csapuntz1998-01-091-2/+2
|
* Get rid of dumping across symlinks. Races can cause this to be problematiccsapuntz1998-01-091-3/+6
| | | | from a security standpoint (i.e. arbitrary files on the FS can be wiped out).
* add kern.nosuidcoredump to lock things out even morederaadt1997-12-081-1/+5
|
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-2/+2
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-2/+2
|
* VFS Lite2 Changescsapuntz1997-10-061-2/+2
|
* From FreeBSD (joerg@freebsd.org):millert1997-09-151-1/+16
| | | | | | | 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.
* add copyright for the work i did in csignal()deraadt1997-09-121-1/+2
|
* for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidderaadt1997-08-311-1/+41
| | | | | | | 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.
* add type & union sigval args to sendsig/trapsignalderaadt1997-02-011-7/+28
|
* add another parameter to trapsignal() and sendsig() -- fault addr to bederaadt1997-01-271-4/+5
| | | | delivered with in the siginfo information
* initial cut at SA_SIGINFO supportderaadt1997-01-271-1/+17
|
* Signal handling now fully POSIX.1-1990 complianttholo1996-10-271-3/+4
|
* Allow kill(, 0) on process groups that hold only zombies; per POSIXtholo1996-10-271-2/+1
|
* Don't verify that euid has write permissiontholo1996-10-271-27/+2
|
* Correct last fixtholo1996-10-271-2/+2
|
* A process can send a signal to another process if the uid of the signallingtholo1996-10-261-1/+2
| | | | process is the same as the saved uid of the signalled process