Lines Matching refs:relation
117 struct ptrace_relation *relation; in yama_relation_cleanup() local
121 list_for_each_entry_rcu(relation, &ptracer_relations, node) { in yama_relation_cleanup()
122 if (relation->invalid) { in yama_relation_cleanup()
123 list_del_rcu(&relation->node); in yama_relation_cleanup()
124 kfree_rcu(relation, rcu); in yama_relation_cleanup()
144 struct ptrace_relation *relation, *added; in yama_ptracer_add() local
156 list_for_each_entry_rcu(relation, &ptracer_relations, node) { in yama_ptracer_add()
157 if (relation->invalid) in yama_ptracer_add()
159 if (relation->tracee == tracee) { in yama_ptracer_add()
160 list_replace_rcu(&relation->node, &added->node); in yama_ptracer_add()
161 kfree_rcu(relation, rcu); in yama_ptracer_add()
182 struct ptrace_relation *relation; in yama_ptracer_del() local
186 list_for_each_entry_rcu(relation, &ptracer_relations, node) { in yama_ptracer_del()
187 if (relation->invalid) in yama_ptracer_del()
189 if (relation->tracee == tracee || in yama_ptracer_del()
190 (tracer && relation->tracer == tracer)) { in yama_ptracer_del()
191 relation->invalid = true; in yama_ptracer_del()
309 struct ptrace_relation *relation; in ptracer_exception_found() local
328 list_for_each_entry_rcu(relation, &ptracer_relations, node) { in ptracer_exception_found()
329 if (relation->invalid) in ptracer_exception_found()
331 if (relation->tracee == tracee) { in ptracer_exception_found()
332 parent = relation->tracer; in ptracer_exception_found()