Lines Matching defs:base
113 AA_BUG(!a->base.hname);
114 AA_BUG(!b->base.hname);
123 return strcmp(a->base.hname, b->base.hname);
143 AA_BUG(!a->base.hname);
144 AA_BUG(!b->base.hname);
146 if (a == b || a->base.hname == b->base.hname)
152 return strcmp(a->base.hname, b->base.hname);
382 on_list_rcu(&label->vec[0]->base.profiles));
384 on_list_rcu(&label->vec[0]->base.list));
1272 return aa_dfa_match(rules->policy.dfa, state, tp->base.hname);
1279 return aa_dfa_match(rules->policy.dfa, state, tp->base.hname);
1542 profile->base.hname, modestr);
1543 return snprintf(str, size, "%s (%s)", profile->base.hname,
1549 profile->base.hname);
1550 return snprintf(str, size, "%s", profile->base.hname);
1858 * to the base if the lookup specifies an ns, else making the stacked lookup
1861 static struct aa_profile *fqlookupn_profile(struct aa_label *base,
1868 return aa_fqlookupn_profile(base, str, n);
1875 * @base: base label to use for lookups (NOT NULL)
1885 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str,
1890 struct aa_label *label, *currbase = base;
1895 AA_BUG(!base);
1900 base != &root_ns->unconfined->label))
1905 /* stack on top of base */
1906 stack = base->size;
1917 vec[i] = aa_get_profile(base->vec[i]);
1921 vec[i] = fqlookupn_profile(base, currbase, str, split - str);
1925 * if component specified a new ns it becomes the new base
1935 vec[i] = fqlookupn_profile(base, currbase, str, end - str);
1967 struct aa_label *aa_label_parse(struct aa_label *base, const char *str,
1970 return aa_label_strn_parse(base, str, strlen(str), gfp, create,
2157 list_for_each_entry(child, &ns->sub_ns, base.list) {