Home
last modified time | relevance | path

Searched refs:group (Results 1 – 12 of 12) sorted by relevance

/security/tomoyo/
Dgroup.c76 struct tomoyo_group *group = tomoyo_get_group(param, type); in tomoyo_write_group() local
79 if (!group) in tomoyo_write_group()
81 param->list = &group->member_list; in tomoyo_write_group()
115 tomoyo_put_group(group); in tomoyo_write_group()
132 const struct tomoyo_group *group) in tomoyo_path_matches_group() argument
136 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_path_matches_group()
160 const struct tomoyo_group *group) in tomoyo_number_matches_group() argument
165 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_number_matches_group()
190 const struct tomoyo_group *group) in tomoyo_address_matches_group() argument
196 list_for_each_entry_rcu(member, &group->member_list, head.list, in tomoyo_address_matches_group()
Dmemory.c99 struct tomoyo_group *group = NULL; in tomoyo_get_group() local
112 list_for_each_entry(group, list, head.list) { in tomoyo_get_group()
113 if (e.group_name != group->group_name || in tomoyo_get_group()
114 atomic_read(&group->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_get_group()
116 atomic_inc(&group->head.users); in tomoyo_get_group()
127 group = entry; in tomoyo_get_group()
134 return found ? group : NULL; in tomoyo_get_group()
Dgc.c50 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
219 tomoyo_put_group(entry->address.group); in tomoyo_del_acl()
346 struct tomoyo_group *group = in tomoyo_del_group() local
347 container_of(element, typeof(*group), head.list); in tomoyo_del_group()
349 tomoyo_put_name(group->group_name); in tomoyo_del_group()
564 struct tomoyo_group *group; in tomoyo_collect_entry() local
578 list_for_each_entry_safe(group, tmp, list, head.list) { in tomoyo_collect_entry()
579 tomoyo_collect_member(id, &group->member_list); in tomoyo_collect_entry()
580 if (!list_empty(&group->member_list) || in tomoyo_collect_entry()
581 atomic_read(&group->head.users) > 0) in tomoyo_collect_entry()
[all …]
Dcommon.h522 struct tomoyo_group *group; member
528 struct tomoyo_group *group; /* Maybe NULL. */ member
536 struct tomoyo_group *group; /* Pointer to address group. */ member
688 unsigned long group[TOMOYO_MAX_ACL_GROUPS / BITS_PER_LONG]; member
804 struct list_head *group; member
928 const struct tomoyo_group *group);
943 const struct tomoyo_group *group);
969 (const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
1207 static inline void tomoyo_put_group(struct tomoyo_group *group) in tomoyo_put_group() argument
1209 if (group) in tomoyo_put_group()
[all …]
Dcommon.c390 if (ptr->group) { in tomoyo_print_name_union()
392 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_name_union()
409 if (ptr->group) { in tomoyo_print_name_union_quoted()
411 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_name_union_quoted()
430 if (ptr->group) { in tomoyo_print_number_union_nospace()
432 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_number_union_nospace()
1207 set_bit(idx, domain->group); in tomoyo_write_domain()
1209 clear_bit(idx, domain->group); in tomoyo_write_domain()
1523 if (ptr->address.group) { in tomoyo_print_entry()
1525 tomoyo_set_string(head, ptr->address.group->group_name in tomoyo_print_entry()
[all …]
Dnetwork.c300 e.address.group = in tomoyo_write_inet_network()
302 if (!e.address.group) in tomoyo_write_inet_network()
315 tomoyo_put_group(e.address.group); in tomoyo_write_inet_network()
430 if (acl->address.group) in tomoyo_check_inet_acl()
433 r->param.inet_network.address, acl->address.group); in tomoyo_check_inet_acl()
Dfile.c69 tomoyo_put_group(ptr->group); in tomoyo_put_name_union()
85 if (ptr->group) in tomoyo_compare_name_union()
86 return tomoyo_path_matches_group(name, ptr->group); in tomoyo_compare_name_union()
101 tomoyo_put_group(ptr->group); in tomoyo_put_number_union()
115 if (ptr->group) in tomoyo_compare_number_union()
116 return tomoyo_number_matches_group(value, value, ptr->group); in tomoyo_compare_number_union()
Ddomain.c184 if (!test_bit(i, domain->group)) in tomoyo_check_acl()
569 memcpy(e.group, domain->group, sizeof(e.group)); in tomoyo_assign_domain()
599 if (test_bit(i, entry->group)) in tomoyo_assign_domain()
DMakefile2 obj-y = audit.o common.o condition.o domain.o environ.o file.o gc.o group.o load_policy.o memory.o …
Dutil.c254 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); in tomoyo_parse_name_union()
255 return ptr->group != NULL; in tomoyo_parse_name_union()
282 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP); in tomoyo_parse_number_union()
283 return ptr->group != NULL; in tomoyo_parse_number_union()
Dcondition.c1072 if (ptr->group) { in tomoyo_condition()
1075 ptr->group) in tomoyo_condition()
/security/keys/
Dkeyctl.c949 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() argument
959 gid = make_kgid(current_user_ns(), group); in keyctl_chown_key()
963 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key()
967 if (user == (uid_t) -1 && group == (gid_t) -1) in keyctl_chown_key()
992 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key()
1044 if (group != (gid_t) -1) in keyctl_chown_key()