Loading...
--- xnu/xnu-1504.9.26/iokit/Kernel/RootDomainUserClient.cpp
+++ xnu/xnu-1504.7.4/iokit/Kernel/RootDomainUserClient.cpp
@@ -194,23 +194,6 @@
#endif
}
-IOReturn RootDomainUserClient::secureSetUserAssertionLevels(
- uint32_t assertBits )
-{
- int admin_priv = 0;
- IOReturn ret = kIOReturnNotPrivileged;
-
- ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeAdministrator);
- admin_priv = (kIOReturnSuccess == ret);
-
- if (admin_priv && fOwner) {
- ret = fOwner->setPMAssertionUserLevels(assertBits);
- } else {
- ret = kIOReturnNotPrivileged;
- }
- return kIOReturnSuccess;
-}
-
IOReturn RootDomainUserClient::clientClose( void )
{
detach(fOwner);
@@ -255,10 +238,6 @@
{ // kPMSetMaintenanceWakeCalendar, 8
(IOService *)1, (IOMethod)&RootDomainUserClient::secureSetMaintenanceWakeCalendar,
kIOUCStructIStructO, sizeof(IOPMCalendarStruct), sizeof(uint32_t)
- },
- { // kPMSetUserAssertionLevels, 9
- (IOService *)1, (IOMethod)&RootDomainUserClient::secureSetUserAssertionLevels,
- kIOUCScalarIScalarO, 1, 0
}
};