Changeset 39133 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Oct 27, 2011 5:54:33 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 74583
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp
r39091 r39133 1128 1128 * directory (only used for grand parent 1129 1129 * directories). 1130 * @param pszPath The path to the object. (For error messages1131 * only.)1130 * @param pszPath The path to the object. For error messages and 1131 * securing a couple of hacks. 1132 1132 * @param pErrInfo The error info structure. 1133 1133 */ … … 1190 1190 full access. So, to work around we relax the hardening a bit and 1191 1191 permit grand parents and beyond to be group writable by admin. */ 1192 bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 80 /*admin*/; /** @todo dynamically resolve the admin group? */ 1192 /** @todo dynamically resolve the admin group? */ 1193 bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 80 /*admin*/ || strcmp(pszPath, "/Applications"); 1193 1194 1194 1195 #elif defined(RT_OS_FREEBSD) 1195 /* HACK ALERT: PC-BSD 9 has group-writable application directory, 1196 similar to OS X and their /Applications directory (see above). 1197 On FreeBSD root is normally the only member of this group. */ 1198 /** @todo Can we test for fRelaxed here like on the mac or is the 'operator' 1199 * group the owner of the immediate installation directory? More 1200 * details would be greatly appreciated as this HACK affects real FreeBSD 1201 * as well as the PC-BSD fork! */ 1202 bool fBad = pFsObjState->Stat.st_gid != 5 /*operator*/; 1196 /* HACK ALERT: PC-BSD 9 has group-writable /usr/pib directory which is 1197 similar to /Applications on OS X (see above). 1198 On FreeBSD root is normally the only member of this group, on 1199 PC-BSD the default user is a member. */ 1200 /** @todo dynamically resolve the operator group? */ 1201 bool fBad = !fRelaxed || pFsObjState->Stat.st_gid != 5 /*operator*/ || strcmp(pszPath, "/usr/pbi"); 1203 1202 NOREF(fRelaxed); 1204 1203 #else
Note:
See TracChangeset
for help on using the changeset viewer.