How to set temporary rights to IOKit properties?

I am using the sandbox for my Mac application. I need to set the property for IOKit so

IORegistryEntrySetCFProperty(reg, CFSTR("IORequestIdle"), kCFBooleanTrue);

Due to the use of the sandbox, the system will not allow me to do this. If I disable the application sandbox, the property will be set correctly.

The error message I get in the console is as follows: deny iokit-set-properties IORequestIdle

Is there a way to set a temporary right so that I can do it right. If so, how do I do this?

+5
source share
1 answer

The short answer is no. If you can enable and disable rights according to your wishes, then the sandbox has no purpose.

, , , , , . , 1 2012 .

+2

All Articles