Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 32) sorted by relevance

12

/security/tomoyo/
A Dcommon.c235 head->r.w[len] = head->r.w[len + 1]; in tomoyo_flush()
254 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string()
287 tomoyo_set_string(head, head->read_buf + pos); in tomoyo_io_printf()
1015 memset(&head->r, 0, sizeof(head->r)); in tomoyo_select_domain()
1701 if (head->r.w_pos || head->r.eof) in tomoyo_read_pid()
1773 (head->w.ns, &head->w.ns->acl_group[group], in tomoyo_write_exception()
2350 head->r.w[head->r.w_pos++] = buf; in tomoyo_read_query()
2655 memset(&head->r, 0, sizeof(head->r)); in tomoyo_set_namespace_cursor()
2700 head->read(head); in tomoyo_read_control()
2744 return head->write(head); in tomoyo_parse_policy()
[all …]
A Dgc.c47 head->users++; in tomoyo_struct_used_by_io_buffer()
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()
55 head->users--; in tomoyo_struct_used_by_io_buffer()
81 head->users++; in tomoyo_name_used_by_io_buffer()
94 head->users--; in tomoyo_name_used_by_io_buffer()
280 head.list); in tomoyo_del_condition()
627 if (head->users) in tomoyo_gc_thread()
632 kfree(head); in tomoyo_gc_thread()
656 head->users = 1; in tomoyo_notify_gc()
[all …]
A Dgroup.c25 container_of(b, struct tomoyo_path_group, head)->member_name; in tomoyo_same_path_group()
41 &container_of(b, struct tomoyo_number_group, head) in tomoyo_same_number_group()
43 sizeof(container_of(a, struct tomoyo_number_group, head) in tomoyo_same_number_group()
59 head); in tomoyo_same_address_group()
61 head); in tomoyo_same_address_group()
90 error = tomoyo_update_policy(&e.head, sizeof(e), param, in tomoyo_write_group()
99 error = tomoyo_update_policy(&e.head, sizeof(e), param, in tomoyo_write_group()
111 error = tomoyo_update_policy(&e.head, sizeof(e), param, in tomoyo_write_group()
138 if (member->head.is_deleted) in tomoyo_path_matches_group()
167 if (member->head.is_deleted) in tomoyo_number_matches_group()
[all …]
A Dmemory.c112 list_for_each_entry(group, list, head.list) { in tomoyo_get_group()
116 atomic_inc(&group->head.users); in tomoyo_get_group()
125 atomic_set(&entry->head.users, 1); in tomoyo_get_group()
126 list_add_tail_rcu(&entry->head.list, list); in tomoyo_get_group()
157 struct list_head *head; in tomoyo_get_name() local
163 head = &tomoyo_name_list[hash_long(hash, TOMOYO_HASH_BITS)]; in tomoyo_get_name()
166 list_for_each_entry(ptr, head, head.list) { in tomoyo_get_name()
168 atomic_read(&ptr->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_get_name()
170 atomic_inc(&ptr->head.users); in tomoyo_get_name()
177 atomic_set(&ptr->head.users, 1); in tomoyo_get_name()
[all …]
A Dcommon.h514 struct tomoyo_shared_acl_head head; member
542 struct tomoyo_shared_acl_head head; member
549 struct tomoyo_acl_head head; member
555 struct tomoyo_acl_head head; member
561 struct tomoyo_acl_head head; member
850 struct tomoyo_acl_head head; member
860 struct tomoyo_acl_head head; member
867 struct tomoyo_acl_head head; member
1180 atomic_dec(&ptr->head.users); in tomoyo_put_name()
1194 atomic_dec(&cond->head.users); in tomoyo_put_condition()
[all …]
A Dfile.c256 head); in tomoyo_check_path_acl()
279 container_of(ptr, typeof(*acl), head); in tomoyo_check_path_number_acl()
300 container_of(ptr, typeof(*acl), head); in tomoyo_check_path2_acl()
320 container_of(ptr, typeof(*acl), head); in tomoyo_check_mkdev_acl()
390 .head.type = TOMOYO_TYPE_PATH_ACL, in tomoyo_update_path_acl()
439 head)->perm; in tomoyo_merge_mkdev_acl()
466 .head.type = TOMOYO_TYPE_MKDEV_ACL, in tomoyo_update_mkdev_acl()
545 .head.type = TOMOYO_TYPE_PATH2_ACL, in tomoyo_update_path2_acl()
635 head); in tomoyo_same_path_number_acl()
637 head); in tomoyo_same_path_number_acl()
[all …]
A Denviron.c22 container_of(ptr, typeof(*acl), head); in tomoyo_check_env_acl()
79 const struct tomoyo_env_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_env_acl()
80 const struct tomoyo_env_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_env_acl()
96 struct tomoyo_env_acl e = { .head.type = TOMOYO_TYPE_ENV_ACL }; in tomoyo_write_env()
105 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_write_env()
A Dnetwork.c195 const struct tomoyo_inet_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_inet_acl()
196 const struct tomoyo_inet_acl *p2 = container_of(b, typeof(*p2), head); in tomoyo_same_inet_acl()
214 const struct tomoyo_unix_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_unix_acl()
235 &container_of(a, struct tomoyo_inet_acl, head)->perm; in tomoyo_merge_inet_acl()
261 &container_of(a, struct tomoyo_unix_acl, head)->perm; in tomoyo_merge_unix_acl()
284 struct tomoyo_inet_acl e = { .head.type = TOMOYO_TYPE_INET_ACL }; in tomoyo_write_inet_network()
311 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_write_inet_network()
329 struct tomoyo_unix_acl e = { .head.type = TOMOYO_TYPE_UNIX_ACL }; in tomoyo_write_unix_network()
345 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_write_unix_network()
423 container_of(ptr, typeof(*acl), head); in tomoyo_check_inet_acl()
[all …]
A Daudit.c440 void tomoyo_read_log(struct tomoyo_io_buffer *head) in tomoyo_read_log() argument
444 if (head->r.w_pos) in tomoyo_read_log()
446 kfree(head->read_buf); in tomoyo_read_log()
447 head->read_buf = NULL; in tomoyo_read_log()
457 head->read_buf = ptr->log; in tomoyo_read_log()
458 head->r.w[head->r.w_pos++] = head->read_buf; in tomoyo_read_log()
A Ddomain.c117 container_of(new_entry, struct tomoyo_path_acl, head) in tomoyo_update_domain()
224 head); in tomoyo_same_transition_control()
227 head); in tomoyo_same_transition_control()
276 error = tomoyo_update_policy(&e.head, sizeof(e), param, in tomoyo_write_transition_control()
304 list_for_each_entry_rcu(ptr, list, head.list, in tomoyo_scan_transition()
306 if (ptr->head.is_deleted || ptr->type != type) in tomoyo_scan_transition()
386 head); in tomoyo_same_aggregator()
388 head); in tomoyo_same_aggregator()
419 error = tomoyo_update_policy(&e.head, sizeof(e), param, in tomoyo_write_aggregator()
750 list_for_each_entry_rcu(ptr, list, head.list, in tomoyo_find_next_domain()
[all …]
A Dutil.c1069 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1072 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1075 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head) in tomoyo_domain_quota_is_ok()
1079 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1082 perm = data_race(container_of(ptr, struct tomoyo_inet_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1085 perm = data_race(container_of(ptr, struct tomoyo_unix_acl, head)->perm); in tomoyo_domain_quota_is_ok()
A Dcondition.c418 list_for_each_entry(ptr, &tomoyo_condition_list, head.list) { in tomoyo_commit_condition()
420 atomic_read(&ptr->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_commit_condition()
423 atomic_inc(&ptr->head.users); in tomoyo_commit_condition()
429 atomic_set(&entry->head.users, 1); in tomoyo_commit_condition()
430 list_add(&entry->head.list, &tomoyo_condition_list); in tomoyo_commit_condition()
439 tomoyo_del_condition(&entry->head.list); in tomoyo_commit_condition()
698 tomoyo_del_condition(&entry->head.list); in tomoyo_get_condition()
A Dsecurityfs_if.c23 head); in tomoyo_check_task_acl()
A Dmount.c51 container_of(ptr, typeof(*acl), head); in tomoyo_check_mount_acl()
/security/apparmor/include/
A Dpolicy_ns.h139 static inline struct aa_ns *__aa_findn_ns(struct list_head *head, in __aa_findn_ns() argument
142 return (struct aa_ns *)__policy_strn_find(head, name, n); in __aa_findn_ns()
145 static inline struct aa_ns *__aa_find_ns(struct list_head *head, in __aa_find_ns() argument
148 return __aa_findn_ns(head, name, strlen(name)); in __aa_find_ns()
A Dlib.h198 static inline struct aa_policy *__policy_find(struct list_head *head, in __policy_find() argument
203 list_for_each_entry_rcu(policy, head, list) { in __policy_find()
223 static inline struct aa_policy *__policy_strn_find(struct list_head *head, in __policy_strn_find() argument
228 list_for_each_entry_rcu(policy, head, list) { in __policy_strn_find()
A Dpolicy.h154 struct rhash_head head; member
287 void __aa_profile_list_release(struct list_head *head);
/security/selinux/ss/
A Dmls.c34 int i, l, len, head, prev; in mls_compute_context_len() local
48 head = -2; in mls_compute_context_len()
55 if (head != prev) { in mls_compute_context_len()
61 head = i; in mls_compute_context_len()
65 if (prev != head) { in mls_compute_context_len()
90 int i, l, head, prev; in mls_sid_to_context() local
108 head = -2; in mls_sid_to_context()
115 if (prev != head) { in mls_sid_to_context()
131 head = i; in mls_sid_to_context()
136 if (prev != head) { in mls_sid_to_context()
[all …]
A Dpolicydb.h208 struct ocontext *head; member
/security/selinux/
A Davc.c147 struct hlist_head *head; in avc_get_hash_stats() local
154 head = &selinux_avc.avc_cache.slots[i]; in avc_get_hash_stats()
155 if (!hlist_empty(head)) { in avc_get_hash_stats()
464 struct hlist_head *head; in avc_reclaim_node() local
525 struct hlist_head *head; in avc_search_node() local
613 struct hlist_head *head; in avc_insert() local
632 hlist_for_each_entry(pos, head, list) { in avc_insert()
640 hlist_add_head_rcu(&node->list, head); in avc_insert()
838 struct hlist_head *head; in avc_update_node() local
855 hlist_for_each_entry(pos, head, list) { in avc_update_node()
[all …]
/security/smack/
A Dsmack_access.c413 struct hlist_head *head; in smk_insert_entry() local
416 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; in smk_insert_entry()
418 hlist_add_head_rcu(&skp->smk_hashed, head); in smk_insert_entry()
432 struct hlist_head *head; in smk_find_entry() local
436 head = &smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]; in smk_find_entry()
438 hlist_for_each_entry_rcu(skp, head, smk_hashed) in smk_find_entry()
/security/apparmor/
A Dpolicy_ns.c298 static void __ns_list_release(struct list_head *head);
348 static void __ns_list_release(struct list_head *head) in __ns_list_release() argument
352 list_for_each_entry_safe(ns, tmp, head, base.list) in __ns_list_release()
A Dpolicy.c211 void __aa_profile_list_release(struct list_head *head) in __aa_profile_list_release() argument
214 list_for_each_entry_safe(profile, tmp, head, base.list) in __aa_profile_list_release()
423 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child() argument
426 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
438 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child() argument
440 return __strn_find_child(head, name, strlen(name)); in __find_child()
A Ddomain.c390 struct aa_ns *ns, struct list_head *head, in find_attach() argument
398 AA_BUG(!head); in find_attach()
402 list_for_each_entry_rcu(profile, head, base.list) { in find_attach()
/security/keys/
A Duser_defined.c89 static void user_free_payload_rcu(struct rcu_head *head) in user_free_payload_rcu() argument
93 payload = container_of(head, struct user_key_payload, rcu); in user_free_payload_rcu()

Completed in 56 milliseconds

12