Lines Matching defs:scope

77 static int handle_background(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
78 static int handle_hwaccess(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
79 static int handle_lowresrouce(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
80 static int handle_resourceuse(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
81 static int handle_apptype(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
87 static int handle_applifecycle(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
94 *int process_policy(int scope, int action, int policy, int policy_subtype,
97 *{ int process_policy(int scope, int action, int policy, int policy_subtype,
106 int scope = uap->scope;
120 if ((scope != PROC_POLICY_SCOPE_PROCESS) && (scope != PROC_POLICY_SCOPE_THREAD)) {
166 error = handle_background(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
169 error = handle_hwaccess(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
172 error = handle_lowresrouce(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
175 error = handle_resourceuse(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
179 error = handle_applifecycle(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
183 error = handle_apptype(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
201 handle_background(int scope, int action, __unused int policy, __unused int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid)
208 if (scope == PROC_POLICY_SCOPE_PROCESS) {
211 /* thread scope */
225 if (scope == PROC_POLICY_SCOPE_PROCESS) {
228 /* thread scope */
241 if (scope == PROC_POLICY_SCOPE_PROCESS) {
244 /* thread scope */
257 if (scope == PROC_POLICY_SCOPE_PROCESS) {
260 /* thread scope */
266 if (scope == PROC_POLICY_SCOPE_PROCESS) {
269 /* thread scope */
275 if (scope == PROC_POLICY_SCOPE_PROCESS) {
278 /* thread scope */
300 handle_hwaccess(__unused int scope, __unused int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, __unused proc_t proc, __unused uint64_t target_threadid)
316 handle_lowresrouce(__unused int scope, int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, proc_t proc, __unused uint64_t target_threadid)
338 handle_resourceuse(__unused int scope, __unused int action, __unused int policy, int policy_subtype, user_addr_t attrp, proc_t proc, __unused uint64_t target_threadid)
395 handle_applifecycle(__unused int scope, int action, __unused int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid)
504 handle_apptype(__unused int scope, int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, proc_t target_proc, __unused uint64_t target_threadid)