Lines Matching refs:name

424 					    const char *name, int len)  in __strn_find_child()  argument
426 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
438 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child() argument
440 return __strn_find_child(head, name, strlen(name)); in __find_child()
450 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child() argument
456 profile = __find_child(&parent->base.profiles, name); in aa_find_child()
529 const char *name = kstrndup(hname, split - hname, in __create_missing_ancestors() local
531 if (!name) in __create_missing_ancestors()
533 profile = aa_alloc_null(parent, name, gfp); in __create_missing_ancestors()
534 kfree(name); in __create_missing_ancestors()
622 const char *name, *ns_name; in aa_fqlookupn_profile() local
625 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile()
633 if (name) in aa_fqlookupn_profile()
634 profile = aa_lookupn_profile(ns, name, n - (name - fqname)); in aa_fqlookupn_profile()
646 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, in aa_alloc_null() argument
652 profile = aa_alloc_profile(name, NULL, gfp); in aa_alloc_null()
699 char *name = NULL; in aa_new_learning_profile() local
704 name = kmalloc(strlen(parent->base.hname) + 8 + strlen(base), in aa_new_learning_profile()
706 if (name) { in aa_new_learning_profile()
707 sprintf(name, "%s//null-%s", parent->base.hname, base); in aa_new_learning_profile()
708 goto name; in aa_new_learning_profile()
713 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp); in aa_new_learning_profile()
714 if (!name) in aa_new_learning_profile()
716 sprintf(name, "%s//null-%x", parent->base.hname, in aa_new_learning_profile()
719 name: in aa_new_learning_profile()
721 bname = basename(name); in aa_new_learning_profile()
726 profile = aa_alloc_null(parent, name, gfp); in aa_new_learning_profile()
745 kfree(name); in aa_new_learning_profile()
750 kfree(name); in aa_new_learning_profile()
802 const char *ns_name, const char *name, in audit_policy() argument
808 ad.name = name; in audit_policy()
985 p = __find_child(&new->base.profiles, child->base.name); in __replace_profile()
1050 new->base.name = old->base.name; in share_name()
1355 const char *name = fqname, *info = NULL; in aa_remove_profiles() local
1368 name = aa_splitn_fqname(fqname, size, &ns_name, &ns_len); in aa_remove_profiles()
1381 if (!name) { in aa_remove_profiles()
1390 profile = aa_get_profile(__lookup_profile(&ns->base, name)); in aa_remove_profiles()
1396 name = profile->base.hname; in aa_remove_profiles()
1404 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info, in aa_remove_profiles()
1415 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info, in aa_remove_profiles()