• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/tomoyo/

Lines Matching defs:domain

2  * security/tomoyo/domain.c
15 /* The initial domain. */
62 * tomoyo_update_domain - Update an entry for domain policy.
67 * @domain: Pointer to "struct tomoyo_domain_info".
76 bool is_delete, struct tomoyo_domain_info *domain,
90 list_for_each_entry_rcu(entry, &domain->acl_info_list, list) {
104 list_add_tail_rcu(&entry->list, &domain->acl_info_list);
116 const struct tomoyo_domain_info *domain = r->domain;
119 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list) {
168 * @domainname: The name of domain. Maybe NULL.
235 * tomoyo_transition_type - Get domain transition type.
237 * @domainname: The name of domain.
241 * reinitializes domain transition, TOMOYO_TRANSITION_CONTROL_KEEP if executing
242 * @program suppresses domain transition, others otherwise.
356 * tomoyo_assign_domain - Create a domain.
358 * @domainname: The name of domain.
359 * @profile: Profile number to assign if the domain was newly created.
369 struct tomoyo_domain_info *domain = NULL;
381 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) {
382 if (domain->is_deleted ||
383 tomoyo_pathcmp(saved_domainname, domain->domainname))
394 domain = entry;
402 return found ? domain : NULL;
406 * tomoyo_find_next_domain - Find a domain.
419 struct tomoyo_domain_info *domain = NULL;
482 /* Calculate domain to transit to. */
485 /* Transit to the child of tomoyo_kernel_domain domain. */
490 /* Keep current domain. */
491 domain = old_domain;
497 * Needn't to transit from kernel domain before
498 * starting /sbin/init. But transit from kernel domain
502 domain = old_domain;
504 /* Normal domain transition. */
510 if (domain || strlen(tmp) >= TOMOYO_EXEC_TMPSIZE - 10)
512 domain = tomoyo_find_domain(tmp);
513 if (domain)
516 int error = tomoyo_supervisor(&r, "# wants to create domain\n"
523 domain = tomoyo_assign_domain(tmp, old_domain->profile);
525 if (domain)
533 if (!domain)
534 domain = old_domain;
536 atomic_inc(&domain->users);
537 bprm->cred->security = domain;