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()
103 * @element: Pointer to "struct list_head".
107 static inline void tomoyo_del_transition_control(struct list_head *element) in tomoyo_del_transition_control() argument
110 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
118 * @element: Pointer to "struct list_head".
122 static inline void tomoyo_del_aggregator(struct list_head *element) in tomoyo_del_aggregator() argument
125 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
133 * @element: Pointer to "struct list_head".
137 static inline void tomoyo_del_manager(struct list_head *element) in tomoyo_del_manager() argument
140 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
147 * @element: Pointer to "struct list_head".
151 static void tomoyo_del_acl(struct list_head *element) in tomoyo_del_acl() argument
154 container_of(element, typeof(*acl), list); in tomoyo_del_acl()
238 * @element: Pointer to "struct list_head".
244 static inline void tomoyo_del_domain(struct list_head *element) in tomoyo_del_domain() argument
247 container_of(element, typeof(*domain), list); in tomoyo_del_domain()
265 * @element: Pointer to "struct list_head".
269 void tomoyo_del_condition(struct list_head *element) in tomoyo_del_condition() argument
271 struct tomoyo_condition *cond = container_of(element, typeof(*cond), in tomoyo_del_condition()
304 * @element: Pointer to "struct list_head".
308 static inline void tomoyo_del_name(struct list_head *element) in tomoyo_del_name() argument
316 * @element: Pointer to "struct list_head".
320 static inline void tomoyo_del_path_group(struct list_head *element) in tomoyo_del_path_group() argument
323 container_of(element, typeof(*member), head.list); in tomoyo_del_path_group()
330 * @element: Pointer to "struct list_head".
334 static inline void tomoyo_del_group(struct list_head *element) in tomoyo_del_group() argument
337 container_of(element, typeof(*group), head.list); in tomoyo_del_group()
344 * @element: Pointer to "struct list_head".
348 static inline void tomoyo_del_address_group(struct list_head *element) in tomoyo_del_address_group() argument
356 * @element: Pointer to "struct list_head".
360 static inline void tomoyo_del_number_group(struct list_head *element) in tomoyo_del_number_group() argument
369 * @element: Pointer to "struct list_head".
376 struct list_head *element) in tomoyo_try_to_gc() argument
379 * __list_del_entry() guarantees that the list element became no longer in tomoyo_try_to_gc()
380 * reachable from the list which the element was originally on (e.g. in tomoyo_try_to_gc()
382 * list element became no longer referenced by syscall users. in tomoyo_try_to_gc()
384 __list_del_entry(element); in tomoyo_try_to_gc()
389 * element. We need to defer until both users forget this element. in tomoyo_try_to_gc()
392 * and "struct tomoyo_io_buffer"->w.domain forget this element. in tomoyo_try_to_gc()
394 if (tomoyo_struct_used_by_io_buffer(element)) in tomoyo_try_to_gc()
398 tomoyo_del_transition_control(element); in tomoyo_try_to_gc()
401 tomoyo_del_manager(element); in tomoyo_try_to_gc()
404 tomoyo_del_aggregator(element); in tomoyo_try_to_gc()
407 tomoyo_del_group(element); in tomoyo_try_to_gc()
410 tomoyo_del_path_group(element); in tomoyo_try_to_gc()
413 tomoyo_del_address_group(element); in tomoyo_try_to_gc()
416 tomoyo_del_number_group(element); in tomoyo_try_to_gc()
419 tomoyo_del_condition(element); in tomoyo_try_to_gc()
424 * forget this element. in tomoyo_try_to_gc()
427 (container_of(element, typeof(struct tomoyo_name), in tomoyo_try_to_gc()
430 tomoyo_del_name(element); in tomoyo_try_to_gc()
433 tomoyo_del_acl(element); in tomoyo_try_to_gc()
438 * element. in tomoyo_try_to_gc()
441 (element, typeof(struct tomoyo_domain_info), in tomoyo_try_to_gc()
450 tomoyo_del_domain(element); in tomoyo_try_to_gc()
451 tomoyo_memory_free(element); in tomoyo_try_to_gc()
455 * We can safely reinject this element here bacause in tomoyo_try_to_gc()
463 list_add_rcu(element, element->prev); in tomoyo_try_to_gc()