/security/tomoyo/ |
D | util.c | 599 struct tomoyo_domain_info *domain; in tomoyo_find_domain() local 604 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { in tomoyo_find_domain() 605 if (!domain->is_deleted && in tomoyo_find_domain() 606 !tomoyo_pathcmp(&name, domain->domainname)) in tomoyo_find_domain() 607 return domain; in tomoyo_find_domain() 1000 struct tomoyo_domain_info *domain, const u8 index) in tomoyo_init_request_info() argument 1004 if (!domain) in tomoyo_init_request_info() 1005 domain = tomoyo_domain(); in tomoyo_init_request_info() 1006 r->domain = domain; in tomoyo_init_request_info() 1007 profile = domain->profile; in tomoyo_init_request_info() [all …]
|
D | common.c | 974 struct tomoyo_domain_info *domain = NULL; in tomoyo_select_domain() local 988 domain = tomoyo_real_domain(p); in tomoyo_select_domain() 992 domain = tomoyo_find_domain(data + 7); in tomoyo_select_domain() 994 domain = tomoyo_find_domain_by_qid(pid); in tomoyo_select_domain() 997 head->w.domain = domain; in tomoyo_select_domain() 1003 if (domain) in tomoyo_select_domain() 1004 head->r.domain = &domain->list; in tomoyo_select_domain() 1008 if (domain && domain->is_deleted) in tomoyo_select_domain() 1066 struct tomoyo_domain_info *domain; in tomoyo_delete_domain() local 1074 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { in tomoyo_delete_domain() [all …]
|
D | domain.c | 160 const struct tomoyo_domain_info *domain = r->domain; in tomoyo_check_acl() local 163 const struct list_head *list = &domain->acl_info_list; in tomoyo_check_acl() 179 list = &domain->ns->acl_group[domain->group]; in tomoyo_check_acl() 545 const struct tomoyo_domain_info *domain = tomoyo_domain(); in tomoyo_assign_domain() local 546 e.profile = domain->profile; in tomoyo_assign_domain() 547 e.group = domain->group; in tomoyo_assign_domain() 603 ee->r.profile = r->domain->profile; in tomoyo_environ() 604 ee->r.mode = tomoyo_get_mode(r->domain->ns, ee->r.profile, in tomoyo_environ() 679 struct tomoyo_domain_info *domain = NULL; in tomoyo_find_next_domain() local 796 domain = old_domain; in tomoyo_find_next_domain() [all …]
|
D | tomoyo.c | 36 struct tomoyo_domain_info *domain = old->security; in tomoyo_cred_prepare() local 37 new->security = domain; in tomoyo_cred_prepare() 38 if (domain) in tomoyo_cred_prepare() 39 atomic_inc(&domain->users); in tomoyo_cred_prepare() 61 struct tomoyo_domain_info *domain = cred->security; in tomoyo_cred_free() local 62 if (domain) in tomoyo_cred_free() 63 atomic_dec(&domain->users); in tomoyo_cred_free() 120 struct tomoyo_domain_info *domain = bprm->cred->security; in tomoyo_bprm_check_security() local 126 if (!domain) { in tomoyo_bprm_check_security() 135 return tomoyo_check_open_permission(domain, &bprm->file->f_path, in tomoyo_bprm_check_security()
|
D | gc.c | 49 if (head->r.domain == element || head->r.group == element || in tomoyo_struct_used_by_io_buffer() 50 head->r.acl == element || &head->w.domain->list == element) in tomoyo_struct_used_by_io_buffer() 245 struct tomoyo_domain_info *domain = in tomoyo_del_domain() local 246 container_of(element, typeof(*domain), list); in tomoyo_del_domain() 254 list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { in tomoyo_del_domain() 258 tomoyo_put_name(domain->domainname); in tomoyo_del_domain() 517 struct tomoyo_domain_info *domain; in tomoyo_collect_entry() local 519 list_for_each_entry_safe(domain, tmp, &tomoyo_domain_list, in tomoyo_collect_entry() 521 tomoyo_collect_acl(&domain->acl_info_list); in tomoyo_collect_entry() 522 if (!domain->is_deleted || atomic_read(&domain->users)) in tomoyo_collect_entry() [all …]
|
D | securityfs_if.c | 108 const char *domain = tomoyo_domain()->domainname->name; in tomoyo_read_self() local 109 loff_t len = strlen(domain); in tomoyo_read_self() 116 if (copy_to_user(buf, domain + pos, len)) in tomoyo_read_self()
|
D | common.h | 427 struct tomoyo_domain_info *domain; member 798 struct list_head *domain; member 819 struct tomoyo_domain_info *domain; member 959 int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, 969 struct tomoyo_domain_info *domain, 1029 unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain,
|
D | Makefile | 1 obj-y = audit.o common.o condition.o domain.o environ.o file.o gc.o group.o load_policy.o memory.o …
|
D | file.c | 564 r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); in tomoyo_path_permission() 596 r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); in tomoyo_execute_permission() 735 int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, in tomoyo_check_open_permission() argument 751 tomoyo_init_request_info(&r, domain, TOMOYO_MAC_FILE_OPEN) in tomoyo_check_open_permission()
|
D | audit.c | 250 const char *domainname = r->domain->domainname->name; in tomoyo_init_log() 364 if (!tomoyo_get_audit(r->domain->ns, r->profile, r->type, in tomoyo_write_log2()
|
/security/apparmor/ |
D | domain.c | 37 void aa_free_domain_entries(struct aa_domain *domain) in aa_free_domain_entries() argument 40 if (domain) { in aa_free_domain_entries() 41 if (!domain->table) in aa_free_domain_entries() 44 for (i = 0; i < domain->size; i++) in aa_free_domain_entries() 45 kzfree(domain->table[i]); in aa_free_domain_entries() 46 kzfree(domain->table); in aa_free_domain_entries() 47 domain->table = NULL; in aa_free_domain_entries()
|
D | Makefile | 6 path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
|
/security/apparmor/include/ |
D | domain.h | 31 void aa_free_domain_entries(struct aa_domain *domain);
|
/security/selinux/include/ |
D | security.h | 182 int security_node_sid(u16 domain, void *addr, u32 addrlen,
|
/security/smack/ |
D | smack_access.c | 529 skp->smk_netlabel.domain = skp->smk_known; in smk_import_entry()
|
D | smackfs.c | 2430 skp->smk_netlabel.domain = skp->smk_known; in smk_preset_netlabel()
|
/security/selinux/ss/ |
D | services.c | 2270 int security_node_sid(u16 domain, in security_node_sid() argument 2280 switch (domain) { in security_node_sid() 3412 secattr->domain = kstrdup(sym_name(&policydb, SYM_TYPES, ctx->type - 1), in security_netlbl_sid_to_secattr() 3414 if (secattr->domain == NULL) in security_netlbl_sid_to_secattr()
|