VirtualBox

Changeset 23301 in vbox


Ignore:
Timestamp:
Sep 24, 2009 4:59:13 PM (15 years ago)
Author:
vboxsync
Message:

VBoxNetFlt-solaris.c: be bolder in the claims wrt pCred/g_pVBoxNetFltSolarisCred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c

    r23293 r23301  
    660660
    661661    /*
    662      * Check kernel credentials.
    663      * Protects us to a minor degree, is someone uses kcred besides us, this check is not sufficient.
     662     * Check that the request was initiated by our code.
     663     *
     664     * This ASSUMES that crdup() will return a copy with a unique address and
     665     * not do any kind of clever pooling.  This check will when combined with
     666     * g_VBoxNetFltSolarisMtx prevent races and that the instance gets
     667     * associated with the wrong streams.
    664668     */
    665669    if (pCred != g_pVBoxNetFltSolarisCred)
     
    20732077                                rc = RTSemFastMutexRequest(g_VBoxNetFltSolarisMtx);
    20742078                                AssertRCReturn(rc, rc);
    2075                                
     2079
    20762080                                if (fAttach)
    20772081                                {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette