Lines Matching refs:profile

483 (struct tomoyo_policy_namespace *ns, const unsigned int profile)  in tomoyo_assign_profile()  argument
488 if (profile >= TOMOYO_MAX_PROFILES) in tomoyo_assign_profile()
490 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile()
496 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile()
509 ns->profile_ptr[profile] = ptr; in tomoyo_assign_profile()
527 const u8 profile) in tomoyo_profile() argument
530 struct tomoyo_profile *ptr = ns->profile_ptr[profile]; in tomoyo_profile()
587 struct tomoyo_profile *profile) in tomoyo_set_mode() argument
594 config = profile->default_config; in tomoyo_set_mode()
613 config = profile->config[i]; in tomoyo_set_mode()
653 profile->config[i] = config; in tomoyo_set_mode()
655 profile->default_config = config; in tomoyo_set_mode()
671 struct tomoyo_profile *profile; in tomoyo_write_profile() local
680 profile = tomoyo_assign_profile(head->w.ns, i); in tomoyo_write_profile()
681 if (!profile) in tomoyo_write_profile()
696 old_comment = profile->comment; in tomoyo_write_profile()
697 profile->comment = new_comment; in tomoyo_write_profile()
704 tomoyo_set_uint(&profile->pref[i], cp, in tomoyo_write_profile()
708 return tomoyo_set_mode(data, cp, profile); in tomoyo_write_profile()
741 const struct tomoyo_profile *profile; in tomoyo_read_profile() local
747 profile = ns->profile_ptr[index]; in tomoyo_read_profile()
770 profile->comment; in tomoyo_read_profile()
781 profile->pref[i]); in tomoyo_read_profile()
790 tomoyo_print_config(head, profile->default_config); in tomoyo_read_profile()
799 const u8 config = profile->config[i]; in tomoyo_read_profile()
1193 domain->profile = (u8) idx; in tomoyo_write_domain()
1628 domain->profile); in tomoyo_read_domain()
1718 tomoyo_io_printf(head, "%u %u ", pid, domain->profile); in tomoyo_read_pid()
2882 const u8 profile = domain->profile; in tomoyo_check_profile() local
2893 else if (!ns->profile_ptr[profile]) in tomoyo_check_profile()
2895 profile, domain->domainname->name); in tomoyo_check_profile()