diff --git a/src/detection/host/host_apple.c b/src/detection/host/host_apple.c index d61fbc028..990f6c671 100644 --- a/src/detection/host/host_apple.c +++ b/src/detection/host/host_apple.c @@ -1,13 +1,12 @@ #include "host.h" #include "common/sysctl.h" #include "util/apple/cf_helpers.h" -#include "util/stringUtils.h" #include const char* getProductNameWithIokit(FFstrbuf* result) { - FF_IOOBJECT_AUTO_RELEASE io_registry_entry_t registryEntry = IOServiceGetMatchingService(MACH_PORT_NULL, IOServiceNameMatching("product")); + FF_IOOBJECT_AUTO_RELEASE io_registry_entry_t registryEntry = IORegistryEntryFromPath(MACH_PORT_NULL, "IODeviceTree:/product"); if (!registryEntry) return "IOServiceGetMatchingService() failed";