Home
last modified time | relevance | path

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

/security/tomoyo/
Dgroup.c73 struct tomoyo_group *group = tomoyo_get_group(param, type); in tomoyo_write_group() local
75 if (!group) in tomoyo_write_group()
77 param->list = &group->member_list; in tomoyo_write_group()
109 tomoyo_put_group(group); in tomoyo_write_group()
126 const struct tomoyo_group *group) in tomoyo_path_matches_group() argument
129 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_path_matches_group()
152 const struct tomoyo_group *group) in tomoyo_number_matches_group() argument
156 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_number_matches_group()
180 const struct tomoyo_group *group) in tomoyo_address_matches_group() argument
186 list_for_each_entry_rcu(member, &group->member_list, head.list) { in tomoyo_address_matches_group()
Dmemory.c96 struct tomoyo_group *group = NULL; in tomoyo_get_group() local
108 list_for_each_entry(group, list, head.list) { in tomoyo_get_group()
109 if (e.group_name != group->group_name || in tomoyo_get_group()
110 atomic_read(&group->head.users) == TOMOYO_GC_IN_PROGRESS) in tomoyo_get_group()
112 atomic_inc(&group->head.users); in tomoyo_get_group()
122 group = entry; in tomoyo_get_group()
129 return found ? group : NULL; in tomoyo_get_group()
Dgc.c49 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer()
212 tomoyo_put_group(entry->address.group); in tomoyo_del_acl()
335 struct tomoyo_group *group = in tomoyo_del_group() local
336 container_of(element, typeof(*group), head.list); in tomoyo_del_group()
337 tomoyo_put_name(group->group_name); in tomoyo_del_group()
547 struct tomoyo_group *group; in tomoyo_collect_entry() local
560 list_for_each_entry_safe(group, tmp, list, head.list) { in tomoyo_collect_entry()
561 tomoyo_collect_member(id, &group->member_list); in tomoyo_collect_entry()
562 if (!list_empty(&group->member_list) || in tomoyo_collect_entry()
563 atomic_read(&group->head.users) > 0) in tomoyo_collect_entry()
[all …]
Dcommon.h518 struct tomoyo_group *group; member
524 struct tomoyo_group *group; /* Maybe NULL. */ member
532 struct tomoyo_group *group; /* Pointer to address group. */ member
684 u8 group; /* Group number to use. */ member
799 struct list_head *group; member
917 const struct tomoyo_group *group);
932 const struct tomoyo_group *group);
958 (const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
1192 static inline void tomoyo_put_group(struct tomoyo_group *group) in tomoyo_put_group() argument
1194 if (group) in tomoyo_put_group()
[all …]
Dcommon.c385 if (ptr->group) { in tomoyo_print_name_union()
387 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_name_union()
404 if (ptr->group) { in tomoyo_print_name_union_quoted()
406 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_name_union_quoted()
425 if (ptr->group) { in tomoyo_print_number_union_nospace()
427 tomoyo_set_string(head, ptr->group->group_name->name); in tomoyo_print_number_union_nospace()
1178 domain->group = (u8) profile; in tomoyo_write_domain()
1486 if (ptr->address.group) { in tomoyo_print_entry()
1488 tomoyo_set_string(head, ptr->address.group->group_name in tomoyo_print_entry()
1597 domain->group); in tomoyo_read_domain()
[all …]
Dnetwork.c299 e.address.group = in tomoyo_write_inet_network()
301 if (!e.address.group) in tomoyo_write_inet_network()
314 tomoyo_put_group(e.address.group); in tomoyo_write_inet_network()
429 if (acl->address.group) in tomoyo_check_inet_acl()
432 r->param.inet_network.address, acl->address.group); in tomoyo_check_inet_acl()
Dfile.c68 tomoyo_put_group(ptr->group); in tomoyo_put_name_union()
84 if (ptr->group) in tomoyo_compare_name_union()
85 return tomoyo_path_matches_group(name, ptr->group); in tomoyo_compare_name_union()
100 tomoyo_put_group(ptr->group); in tomoyo_put_number_union()
114 if (ptr->group) in tomoyo_compare_number_union()
115 return tomoyo_number_matches_group(value, value, ptr->group); in tomoyo_compare_number_union()
Dutil.c263 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); in tomoyo_parse_name_union()
264 return ptr->group != NULL; in tomoyo_parse_name_union()
290 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP); in tomoyo_parse_number_union()
291 return ptr->group != NULL; in tomoyo_parse_number_union()
Ddomain.c179 list = &domain->ns->acl_group[domain->group]; in tomoyo_check_acl()
547 e.group = domain->group; in tomoyo_assign_domain()
574 tomoyo_write_log(&r, "use_group %u\n", entry->group); in tomoyo_assign_domain()
DMakefile1 obj-y = audit.o common.o condition.o domain.o environ.o file.o gc.o group.o load_policy.o memory.o …
Dcondition.c1044 if (ptr->group) { in tomoyo_condition()
1047 ptr->group) in tomoyo_condition()
/security/keys/
Dkeyctl.c780 long keyctl_chown_key(key_serial_t id, uid_t user, gid_t group) in keyctl_chown_key() argument
790 gid = make_kgid(current_user_ns(), group); in keyctl_chown_key()
794 if ((group != (gid_t) -1) && !gid_valid(gid)) in keyctl_chown_key()
798 if (user == (uid_t) -1 && group == (gid_t) -1) in keyctl_chown_key()
821 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key()
870 if (group != (gid_t) -1) in keyctl_chown_key()