From f8ac56691f0fbe5f4bcd30e070e18483a2fdb7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 5 Jan 2024 16:32:34 +0800 Subject: [PATCH] Host (FreeBSD): detect serial number and uuid --- src/detection/host/host_bsd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/host/host_bsd.c b/src/detection/host/host_bsd.c index 9a7dcbd71..46dd0b9af 100644 --- a/src/detection/host/host_bsd.c +++ b/src/detection/host/host_bsd.c @@ -12,6 +12,10 @@ const char* ffDetectHost(FFHostResult* host) ffCleanUpSmbiosValue(&host->productVersion); ffSettingsGetFreeBSDKenv("smbios.system.sku", &host->productSku); ffCleanUpSmbiosValue(&host->productSku); + ffSettingsGetFreeBSDKenv("smbios.system.serial", &host->productSerial); + ffCleanUpSmbiosValue(&host->productSerial); + ffSettingsGetFreeBSDKenv("smbios.system.uuid", &host->productUuid); + ffCleanUpSmbiosValue(&host->productUuid); ffSettingsGetFreeBSDKenv("smbios.system.maker", &host->sysVendor); ffCleanUpSmbiosValue(&host->sysVendor);