VirtualBox

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


Ignore:
Timestamp:
Feb 22, 2024 2:05:31 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161878
Message:

VBoxManage: Add subcommand for enabling UEFI secure boot (and show the status in the VM infos).
Main/NVRAMStore+UefiVariableStore: Tweaks to allow reading the UEFI secure boot state when the VM isn't mutable.
doc/manual: Update VBoxManage manpage.

File:
1 edited

Legend:

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

    r99739 r103532  
    152152HRESULT UefiVariableStore::getSecureBootEnabled(BOOL *pfEnabled)
    153153{
    154     /* the machine needs to be mutable */
    155     AutoMutableStateDependency adep(m->pMachine);
    156     if (FAILED(adep.hrc())) return adep.hrc();
    157 
    158154    HRESULT hrc = i_retainUefiVariableStore(true /*fReadonly*/);
    159155    if (FAILED(hrc)) return hrc;
     
    324320                                               std::vector<BYTE> &aData)
    325321{
    326     /* the machine needs to be mutable */
    327     AutoMutableStateDependency adep(m->pMachine);
    328     if (FAILED(adep.hrc())) return adep.hrc();
    329 
    330322    HRESULT hrc = i_retainUefiVariableStore(true /*fReadonly*/);
    331323    if (FAILED(hrc)) return hrc;
     
    370362                                          std::vector<com::Guid> &aOwnerUuids)
    371363{
    372     /* the machine needs to be mutable */
    373     AutoMutableStateDependency adep(m->pMachine);
    374     if (FAILED(adep.hrc())) return adep.hrc();
    375 
    376364    HRESULT hrc = i_retainUefiVariableStore(true /*fReadonly*/);
    377365    if (FAILED(hrc)) return hrc;
     
    522510HRESULT UefiVariableStore::enrollDefaultMsSignatures(void)
    523511{
     512    /* the machine needs to be mutable */
    524513    AutoMutableStateDependency adep(m->pMachine);
    525514    if (FAILED(adep.hrc())) return adep.hrc();
Note: See TracChangeset for help on using the changeset viewer.

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