Lines Matching defs:profile
22 /* String table for /sys/kernel/security/tomoyo/profile */
475 * tomoyo_assign_profile - Create a new profile.
478 * @profile: Profile number to create.
483 (struct tomoyo_policy_namespace *ns, const unsigned int profile)
488 if (profile >= TOMOYO_MAX_PROFILES)
490 ptr = ns->profile_ptr[profile];
496 ptr = ns->profile_ptr[profile];
509 ns->profile_ptr[profile] = ptr;
519 * tomoyo_profile - Find a profile.
522 * @profile: Profile number to find.
527 const u8 profile)
530 struct tomoyo_profile *ptr = ns->profile_ptr[profile];
578 * tomoyo_set_mode - Set mode for specified profile.
582 * @profile: Pointer to "struct tomoyo_profile".
587 struct tomoyo_profile *profile)
594 config = profile->default_config;
613 config = profile->config[i];
653 profile->config[i] = config;
655 profile->default_config = config;
660 * tomoyo_write_profile - Write profile table.
671 struct tomoyo_profile *profile;
680 profile = tomoyo_assign_profile(head->w.ns, i);
681 if (!profile)
696 old_comment = profile->comment;
697 profile->comment = new_comment;
704 tomoyo_set_uint(&profile->pref[i], cp,
708 return tomoyo_set_mode(data, cp, profile);
730 * tomoyo_read_profile - Read profile table.
741 const struct tomoyo_profile *profile;
747 profile = ns->profile_ptr[index];
770 profile->comment;
781 profile->pref[i]);
790 tomoyo_print_config(head, profile->default_config);
799 const u8 config = profile->config[i];
1193 domain->profile = (u8) idx;
1628 domain->profile);
1718 tomoyo_io_printf(head, "%u %u ", pid, domain->profile);
2447 /* /sys/kernel/security/tomoyo/profile */
2773 const u8 profile = domain->profile;
2777 pr_info_once("Converting profile version from %u to %u.\n",
2784 else if (!ns->profile_ptr[profile])
2786 profile, domain->domainname->name);