• Home
  • Raw
  • Download

Lines Matching refs:ee

615 static int tomoyo_environ(struct tomoyo_execve *ee)  in tomoyo_environ()  argument
617 struct tomoyo_request_info *r = &ee->r; in tomoyo_environ()
618 struct linux_binprm *bprm = ee->bprm; in tomoyo_environ()
629 ee->r.type = TOMOYO_MAC_ENVIRON; in tomoyo_environ()
630 ee->r.profile = r->domain->profile; in tomoyo_environ()
631 ee->r.mode = tomoyo_get_mode(r->domain->ns, ee->r.profile, in tomoyo_environ()
712 struct tomoyo_execve *ee = kzalloc(sizeof(*ee), GFP_NOFS); in tomoyo_find_next_domain() local
714 if (!ee) in tomoyo_find_next_domain()
716 ee->tmp = kzalloc(TOMOYO_EXEC_TMPSIZE, GFP_NOFS); in tomoyo_find_next_domain()
717 if (!ee->tmp) { in tomoyo_find_next_domain()
718 kfree(ee); in tomoyo_find_next_domain()
722 tomoyo_init_request_info(&ee->r, NULL, TOMOYO_MAC_FILE_EXECUTE); in tomoyo_find_next_domain()
723 ee->r.ee = ee; in tomoyo_find_next_domain()
724 ee->bprm = bprm; in tomoyo_find_next_domain()
725 ee->r.obj = &ee->obj; in tomoyo_find_next_domain()
726 ee->obj.path1 = bprm->file->f_path; in tomoyo_find_next_domain()
754 retval = tomoyo_execute_permission(&ee->r, candidate); in tomoyo_find_next_domain()
765 if (ee->r.param.path.matched_path) in tomoyo_find_next_domain()
766 candidate = ee->r.param.path.matched_path; in tomoyo_find_next_domain()
774 if (ee->transition) { in tomoyo_find_next_domain()
775 const char *domainname = ee->transition->name; in tomoyo_find_next_domain()
789 strncpy(ee->tmp, old_domain->domainname->name, in tomoyo_find_next_domain()
791 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
795 strncpy(ee->tmp, domainname, TOMOYO_EXEC_TMPSIZE - 1); in tomoyo_find_next_domain()
797 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
810 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "<%s>", in tomoyo_find_next_domain()
821 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
843 snprintf(ee->tmp, TOMOYO_EXEC_TMPSIZE - 1, "%s %s", in tomoyo_find_next_domain()
849 domain = tomoyo_assign_domain(ee->tmp, true); in tomoyo_find_next_domain()
853 pr_warn("ERROR: Domain '%s' not ready.\n", ee->tmp); in tomoyo_find_next_domain()
855 } else if (ee->r.mode == TOMOYO_CONFIG_ENFORCING) in tomoyo_find_next_domain()
861 ee->r.granted = false; in tomoyo_find_next_domain()
862 tomoyo_write_log(&ee->r, "%s", tomoyo_dif in tomoyo_find_next_domain()
864 pr_warn("ERROR: Domain '%s' not defined.\n", ee->tmp); in tomoyo_find_next_domain()
880 ee->r.domain = domain; in tomoyo_find_next_domain()
881 retval = tomoyo_environ(ee); in tomoyo_find_next_domain()
883 kfree(ee->tmp); in tomoyo_find_next_domain()
884 kfree(ee->dump.data); in tomoyo_find_next_domain()
885 kfree(ee); in tomoyo_find_next_domain()