VirtualBox

Changeset 13807 in vbox for trunk/src/libs


Ignore:
Timestamp:
Nov 4, 2008 8:55:40 PM (16 years ago)
Author:
vboxsync
Message:

activated ipcd security checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
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