VirtualBox

Changeset 13807

Show
Ignore:
Timestamp:
11/04/08 21:55:40 (2 months ago)
Author:
vboxsync
Message:

activated ipcd security checks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp

    r13788 r13807  
    113113    memcpy(lockFile + dirLen + 1, lockName, sizeof(lockName)); 
    114114 
    115 #if 0 
    116115#ifdef VBOX 
    117116    // 
    118     // Security checks 
     117    // Security checks for the directory 
    119118    // 
    120119    struct stat st; 
     
    137136    } 
    138137#endif 
    139 #endif 
    140138 
    141139    // 
     
    144142    ipcLockFD = open(lockFile, O_WRONLY|O_CREAT, S_IWUSR|S_IRUSR); 
    145143 
    146 #if 0 
    147144#ifndef VBOX 
    148145    free(lockFile); 
    149146#endif 
    150 #endif 
    151147 
    152148    if (ipcLockFD == -1) 
    153149        return ELockFileOpen; 
    154150 
    155 #if 0 
    156151#ifdef VBOX 
    157152    // 
    158     // Security checks 
     153    // Security checks for the lock file 
    159154    // 
    160155    if (fstat(ipcLockFD, &st) == -1) 
     
    180175 
    181176    free(lockFile); 
    182 #endif 
    183177#endif 
    184178 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy