Lines Matching defs:profile
21 /* String table for /sys/kernel/security/tomoyo/profile */
483 * tomoyo_assign_profile - Create a new profile.
486 * @profile: Profile number to create.
491 (struct tomoyo_policy_namespace *ns, const unsigned int profile)
496 if (profile >= TOMOYO_MAX_PROFILES)
498 ptr = ns->profile_ptr[profile];
504 ptr = ns->profile_ptr[profile];
517 ns->profile_ptr[profile] = ptr;
527 * tomoyo_profile - Find a profile.
530 * @profile: Profile number to find.
535 const u8 profile)
538 struct tomoyo_profile *ptr = ns->profile_ptr[profile];
586 * tomoyo_set_mode - Set mode for specified profile.
590 * @profile: Pointer to "struct tomoyo_profile".
595 struct tomoyo_profile *profile)
602 config = profile->default_config;
621 config = profile->config[i];
661 profile->config[i] = config;
663 profile->default_config = config;
668 * tomoyo_write_profile - Write profile table.
679 struct tomoyo_profile *profile;
688 profile = tomoyo_assign_profile(head->w.ns, i);
689 if (!profile)
704 old_comment = profile->comment;
705 profile->comment = new_comment;
712 tomoyo_set_uint(&profile->pref[i], cp,
716 return tomoyo_set_mode(data, cp, profile);
738 * tomoyo_read_profile - Read profile table.
749 const struct tomoyo_profile *profile;
755 profile = ns->profile_ptr[index];
778 profile->comment;
789 profile->pref[i]);
798 tomoyo_print_config(head, profile->default_config);
807 const u8 config = profile->config[i];
1201 domain->profile = (u8) idx;
1636 domain->profile);
1726 tomoyo_io_printf(head, "%u %u ", pid, domain->profile);
2455 /* /sys/kernel/security/tomoyo/profile */
2780 const u8 profile = domain->profile;
2784 pr_info_once("Converting profile version from %u to %u.\n",
2791 else if (!ns->profile_ptr[profile])
2793 profile, domain->domainname->name);