Changeset 99401 in vbox
- Timestamp:
- Apr 14, 2023 2:03:32 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r99180 r99401 1247 1247 self.o.machine.nonVolatileStore.uefiVariableStore.enrollDefaultMsSignatures(); 1248 1248 self.o.machine.nonVolatileStore.uefiVariableStore.enrollOraclePlatformKey(); 1249 if sUefiMokPathPrefix is not None \ 1250 and self.fpApiVer >= 7.1: 1251 sFullName = self.oTstDrv.getFullResourceName(sUefiMokPathPrefix) + '.der'; 1252 with open(sFullName, "rb") as der_file: 1253 self.o.machine.nonVolatileStore.uefiVariableStore.addSignatureToMok(bytearray(der_file.read()), \ 1254 uuid.uuid4().hex, \ 1255 vboxcon.SignatureType_X509); 1249 if sUefiMokPathPrefix: 1250 if self.oTstDrv.uRevision >= 156314: # Backported IUefiVariableStore::addSignatureToMok() to 7.0. 1251 sFullName = self.oTstDrv.getFullResourceName(sUefiMokPathPrefix) + '.der'; 1252 with open(sFullName, "rb") as der_file: 1253 self.o.machine.nonVolatileStore.uefiVariableStore.addSignatureToMok(bytearray(der_file.read()), \ 1254 uuid.uuid4().hex, \ 1255 vboxcon.SignatureType_X509); 1256 else: 1257 reporter.log('Warning: Enrolling own keys / signatures only available for 7.0 >= r156314. ' \ 1258 'Guest Additions installation might fail!'); 1256 1259 1257 1260 self.o.machine.nonVolatileStore.uefiVariableStore.secureBootEnabled = fEnable;
Note:
See TracChangeset
for help on using the changeset viewer.