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