Lines Matching refs:hname
491 char *hname; in aa_policy_init() local
495 hname = aa_str_alloc(strlen(prefix) + strlen(name) + 3, gfp); in aa_policy_init()
496 if (hname) in aa_policy_init()
497 sprintf(hname, "%s//%s", prefix, name); in aa_policy_init()
499 hname = aa_str_alloc(strlen(name) + 1, gfp); in aa_policy_init()
500 if (hname) in aa_policy_init()
501 strcpy(hname, name); in aa_policy_init()
503 if (!hname) in aa_policy_init()
505 policy->hname = hname; in aa_policy_init()
507 policy->name = basename(policy->hname); in aa_policy_init()
524 aa_put_str(policy->hname); in aa_policy_destroy()