Revoke reimplementation - primary commit part 2/2.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Apr 2009 16:46:57 +0000 (09:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 3 Apr 2009 16:46:57 +0000 (09:46 -0700)
commitea8f324c34cc7837fa0cc397d329322bee5f99b9
tree8ab8246fbc41fc652ef386f468817ace27a6a5e1
parent36a483b2ade6e98d84f390b1cb2357a27613904e
Revoke reimplementation - primary commit part 2/2.

This finishes out the primary revoke changes.  Adjust the revoke code
to do a primary pass on the file pointer table and mark fps with FREVOKED,
then do a pass on the process descriptor tables to clean them out.

Add checks to dup() to silently use a dummy fp when the source fp has
been revoked.  This removes revoke/dup races.

Add unix domain in-transit tests.  If a revoked fp is in-transit then
unix-domain sockets are scanned and revoked file pointers replaced with
dummy file pointers.
sys/kern/kern_descrip.c
sys/kern/uipc_usrreq.c
sys/sys/fcntl.h
sys/sys/un.h