Lines Matching refs:policy
44 #define PROC_POLICY_SCOPE_PROCESS 1 /* the policy setting is for process wide effect */
45 #define PROC_POLICY_SCOPE_THREAD 2 /* the policy setting is for thread inside a proc */
48 #define PROC_POLICY_ACTION_APPLY 1 /* enforce the set policy */
50 #define PROC_POLICY_ACTION_DENYINHERIT 3 /* set for no inheritence of the specified policy */
51 #define PROC_POLICY_ACTION_DENYSELFSET 4 /* set for the process to set its own policy */
52 #define PROC_POLICY_ACTION_ENABLE 5 /* enable policy and its actions */
53 #define PROC_POLICY_ACTION_DISABLE 6 /* disable policy and its actions, also clears any actions that have already happened */
55 #define PROC_POLICY_ACTION_SET 10 /* set the policy attributes */
56 #define PROC_POLICY_ACTION_GET 11 /* get the policy attributes */
57 #define PROC_POLICY_ACTION_ADD 12 /* add a policy attribute */
58 #define PROC_POLICY_ACTION_REMOVE 13 /* remove a policy attribute */
64 #define PROC_POLICY_BACKGROUND 1 /* darwin background policy */
72 /* sub policies for background policy */
148 uint32_t ppattr_attribute; /* the policy attribute to be modified or returned */
150 uint64_t ppattr_value1; /* 64bit policy specific attribute */
151 uint64_t ppattr_value2; /* 64bit policy specific attribute */
152 uint64_t ppattr_value3; /* 64bit policy specific attribute */
178 int process_policy(int scope, int action, int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target_threadid);