SEBWIN-648: Added VMware to PCI vendor blacklist.
This commit is contained in:
parent
4d67be099a
commit
718a4550e9
1 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,10 @@ namespace SafeExamBrowser.SystemComponents
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Virtualbox: VBOX, 80EE / RedHat: QUEMU, 1AF4, 1B36
|
/// Virtualbox: VBOX, 80EE / RedHat: QUEMU, 1AF4, 1B36
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static readonly string[] PCI_VENDOR_BLACKLIST = { "vbox", "vid_80ee", "qemu", "ven_1af4", "ven_1b36", "subsys_11001af4" };
|
private static readonly string[] PCI_VENDOR_BLACKLIST =
|
||||||
|
{
|
||||||
|
"vbox", "vid_80ee", "qemu", "ven_1af4", "ven_1b36", "subsys_11001af4", "PROD_VMWARE", "VEN_VMWARE", "VMWARE_IDE"
|
||||||
|
};
|
||||||
private static readonly string QEMU_MAC_PREFIX = "525400";
|
private static readonly string QEMU_MAC_PREFIX = "525400";
|
||||||
private static readonly string VIRTUALBOX_MAC_PREFIX = "080027";
|
private static readonly string VIRTUALBOX_MAC_PREFIX = "080027";
|
||||||
|
|
||||||
|
@ -54,7 +57,7 @@ namespace SafeExamBrowser.SystemComponents
|
||||||
|
|
||||||
foreach (var device in plugAndPlayDeviceIds)
|
foreach (var device in plugAndPlayDeviceIds)
|
||||||
{
|
{
|
||||||
isVirtualMachine |= PCI_VENDOR_BLACKLIST.Any(device.ToLower().Contains);
|
isVirtualMachine |= PCI_VENDOR_BLACKLIST.Any(v => device.ToLower().Contains(v.ToLower()));
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Debug($"Computer '{systemInfo.Name}' appears {(isVirtualMachine ? "" : "not ")}to be a virtual machine.");
|
logger.Debug($"Computer '{systemInfo.Name}' appears {(isVirtualMachine ? "" : "not ")}to be a virtual machine.");
|
||||||
|
|
Loading…
Reference in a new issue