• Home
  • Raw
  • Download

Lines Matching refs:profile

485 (struct tomoyo_policy_namespace *ns, const unsigned int profile)  in tomoyo_assign_profile()  argument
489 if (profile >= TOMOYO_MAX_PROFILES) in tomoyo_assign_profile()
491 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile()
497 ptr = ns->profile_ptr[profile]; in tomoyo_assign_profile()
510 ns->profile_ptr[profile] = ptr; in tomoyo_assign_profile()
528 const u8 profile) in tomoyo_profile() argument
531 struct tomoyo_profile *ptr = ns->profile_ptr[profile]; in tomoyo_profile()
585 struct tomoyo_profile *profile) in tomoyo_set_mode() argument
591 config = profile->default_config; in tomoyo_set_mode()
608 config = profile->config[i]; in tomoyo_set_mode()
647 profile->config[i] = config; in tomoyo_set_mode()
649 profile->default_config = config; in tomoyo_set_mode()
665 struct tomoyo_profile *profile; in tomoyo_write_profile() local
673 profile = tomoyo_assign_profile(head->w.ns, i); in tomoyo_write_profile()
674 if (!profile) in tomoyo_write_profile()
688 old_comment = profile->comment; in tomoyo_write_profile()
689 profile->comment = new_comment; in tomoyo_write_profile()
696 tomoyo_set_uint(&profile->pref[i], cp, in tomoyo_write_profile()
700 return tomoyo_set_mode(data, cp, profile); in tomoyo_write_profile()
733 const struct tomoyo_profile *profile; in tomoyo_read_profile() local
738 profile = ns->profile_ptr[index]; in tomoyo_read_profile()
761 profile->comment; in tomoyo_read_profile()
771 profile->pref[i]); in tomoyo_read_profile()
780 tomoyo_print_config(head, profile->default_config); in tomoyo_read_profile()
789 const u8 config = profile->config[i]; in tomoyo_read_profile()
1165 unsigned int profile; in tomoyo_write_domain() local
1181 if (sscanf(data, "use_profile %u", &profile) == 1 in tomoyo_write_domain()
1182 && profile < TOMOYO_MAX_PROFILES) { in tomoyo_write_domain()
1183 if (!tomoyo_policy_loaded || ns->profile_ptr[profile]) in tomoyo_write_domain()
1184 domain->profile = (u8) profile; in tomoyo_write_domain()
1187 if (sscanf(data, "use_group %u\n", &profile) == 1 in tomoyo_write_domain()
1188 && profile < TOMOYO_MAX_ACL_GROUPS) { in tomoyo_write_domain()
1190 domain->group = (u8) profile; in tomoyo_write_domain()
1193 for (profile = 0; profile < TOMOYO_MAX_DOMAIN_INFO_FLAGS; profile++) { in tomoyo_write_domain()
1194 const char *cp = tomoyo_dif[profile]; in tomoyo_write_domain()
1197 domain->flags[profile] = !is_delete; in tomoyo_write_domain()
1607 domain->profile); in tomoyo_read_domain()
1685 tomoyo_io_printf(head, "%u %u ", pid, domain->profile); in tomoyo_read_pid()
2722 const u8 profile = domain->profile; in tomoyo_check_profile() local
2728 else if (!ns->profile_ptr[profile]) in tomoyo_check_profile()
2731 profile, domain->domainname->name); in tomoyo_check_profile()