Lines Matching refs:entry
20 * tomoyo_update_policy - Update an entry for exception policy.
25 * @check_duplicate: Callback function to find duplicated entry.
39 struct tomoyo_acl_head *entry;
44 list_for_each_entry_rcu(entry, list, list,
46 if (entry->is_deleted == TOMOYO_GC_IN_PROGRESS)
48 if (!check_duplicate(entry, new_entry))
50 entry->is_deleted = param->is_delete;
55 entry = tomoyo_commit_ok(new_entry, size);
56 if (entry) {
57 list_add_tail_rcu(&entry->list, list);
66 * tomoyo_same_acl_head - Check for duplicated "struct tomoyo_acl_info" entry.
80 * tomoyo_update_domain - Update an entry for domain policy.
85 * @check_duplicate: Callback function to find duplicated entry.
86 * @merge_duplicate: Callback function to merge duplicated entry.
104 struct tomoyo_acl_info *entry;
123 list_for_each_entry_rcu(entry, list, list,
125 if (entry->is_deleted == TOMOYO_GC_IN_PROGRESS)
127 if (!tomoyo_same_acl_head(entry, new_entry) ||
128 !check_duplicate(entry, new_entry))
131 entry->is_deleted = merge_duplicate(entry, new_entry,
134 entry->is_deleted = is_delete;
139 entry = tomoyo_commit_ok(new_entry, size);
140 if (entry) {
141 list_add_tail_rcu(&entry->list, list);
212 * tomoyo_same_transition_control - Check for duplicated "struct tomoyo_transition_control" entry.
238 * @type: Type of this entry.
375 * tomoyo_same_aggregator - Check for duplicated "struct tomoyo_aggregator" entry.
465 struct tomoyo_policy_namespace *entry;
476 entry = kzalloc(sizeof(*entry) + len + 1, GFP_NOFS);
477 if (!entry)
482 if (!ptr && tomoyo_memory_ok(entry)) {
483 char *name = (char *) (entry + 1);
485 ptr = entry;
488 entry->name = name;
489 tomoyo_init_policy_namespace(entry);
490 entry = NULL;
494 kfree(entry);
528 struct tomoyo_domain_info *entry = tomoyo_find_domain(domainname);
531 if (entry) {
540 !entry->ns->profile_ptr[entry->profile])
543 return entry;
576 entry = tomoyo_find_domain(domainname);
577 if (!entry) {
578 entry = tomoyo_commit_ok(&e, sizeof(e));
579 if (entry) {
580 INIT_LIST_HEAD(&entry->acl_info_list);
581 list_add_tail_rcu(&entry->list, &tomoyo_domain_list);
588 if (entry && transit) {
593 tomoyo_init_request_info(&r, entry,
597 entry->profile);
599 if (test_bit(i, entry->group))
605 return entry;