Lines Matching refs:target
26 struct task_struct *target; in sys_capget() local
52 target = find_task_by_pid(pid); /* identify target of query */ in sys_capget()
53 if (!target) in sys_capget()
56 target = current; in sys_capget()
60 data.permitted = cap_t(target->cap_permitted); in sys_capget()
61 data.inheritable = cap_t(target->cap_inheritable); in sys_capget()
62 data.effective = cap_t(target->cap_effective); in sys_capget()
65 if (target != current) in sys_capget()
84 struct task_struct *target; in cap_set_pg() local
88 for_each_task(target) { in cap_set_pg()
89 if (target->pgrp != pgrp) in cap_set_pg()
91 target->cap_effective = *effective; in cap_set_pg()
92 target->cap_inheritable = *inheritable; in cap_set_pg()
93 target->cap_permitted = *permitted; in cap_set_pg()
104 struct task_struct *target; in cap_set_all() local
109 for_each_task(target) { in cap_set_all()
110 if (target == current || target->pid == 1) in cap_set_all()
112 target->cap_effective = *effective; in cap_set_all()
113 target->cap_inheritable = *inheritable; in cap_set_all()
114 target->cap_permitted = *permitted; in cap_set_all()
133 struct task_struct *target; in sys_capset() local
162 target = find_task_by_pid(pid); /* identify target of query */ in sys_capset()
163 if (!target) { in sys_capset()
168 target = current; in sys_capset()
174 cap_combine(target->cap_inheritable, in sys_capset()
181 cap_combine(target->cap_permitted, in sys_capset()
204 target->cap_effective = effective; in sys_capset()
205 target->cap_inheritable = inheritable; in sys_capset()
206 target->cap_permitted = permitted; in sys_capset()
210 if (target != current) { in sys_capset()