#include <sys/sfi.h>
#include <sys/kdebug.h>
#include <sys/priv.h>
+#include <kern/policy_internal.h>
/*
* This file provides the syscall-based configuration facility
} else {
KERNEL_DEBUG_CONSTANT(MACHDBG_CODE(DBG_MACH_SFI, SFI_PID_CLEAR_MANAGED) | DBG_FUNC_NONE, pid, 0, 0, 0, 0);
}
-
- proc_set_task_policy(p->task, THREAD_NULL,
- TASK_POLICY_ATTRIBUTE, TASK_POLICY_SFI_MANAGED,
- managed_enabled ? TASK_POLICY_ENABLE : TASK_POLICY_DISABLE);
+
+ proc_set_task_policy(p->task,
+ TASK_POLICY_ATTRIBUTE, TASK_POLICY_SFI_MANAGED,
+ managed_enabled ? TASK_POLICY_ENABLE : TASK_POLICY_DISABLE);
+
return PROC_RETURNED;
}
break;
}
- managed_enabled = proc_get_task_policy(targetp->task, THREAD_NULL, TASK_POLICY_ATTRIBUTE, TASK_POLICY_SFI_MANAGED);
+ managed_enabled = proc_get_task_policy(targetp->task, TASK_POLICY_ATTRIBUTE, TASK_POLICY_SFI_MANAGED);
proc_rele(targetp);