• Home
  • Raw
  • Download

Lines Matching refs:name

307 					    const char *name, int len)  in __strn_find_child()  argument
309 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child()
321 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child() argument
323 return __strn_find_child(head, name, strlen(name)); in __find_child()
333 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child() argument
339 profile = __find_child(&parent->base.profiles, name); in aa_find_child()
461 const char *name, *ns_name; in aa_fqlookupn_profile() local
464 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile()
472 if (name) in aa_fqlookupn_profile()
473 profile = aa_lookupn_profile(ns, name, n - (name - fqname)); in aa_fqlookupn_profile()
507 char *name = NULL; in aa_new_null_profile() local
512 name = kmalloc(strlen(parent->base.hname) + 8 + strlen(base), in aa_new_null_profile()
514 if (name) { in aa_new_null_profile()
515 sprintf(name, "%s//null-%s", parent->base.hname, base); in aa_new_null_profile()
516 goto name; in aa_new_null_profile()
521 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp); in aa_new_null_profile()
522 if (!name) in aa_new_null_profile()
524 sprintf(name, "%s//null-%x", parent->base.hname, in aa_new_null_profile()
527 name: in aa_new_null_profile()
529 bname = basename(name); in aa_new_null_profile()
534 profile = aa_alloc_profile(name, NULL, gfp); in aa_new_null_profile()
562 kfree(name); in aa_new_null_profile()
567 kfree(name); in aa_new_null_profile()
618 const char *ns_name, const char *name, in audit_policy() argument
624 aad(&sa)->name = name; in audit_policy()
752 p = __find_child(&new->base.profiles, child->base.name); in __replace_profile()
817 new->base.name = old->base.name; in share_name()
1098 const char *name = fqname, *info = NULL; in aa_remove_profiles() local
1111 name = aa_splitn_fqname(fqname, size, &ns_name, &ns_len); in aa_remove_profiles()
1124 if (!name) { in aa_remove_profiles()
1133 profile = aa_get_profile(__lookup_profile(&ns->base, name)); in aa_remove_profiles()
1139 name = profile->base.hname; in aa_remove_profiles()
1147 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info, in aa_remove_profiles()
1158 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info, in aa_remove_profiles()