VirtualBox

Changeset 74353 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 18, 2018 9:51:33 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125166
Message:

Main/mediumio: Corrected crypto filtering on write access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r74003 r74353  
    80838083 *                                  MediumLockList::Clear() after destroying
    80848084 *                                  @a *ppHdd
    8085  * @param   pCryptoSettingsRead     The crypto read settings to use for setting
    8086  *                                  up decryption of the VDISK.  This object
     8085 * @param   pCryptoSettings         The crypto settings to use for setting up
     8086 *                                  decryption/encryption of the VDISK.  This object
    80878087 *                                  must be alive until the VDISK is destroyed!
    80888088 */
    80898089HRESULT Medium::i_openForIO(bool fWritable, SecretKeyStore *pKeyStore, PVDISK *ppHdd, MediumLockList *pMediumLockList,
    8090                             MediumCryptoFilterSettings *pCryptoSettingsRead)
     8090                            MediumCryptoFilterSettings *pCryptoSettings)
    80918091{
    80928092    /*
     
    81738173                                   itKeyId->second.c_str(), vrc);
    81748174
    8175             i_taskEncryptSettingsSetup(pCryptoSettingsRead, NULL, itKeyStore->second.c_str(), (const char *)pKey->getKeyBuffer(),
     8175            i_taskEncryptSettingsSetup(pCryptoSettings, NULL, itKeyStore->second.c_str(), (const char *)pKey->getKeyBuffer(),
    81768176                                       false /* fCreateKeyStore */);
    8177             vrc = VDFilterAdd(pHdd, "CRYPT", VD_FILTER_FLAGS_READ, pCryptoSettingsRead->vdFilterIfaces);
     8177            vrc = VDFilterAdd(pHdd, "CRYPT", VD_FILTER_FLAGS_DEFAULT, pCryptoSettings->vdFilterIfaces);
    81788178            pKeyStore->releaseSecretKey(itKeyId->second);
    81798179            if (vrc == VERR_VD_PASSWORD_INCORRECT)
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