I want to access AppleSMC device from a sandboxed app , does anyone know what entitlement should I use to access Temperature sensors and FANs RPM?
here is the code I am using to access it :
kern_return_t result;
mach_port_t masterPort;
io_iterator_t iterator;
io_object_t device;
/*result =*/ IOMasterPort(MACH_PORT_NULL, &masterPort);
CFMutableDictionaryRef matchingDictionary = IOServiceMatching("AppleSMC");
result = IOServiceGetMatchingServices(masterPort, matchingDictionary, &iterator);
Thanks in advance