Lines Matching refs:name
383 const char *name, const char **info) in find_attach() argument
389 AA_BUG(!name); in find_attach()
415 name, &count); in find_attach()
467 } else if (!strcmp(profile->base.name, name)) { in find_attach()
491 static const char *next_name(int xtype, const char *name) in next_name() argument
505 const char **name) in x_table_lookup() argument
511 AA_BUG(!name); in x_table_lookup()
517 for (*name = profile->file.trans.table[index]; !label && *name; in x_table_lookup()
518 *name = next_name(xtype, *name)) { in x_table_lookup()
522 new_profile = aa_find_child(profile, *name); in x_table_lookup()
527 label = aa_label_parse(&profile->label, *name, GFP_ATOMIC, in x_table_lookup()
552 const char *name, u32 xindex, in x_to_label() argument
580 name, info); in x_to_label()
584 name, info); in x_to_label()
585 *lookupname = name; in x_to_label()
625 const char *info = NULL, *name = NULL, *target = NULL; in profile_transition() local
636 &name, &info, profile->disconnected); in profile_transition()
644 name = bprm->filename; in profile_transition()
650 &profile->ns->base.profiles, name, &info); in profile_transition()
660 state = aa_str_perms(profile->file.dfa, state, name, cond, &perms); in profile_transition()
663 new = x_to_label(profile, bprm, name, perms.xindex, &target, in profile_transition()
692 char *n = kstrdup(name, GFP_ATOMIC); in profile_transition()
696 long pos = name - buffer; in profile_transition()
702 name = buffer + pos; in profile_transition()
703 strcpy((char *)name, n); in profile_transition()
725 " for %s profile=", name); in profile_transition()
733 aa_audit_file(profile, &perms, OP_EXEC, MAY_EXEC, name, target, new, in profile_transition()
1006 const char *name, bool sibling) in build_change_hat() argument
1022 hat = aa_find_child(root, name); in build_change_hat()
1026 hat = aa_new_null_profile(profile, true, name, in build_change_hat()
1038 name, hat ? hat->base.hname : NULL, in build_change_hat()
1060 const char *name, *info = NULL; in change_hat() local
1072 name = hats[i]; in change_hat()
1083 hat = aa_find_child(root, name); in change_hat()
1108 name = NULL; in change_hat()
1130 AA_MAY_CHANGEHAT, name, NULL, NULL, in change_hat()
1138 build_change_hat(profile, name, sibling), in change_hat()
1278 static int change_profile_perms_wrapper(const char *op, const char *name, in change_profile_perms_wrapper() argument
1290 error = aa_audit_file(profile, perms, op, request, name, in change_profile_perms_wrapper()