Lines Matching full:element
33 …* tomoyo_struct_used_by_io_buffer - Check whether the list element is used by /sys/kernel/security…
35 * @element: Pointer to "struct list_head".
37 * Returns true if @element is used by /sys/kernel/security/tomoyo/ users,
40 static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element) in tomoyo_struct_used_by_io_buffer() argument
50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
51 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer()
105 * @element: Pointer to "struct list_head".
109 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument
112 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
121 * @element: Pointer to "struct list_head".
125 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument
128 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
137 * @element: Pointer to "struct list_head".
141 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument
144 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
152 * @element: Pointer to "struct list_head".
156 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument
159 container_of(element, typeof(*acl), list); in tomoyo_del_acl()
245 * @element: Pointer to "struct list_head".
251 static inline void tomoyo_del_domain(struct list_head *element) in tomoyo_del_domain() argument
254 container_of(element, typeof(*domain), list); in tomoyo_del_domain()
273 * @element: Pointer to "struct list_head".
277 void tomoyo_del_condition(struct list_head *element) in tomoyo_del_condition() argument
279 struct tomoyo_condition *cond = container_of(element, typeof(*cond), in tomoyo_del_condition()
313 * @element: Pointer to "struct list_head".
317 static inline void tomoyo_del_name(struct list_head *element) in tomoyo_del_name() argument
325 * @element: Pointer to "struct list_head".
329 static inline void tomoyo_del_path_group(struct list_head *element) in tomoyo_del_path_group() argument
332 container_of(element, typeof(*member), head.list); in tomoyo_del_path_group()
340 * @element: Pointer to "struct list_head".
344 static inline void tomoyo_del_group(struct list_head *element) in tomoyo_del_group() argument
347 container_of(element, typeof(*group), head.list); in tomoyo_del_group()
355 * @element: Pointer to "struct list_head".
359 static inline void tomoyo_del_address_group(struct list_head *element) in tomoyo_del_address_group() argument
367 * @element: Pointer to "struct list_head".
371 static inline void tomoyo_del_number_group(struct list_head *element) in tomoyo_del_number_group() argument
380 * @element: Pointer to "struct list_head".
387 struct list_head *element) in tomoyo_try_to_gc() argument
390 * __list_del_entry() guarantees that the list element became no longer in tomoyo_try_to_gc()
391 * reachable from the list which the element was originally on (e.g. in tomoyo_try_to_gc()
393 * list element became no longer referenced by syscall users. in tomoyo_try_to_gc()
395 __list_del_entry(element); in tomoyo_try_to_gc()
400 * element. We need to defer until both users forget this element. in tomoyo_try_to_gc()
403 * and "struct tomoyo_io_buffer"->w.domain forget this element. in tomoyo_try_to_gc()
405 if (tomoyo_struct_used_by_io_buffer(element)) in tomoyo_try_to_gc()
409 tomoyo_del_transition_control(element); in tomoyo_try_to_gc()
412 tomoyo_del_manager(element); in tomoyo_try_to_gc()
415 tomoyo_del_aggregator(element); in tomoyo_try_to_gc()
418 tomoyo_del_group(element); in tomoyo_try_to_gc()
421 tomoyo_del_path_group(element); in tomoyo_try_to_gc()
424 tomoyo_del_address_group(element); in tomoyo_try_to_gc()
427 tomoyo_del_number_group(element); in tomoyo_try_to_gc()
430 tomoyo_del_condition(element); in tomoyo_try_to_gc()
435 * forget this element. in tomoyo_try_to_gc()
438 (container_of(element, typeof(struct tomoyo_name), in tomoyo_try_to_gc()
441 tomoyo_del_name(element); in tomoyo_try_to_gc()
444 tomoyo_del_acl(element); in tomoyo_try_to_gc()
449 * element. in tomoyo_try_to_gc()
452 (element, typeof(struct tomoyo_domain_info), in tomoyo_try_to_gc()
461 tomoyo_del_domain(element); in tomoyo_try_to_gc()
462 tomoyo_memory_free(element); in tomoyo_try_to_gc()
466 * We can safely reinject this element here because in tomoyo_try_to_gc()
474 list_add_rcu(element, element->prev); in tomoyo_try_to_gc()