NetBSD/sys/kern
jdolecek 02eb342b57 Make sure that the pointer to old parent process for ptraced children
gets reset properly when the old parent exits before the child. A flag
is set in old parent process when the child is reparented in ptrace(2).
If it's set when process is exiting, all running processes have their
'old parent process' pointer checked and reset if appropriate. Also
change to use 'struct proc *' pointer directly, rather than pid_t.
This fixes security/14444 by David Sainty.

Reviewed by Christos Zoulas.
2002-07-25 20:04:02 +00:00
..
cnmagic.c In cn_get_magic() don't increment i in the for(;;) loop, as it's already 2001-11-27 20:00:36 +00:00
core_elf32.c Cast off_t to (long long) for printing. 2001-12-10 02:07:37 +00:00
core_elf64.c Add support for dumping ELF-cormat core files. 2001-12-09 23:05:56 +00:00
core_netbsd.c Move the code that walks the process's VM map during a coredump 2001-12-10 01:52:26 +00:00
exec_aout.c add RCSIDs 2001-11-12 15:25:01 +00:00
exec_conf.c Native 32-bit and 32-bit emulation are mutually exclusive. We should not 2002-05-31 00:52:20 +00:00
exec_ecoff.c add RCSIDs 2001-11-12 15:25:01 +00:00
exec_elf32.c Use "#ifdef __mips__" instead of "#ifdef mips"; shared libraries work 2002-06-03 13:07:00 +00:00
exec_elf64.c add RCSIDs 2001-11-12 15:25:01 +00:00
exec_elf_common.c "a.out" -> "elf" in a comment 2002-05-31 16:49:12 +00:00
exec_macho.c add RCSIDs 2001-11-12 15:25:01 +00:00
exec_script.c add RCSIDs 2001-11-12 15:25:01 +00:00
exec_subr.c add RCSIDs 2001-11-12 15:25:01 +00:00
genassym.awk
genassym.sh Deal with invokers who pass us environment variable settings as part 2001-09-24 00:20:11 +00:00
genlintstub.awk Add a /* LINTSTUB: include <foo.h> */ mechanism. 2001-05-16 04:17:04 +00:00
init_main.c Niels Provos systrace work, ported to NetBSD by kittenz and reworked... 2002-06-17 16:22:50 +00:00
init_sysent.c Regenerate: Added __sigaction_sigtramp at #340. 2002-07-04 23:34:28 +00:00
kern_acct.c add RCSIDs 2001-11-12 15:25:01 +00:00
kern_allocsys.c add RCSIDs 2001-11-12 15:25:01 +00:00
kern_clock.c We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore. 2002-03-17 11:10:43 +00:00
kern_descrip.c sys_fpathconf: Don't panic in the default case; just return EOPNOTSUPP. 2002-06-18 02:04:08 +00:00
kern_exec.c From OpenBSD, via FreeBSD: If a set{u,g}id binary is invoked with fd < 3 2002-04-23 15:11:25 +00:00
kern_exit.c Make sure that the pointer to old parent process for ptraced children 2002-07-25 20:04:02 +00:00
kern_fork.c Add FORK_NOWAIT flag, which sets init as the parent of the forked 2002-07-11 10:37:26 +00:00
kern_kthread.c SIMPLEQ rototill: 2002-06-01 23:50:52 +00:00
kern_ktrace.c disallow ktrace on P_SUGID. from openbsd 2002-06-28 01:59:36 +00:00
kern_lkm.c add RCSIDs 2001-11-12 15:25:01 +00:00
kern_lock.c Move kernel_lock manipulation info functions so that they will 2002-05-21 01:38:26 +00:00
kern_malloc_debug.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
kern_malloc.c Include opt_malloc_debug.h so that debug_malloc will actually be used 2002-04-03 09:45:22 +00:00
kern_ntptime.c Back out previous. 2002-05-03 01:22:30 +00:00
kern_physio.c allow writing to write-only mappings. fixes PR 3493. 2002-02-14 07:08:02 +00:00
kern_proc.c add KSTACK_CHECK_MAGIC. discussed on tech-kern. 2002-07-02 20:27:44 +00:00
kern_prot.c remove diagnostic test checking for cr_ref = 0. It will never be, because 2001-12-06 23:11:59 +00:00
kern_resource.c Two changes to setrlimit(2): 2001-11-23 18:56:33 +00:00
kern_sig.c Add kernel support for having userland provide the signal trampoline: 2002-07-04 23:32:02 +00:00
kern_subr.c * Add copyin_proc() and copyout_proc(), which are like copyin() and 2002-07-20 03:58:24 +00:00
kern_synch.c add KSTACK_CHECK_MAGIC. discussed on tech-kern. 2002-07-02 20:27:44 +00:00
kern_sysctl.c provide KERN_URND, which extracts sizeof(int) random number from the kernel 2002-07-02 17:06:17 +00:00
kern_systrace.c missing systrace_lock() around lock operation. sync w/openbsd, provos ok 2002-07-21 00:25:01 +00:00
kern_time.c Implement the CLOCK_MONOTONIC clock for the posix/opengroup realtime 2002-01-31 00:13:07 +00:00
kern_xxx.c Use the number of args in the sysent rather than calculating it from the 2002-06-19 23:35:35 +00:00
kgdb_stub.c add support for the `D' kgdb detach command 2002-01-05 22:57:38 +00:00
Make.tags.inc use ${.CURDIR:H:H} instead of ../.. for default setting of SYSDIR, 2001-04-18 11:21:24 +00:00
Makefile SYSDIR should be relative here, too. 2001-04-05 19:49:40 +00:00
makesyscalls.sh add RCSID to generated .c files 2001-11-12 14:57:02 +00:00
subr_autoconf.c fix off-by-one error in string len check 2002-07-10 19:04:09 +00:00
subr_disk.c The buffer returned by BUFQ_PEEK must remain the same until BUFQ_GET is 2002-07-23 14:00:16 +00:00
subr_extent.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
subr_log.c Fix the return value of logioctl() for unhandled ioctl; return EPASSTHROUGH 2002-04-28 04:13:51 +00:00
subr_pool.c Add wchan to a panic (must have NOWAIT). 2002-07-11 17:18:48 +00:00
subr_prf.c provide a db_vprintf() which is exactly what the name suggests 2002-06-05 17:53:52 +00:00
subr_prof.c add RCSIDs 2001-11-12 15:25:01 +00:00
subr_prop.c size_t is a long on alpha. I forget whether there's actually a 'best' 2002-03-16 22:44:41 +00:00
subr_rmap.c add RCSIDs 2001-11-12 15:25:01 +00:00
subr_userconf.c add RCSIDs 2001-11-12 15:25:01 +00:00
subr_xxx.c add RCSIDs 2001-11-12 15:25:01 +00:00
sys_generic.c Make sure file descriptor is properly FILE_UNUSE()d in error case 2002-03-22 18:58:59 +00:00
sys_pipe.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
sys_process.c Make sure that the pointer to old parent process for ptraced children 2002-07-25 20:04:02 +00:00
sys_socket.c add RCSIDs 2001-11-12 15:25:01 +00:00
syscalls.c Regenerate: Added __sigaction_sigtramp at #340. 2002-07-04 23:34:28 +00:00
syscalls.conf
syscalls.master Add kernel support for having userland provide the signal trampoline: 2002-07-04 23:32:02 +00:00
sysv_ipc.c add RCSIDs 2001-11-12 15:25:01 +00:00
sysv_msg.c Make the debugging printfs compile: 2002-03-05 23:28:58 +00:00
sysv_sem.c use the exithook mechanism to clean up semaphores. 2002-03-17 22:21:58 +00:00
sysv_shm.c Split off the backend of the shmat system call, and find removed segments 2002-04-03 11:53:01 +00:00
tty_conf.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
tty_pty.c Print ttyinfo *before* (not after) sending SIGINFO to processes. 2002-03-25 04:26:43 +00:00
tty_subr.c In clalloc(), clear the quoted char bitmap (part of the ring buffer was 2001-12-27 02:27:50 +00:00
tty_tb.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
tty_tty.c add RCSIDs 2001-11-12 15:25:01 +00:00
tty.c Make sure repeated TIOCSCTTY doesn't corrupt session hold count. 2002-07-21 20:43:53 +00:00
uipc_domain.c Make domains extern. 2002-05-12 20:36:58 +00:00
uipc_mbuf2.c in m_aux_delete, no need to chase beyond victim. from Archie Cobbs, sync w/kame 2002-05-23 05:45:34 +00:00
uipc_mbuf.c Changes to allow the IPv4 and IPv6 layers to align headers themseves, 2002-06-30 22:40:32 +00:00
uipc_proto.c add RCSIDs 2001-11-12 15:25:01 +00:00
uipc_socket2.c Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from 2002-07-03 21:39:40 +00:00
uipc_socket.c Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from 2002-07-03 21:39:40 +00:00
uipc_syscalls.c support setsockopt() with larger data (up to MCLBYTES). 2002-05-31 20:33:11 +00:00
uipc_usrreq.c add RCSIDs 2001-11-12 15:25:01 +00:00
vfs_bio.c Eliminate commons. 2002-05-12 23:06:27 +00:00
vfs_cache.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
vfs_getcwd.c add RCSIDs 2001-11-12 15:25:01 +00:00
vfs_init.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
vfs_lockf.c add RCSIDs 2001-11-12 15:25:01 +00:00
vfs_lookup.c If we're in a chroot, and we are looking up '..', make sure we are 2002-06-21 02:19:12 +00:00
vfs_subr.c Back out rev 1.174 of vfs_subr.c, because the splbio() wasn't protecting 2002-05-23 23:05:25 +00:00
vfs_syscalls.c Don't release the lock on mount point vnode so early when doing update mount. 2002-05-11 00:45:06 +00:00
vfs_vnops.c Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for 2002-03-17 19:40:26 +00:00
vnode_if.c regen (for RCSID) 2001-11-12 14:50:28 +00:00
vnode_if.sh add RCSID to generated .c file 2001-11-12 14:34:24 +00:00
vnode_if.src a whole bunch of changes to improve performance and robustness under load: 2001-09-15 20:36:31 +00:00