Changeset 80788 in vbox
- Timestamp:
- Sep 13, 2019 8:08:53 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133355
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ClientTokenHolder.cpp
r80569 r80788 254 254 255 255 //AssertMsg(mutex, ("cannot open token, err=%u\n", ::GetLastError())); 256 Assert Msg(mutex, ("cannot open token %ls, err=%u\n", bstrSessionId.raw(), ::GetLastError()));256 AssertLogRelMsg(mutex, ("cannot open token %ls, err=%u\n", bstrSessionId.raw(), ::GetLastError())); 257 257 if (mutex) 258 258 { -
trunk/src/VBox/Main/src-server/ClientToken.cpp
r80569 r80788 128 128 AssertMsgFailed(("Cannot get thread access token, err=%u", ::GetLastError())); 129 129 130 Bstr tokenId = Bstr(Utf8Str("Global\\") + strUserSid + "/" + pMachine->mData->mUuid.toString());130 BstrFmt tokenId("Global\\VBoxSession-%s-VM-%RTuuid", strUserSid.c_str(), pMachine->mData->mUuid.raw()); 131 131 132 132 /* create security descriptor to allow SYNCHRONIZE access from any windows sessions and users. … … 142 142 143 143 //static const RTUTF16 s_wszSecDesc[] = L"D:(A;;0x1F0001;;;CO)(A;;0x1F0001;;;SY)(A;;0x1F0001;;;BA)(A;;0x100001;;;WD)"; 144 com::BstrFmt bstrSecDesc("O:%sD:(A;;0x1F0001;;;CO)(A;;0x1F0001;;;SY)(A;;0x1F0001;;;BA)", strUserSid.c_str()); 144 com::BstrFmt bstrSecDesc("D:(A;;0x1F0001;;;CO)" 145 "(A;;0x1F0001;;;SY)" 146 "(A;;0x1F0001;;;BA)" 147 "(A;;0x1F0001;;;BA)" 148 "(A;;0x1F0001;;;%s)" 149 , strUserSid.c_str()); 145 150 PSECURITY_DESCRIPTOR pSecDesc = NULL; 146 151 //AssertMsgStmt(::ConvertStringSecurityDescriptorToSecurityDescriptor(s_wszSecDesc, SDDL_REVISION_1, &pSecDesc, NULL),
Note:
See TracChangeset
for help on using the changeset viewer.