hname 85 security/apparmor/audit.c profile->ns->base.hname); hname 88 security/apparmor/audit.c audit_log_untrustedstring(ab, profile->base.hname); hname 106 security/apparmor/domain.c return aa_dfa_match(profile->file.dfa, state, tp->base.hname); hname 113 security/apparmor/domain.c return aa_dfa_match(profile->file.dfa, state, tp->base.hname); hname 1038 security/apparmor/domain.c name, hat ? hat->base.hname : NULL, hname 130 security/apparmor/include/label.h __counted char *hname; hname 130 security/apparmor/include/lib.h __counted char *hname; hname 141 security/apparmor/include/lib.h static inline const char *basename(const char *hname) hname 145 security/apparmor/include/lib.h hname = strim((char *)hname); hname 146 security/apparmor/include/lib.h for (split = strstr(hname, "//"); split; split = strstr(hname, "//")) hname 147 security/apparmor/include/lib.h hname = split + 2; hname 149 security/apparmor/include/lib.h return hname; hname 172 security/apparmor/include/policy.h #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname) hname 185 security/apparmor/include/policy.h struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, hname 92 security/apparmor/include/policy_ns.h struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n); hname 154 security/apparmor/include/policy_ns.h const char *hname) hname 156 security/apparmor/include/policy_ns.h return __aa_lookupn_ns(base, hname, strlen(hname)); hname 113 security/apparmor/label.c AA_BUG(!a->base.hname); hname 114 security/apparmor/label.c AA_BUG(!b->base.hname); hname 123 security/apparmor/label.c return strcmp(a->base.hname, b->base.hname); hname 143 security/apparmor/label.c AA_BUG(!a->base.hname); hname 144 security/apparmor/label.c AA_BUG(!b->base.hname); hname 146 security/apparmor/label.c if (a == b || a->base.hname == b->base.hname) hname 152 security/apparmor/label.c return strcmp(a->base.hname, b->base.hname); hname 322 security/apparmor/label.c aa_put_str(label->hname); hname 1248 security/apparmor/label.c return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); hname 1255 security/apparmor/label.c return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); hname 1426 security/apparmor/label.c if (label->hname || labels_ns(label) != ns) hname 1434 security/apparmor/label.c if (!label->hname && label->flags & FLAG_IN_TREE) { hname 1435 security/apparmor/label.c label->hname = name; hname 1451 security/apparmor/label.c if (label->hname && (!ns || labels_ns(label) == ns) && hname 1514 security/apparmor/label.c profile->base.hname, modestr); hname 1515 security/apparmor/label.c return snprintf(str, size, "%s (%s)", profile->base.hname, hname 1521 security/apparmor/label.c profile->base.hname); hname 1522 security/apparmor/label.c return snprintf(str, size, "%s", profile->base.hname); hname 1726 security/apparmor/label.c str = (char *) label->hname; hname 1755 security/apparmor/label.c seq_printf(f, "%s (%s)", label->hname, hname 1758 security/apparmor/label.c seq_printf(f, "%s", label->hname); hname 1778 security/apparmor/label.c pr_info("%s (%s)", label->hname, hname 1781 security/apparmor/label.c pr_info("%s", label->hname); hname 491 security/apparmor/lib.c char *hname; hname 495 security/apparmor/lib.c hname = aa_str_alloc(strlen(prefix) + strlen(name) + 3, gfp); hname 496 security/apparmor/lib.c if (hname) hname 497 security/apparmor/lib.c sprintf(hname, "%s//%s", prefix, name); hname 499 security/apparmor/lib.c hname = aa_str_alloc(strlen(name) + 1, gfp); hname 500 security/apparmor/lib.c if (hname) hname 501 security/apparmor/lib.c strcpy(hname, name); hname 503 security/apparmor/lib.c if (!hname) hname 505 security/apparmor/lib.c policy->hname = hname; hname 507 security/apparmor/lib.c policy->name = basename(policy->hname); hname 524 security/apparmor/lib.c aa_put_str(policy->hname); hname 256 security/apparmor/policy.c struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, hname 267 security/apparmor/policy.c if (!aa_policy_init(&profile->base, NULL, hname, gfp)) hname 281 security/apparmor/policy.c profile->label.hname = profile->base.hname; hname 361 security/apparmor/policy.c const char *hname) hname 369 security/apparmor/policy.c for (split = strstr(hname, "//"); split;) { hname 370 security/apparmor/policy.c profile = __strn_find_child(&policy->profiles, hname, hname 371 security/apparmor/policy.c split - hname); hname 375 security/apparmor/policy.c hname = split + 2; hname 376 security/apparmor/policy.c split = strstr(hname, "//"); hname 396 security/apparmor/policy.c const char *hname, size_t n) hname 401 security/apparmor/policy.c for (split = strnstr(hname, "//", n); split; hname 402 security/apparmor/policy.c split = strnstr(hname, "//", n)) { hname 403 security/apparmor/policy.c profile = __strn_find_child(&base->profiles, hname, hname 404 security/apparmor/policy.c split - hname); hname 409 security/apparmor/policy.c n -= split + 2 - hname; hname 410 security/apparmor/policy.c hname = split + 2; hname 414 security/apparmor/policy.c return __strn_find_child(&base->profiles, hname, n); hname 419 security/apparmor/policy.c const char *hname) hname 421 security/apparmor/policy.c return __lookupn_profile(base, hname, strlen(hname)); hname 432 security/apparmor/policy.c struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, hname 439 security/apparmor/policy.c profile = __lookupn_profile(&ns->base, hname, n); hname 444 security/apparmor/policy.c if (!profile && strncmp(hname, "unconfined", n) == 0) hname 451 security/apparmor/policy.c struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) hname 453 security/apparmor/policy.c return aa_lookupn_profile(ns, hname, strlen(hname)); hname 512 security/apparmor/policy.c name = kmalloc(strlen(parent->base.hname) + 8 + strlen(base), hname 515 security/apparmor/policy.c sprintf(name, "%s//null-%s", parent->base.hname, base); hname 521 security/apparmor/policy.c name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp); hname 524 security/apparmor/policy.c sprintf(name, "%s//null-%x", parent->base.hname, hname 707 security/apparmor/policy.c const char *base = basename(profile->base.hname); hname 708 security/apparmor/policy.c long len = base - profile->base.hname; hname 719 security/apparmor/policy.c if (strncmp(ent->new->base.hname, profile->base.hname, len) == hname 720 security/apparmor/policy.c 0 && ent->new->base.hname[len] == 0) hname 796 security/apparmor/policy.c static int __lookup_replace(struct aa_ns *ns, const char *hname, hname 800 security/apparmor/policy.c *p = aa_get_profile(__lookup_profile(&ns->base, hname)); hname 814 security/apparmor/policy.c aa_put_str(new->base.hname); hname 815 security/apparmor/policy.c aa_get_str(old->base.hname); hname 816 security/apparmor/policy.c new->base.hname = old->base.hname; hname 818 security/apparmor/policy.c new->label.hname = old->label.hname; hname 932 security/apparmor/policy.c error = __lookup_replace(ns, ent->new->base.hname, hname 953 security/apparmor/policy.c policy = __lookup_parent(ns, ent->new->base.hname); hname 1006 security/apparmor/policy.c audit_policy(label, op, ns_name, ent->new->base.hname, hname 1019 security/apparmor/policy.c audit_policy(label, op, ns_name, ent->new->base.hname, NULL, hname 1057 security/apparmor/policy.c audit_policy(label, op, ns_name, ent ? ent->new->base.hname : NULL, hname 1068 security/apparmor/policy.c audit_policy(label, op, ns_name, tmp->new->base.hname, info, hname 1139 security/apparmor/policy.c name = profile->base.hname; hname 74 security/apparmor/policy_ns.c return view->base.hname + strlen(curr->base.hname) + 2; hname 124 security/apparmor/policy_ns.c kzfree(ns->base.hname); hname 200 security/apparmor/policy_ns.c struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) hname 205 security/apparmor/policy_ns.c for (split = strnstr(hname, "//", n); split; hname 206 security/apparmor/policy_ns.c split = strnstr(hname, "//", n)) { hname 207 security/apparmor/policy_ns.c ns = __aa_findn_ns(&ns->sub_ns, hname, split - hname); hname 211 security/apparmor/policy_ns.c n -= split + 2 - hname; hname 212 security/apparmor/policy_ns.c hname = split + 2; hname 216 security/apparmor/policy_ns.c return __aa_findn_ns(&ns->sub_ns, hname, n); hname 252 security/apparmor/policy_ns.c ns = alloc_ns(parent->base.hname, name); hname 114 security/apparmor/policy_unpack.c aad(&sa)->name = new->base.hname;