Changeset 70726 in vbox
- Timestamp:
- Jan 24, 2018 1:58:10 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120473
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/shflsvc.h
r69107 r70726 484 484 pDst->BirthTime = pSrc->BirthTime; 485 485 pDst->Attr.fMode = pSrc->Attr.fMode; 486 /* Clear bits which we don't pass through for security reasons. */ 487 pDst->Attr.fMode &= ~(RTFS_UNIX_ISUID | RTFS_UNIX_ISGID | RTFS_UNIX_ISTXT); 486 488 RT_ZERO(pDst->Attr.u); 487 489 switch (pSrc->Attr.enmAdditional) -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r69753 r70726 1526 1526 #ifndef RT_OS_WINDOWS 1527 1527 /* Don't allow the guest to clear the own bit, otherwise the guest wouldn't be 1528 * able to access this file anymore. Only for guests, which set the UNIX mode. */ 1528 * able to access this file anymore. Only for guests, which set the UNIX mode. 1529 * Also, clear bits which we don't pass through for security reasons. */ 1529 1530 if (fMode & RTFS_UNIX_MASK) 1531 { 1530 1532 fMode |= RTFS_UNIX_IRUSR; 1533 fMode &= ~(RTFS_UNIX_ISUID | RTFS_UNIX_ISGID | RTFS_UNIX_ISTXT); 1534 } 1531 1535 #endif 1532 1536
Note:
See TracChangeset
for help on using the changeset viewer.