DragonFly- master sys/kern kern_descrip.c uipc_usrreq.c sys/sys fcntl.h un.h

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 3 09:52:12 PDT 2009

commit ea8f324c34cc7837fa0cc397d329322bee5f99b9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Apr 3 09:46:57 2009 -0700

    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.

Summary of changes:
 sys/kern/kern_descrip.c |  127 ++++++++++++++++++++++++++++++---------
 sys/kern/uipc_usrreq.c  |  156 +++++++++++++++++++++++++++++++++++++++++++----
 sys/sys/fcntl.h         |    4 +
 sys/sys/un.h            |    1 +
 4 files changed, 248 insertions(+), 40 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list