opnsense-src/sys
Don Lewis 643a8daaaf If the session leader dies, s_leader is set to NULL and getsid() may
dereference a NULL pointer, causing a panic.  Instead of following
s_leader to find the session id, store it in the session structure.

Jukka found the following info:

	BTW - I just found what I have been looking for. Std 1003.1
	Part 1: SYSTEM API [C LANGUAGE] section 2.2.2.80 states quite
	explicitly...

	Session lifetime: The period between when a session is created
	and the end of lifetime of all the process groups that remain
	as members of the session.

	So, this quite clearly tells that while there is any single
	process in any process group which is a member of the session,
	the session remains as an independent entity.

Reviewed by:	peter
Submitted by:	"Jukka A. Ukkonen" <jau@jau.tmt.tele.fi>
1998-11-09 15:08:04 +00:00
..
alpha Add some bogus stuff to make systat/vmstat happy. 1998-11-09 10:47:19 +00:00
amd64 * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
boot Prevent boot.config being parsed more than once. 1998-11-08 18:37:28 +00:00
cam Generalize the quirk entry that disables multi-lun probing for Sony CDROM 1998-11-04 19:56:24 +00:00
coda Support KLD. We register and unregister two modules. "coda" (the vfs) 1998-11-03 08:55:06 +00:00
compat Fix a couple of out-of-bounds array references in mapping between 1998-10-11 04:54:16 +00:00
compile
conf Update configuration files for the perl based makedevops script. 1998-11-08 18:39:57 +00:00
contrib/softupdates Change dirty block list handling to use TAILQ macros. 1998-10-31 15:33:32 +00:00
ddb Forgot to commit this; the alpha uses the kld symbol interface now. The 1998-10-15 02:01:50 +00:00
dev ifioctl takes a u_long rather than an int on 3.0 1998-11-09 09:34:00 +00:00
fs "fix" a warning that has been bugging me for ages. Eliminate a couple 1998-11-09 09:21:25 +00:00
geom Update system to new device statistics code. 1998-09-15 08:15:30 +00:00
gnu Use TAILQ macros for clean/dirty block list processing. Set b_xflags 1998-10-31 15:31:29 +00:00
i386 * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
isa Port the ps/2 mouse driver to the alpha. 1998-11-08 18:43:03 +00:00
isofs/cd9660 Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted 1998-10-25 19:26:18 +00:00
kern If the session leader dies, s_leader is set to NULL and getsid() may 1998-11-09 15:08:04 +00:00
libkern Converted rcsid to $Id$ again. There shouldn't be any rcsids in the kernel. 1998-08-17 19:26:37 +00:00
miscfs "fix" a warning that has been bugging me for ages. Eliminate a couple 1998-11-09 09:21:25 +00:00
modules Make this work now; fixing the kstack overflow allows the dependency to 1998-11-06 16:02:14 +00:00
msdosfs Use TAILQ macros for clean/dirty block list processing. Set b_xflags 1998-10-31 15:31:29 +00:00
net * Use explicitly sized types for grovelling around inside packets. 1998-10-31 10:45:03 +00:00
netatalk Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netatm Unneeded file. 1998-10-31 20:09:25 +00:00
netinet Some optimisations to the fragment reassembly code. 1998-10-27 09:19:03 +00:00
netipx Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
netkey Fixed printf format errors. 1998-08-17 01:05:25 +00:00
netnatm Nitpicking and dusting performed on a train. Removes trivial warnings 1998-10-25 17:44:59 +00:00
netns Make INET a proper option. 1998-01-08 23:42:31 +00:00
nfs Remove [apparently] bogus casts to u_long for the vnode_pager_setsize() 1998-11-09 07:00:14 +00:00
nfsclient Remove [apparently] bogus casts to u_long for the vnode_pager_setsize() 1998-11-09 07:00:14 +00:00
nfsserver Remove [apparently] bogus casts to u_long for the vnode_pager_setsize() 1998-11-09 07:00:14 +00:00
pc98 * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
pccard Add #include to get a prototype for update_intr_masks(). 1998-11-09 09:30:55 +00:00
pci ifioctl takes a u_long rather than an int on 3.0 1998-11-09 09:34:00 +00:00
posix4 Set PAGE_SIZE for _SC_PAGESIZE sysconf(). 1998-06-01 21:54:43 +00:00
powerpc Add the ability to specify where on the at_shutdown queue a handler is 1998-10-30 05:41:15 +00:00
rpc Resolve conflicts. 1997-05-28 04:45:15 +00:00
sys If the session leader dies, s_leader is set to NULL and getsid() may 1998-11-09 15:08:04 +00:00
tools VOP_STRATEGY grows an (struct vnode *) argument 1998-07-04 20:45:42 +00:00
ufs Change dirty block list handling to use TAILQ macros. 1998-10-31 15:33:32 +00:00
vm * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
Makefile Build KLD modules, these work for both a.out and elf. 1998-11-03 06:50:58 +00:00