VirtualBox

Ignore:
Timestamp:
Apr 20, 2017 12:56:17 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114675
Message:

SUPR3HardeningVerify.cpp: Adjusted preprocessor indent in supR3HardenedVerifyFsObject.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r66608 r66627  
    14671467        && pFsObjState->Stat.st_gid != 0)
    14681468    {
    1469 #ifdef RT_OS_DARWIN
     1469# ifdef RT_OS_DARWIN
    14701470        /* HACK ALERT: On Darwin /Applications is root:admin with admin having
    14711471           full access. So, to work around we relax the hardening a bit and
     
    14741474        bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 80 /*admin*/ || suplibHardenedStrCmp(pszPath, "/Applications");
    14751475
    1476 #elif defined(RT_OS_FREEBSD)
     1476# elif defined(RT_OS_FREEBSD)
    14771477        /* HACK ALERT: PC-BSD 9 has group-writable /usr/pib directory which is
    14781478           similar to /Applications on OS X (see above).
     
    14821482        bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 5 /*operator*/ || suplibHardenedStrCmp(pszPath, "/usr/pbi");
    14831483        NOREF(fRelaxed);
    1484 #elif defined(RT_OS_SOLARIS)
     1484# elif defined(RT_OS_SOLARIS)
    14851485        /* HACK ALERT: Solaris has group-writable /usr/lib/iconv directory from
    14861486           which the appropriate module is loaded.
     
    14891489        /** @todo dynamically resolve the bin group? */
    14901490        bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 2 /*bin*/ || suplibHardenedStrCmp(pszPath, "/usr/lib/iconv");
    1491 #else
     1491# else
    14921492        NOREF(fRelaxed);
    14931493        bool fBad = true;
    1494 #endif
     1494# endif
    14951495        if (fBad)
    14961496            return supR3HardenedSetError3(VERR_SUPLIB_WRITE_NON_SYS_GROUP, pErrInfo,
Note: See TracChangeset for help on using the changeset viewer.

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