| /linux/security/apparmor/ |
| H A D | policy.c | 59 * is referred to as an hname (hierarchical). 369 * @hname: name of the profile (NOT NULL) 375 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() argument 388 if (!aa_policy_init(&profile->base, NULL, hname, gfp)) in aa_alloc_profile() 408 profile->label.hname = profile->base.hname; in aa_alloc_profile() 511 * __lookup_parent - lookup the parent of a profile of name @hname 513 * @hname: hierarchical profile name to find parent of (NOT NULL) 516 * that matches hname does not need to exist, in general this 524 const char *hname) in __lookup_parent() argument 558 __create_missing_ancestors(struct aa_ns * ns,const char * hname,gfp_t gfp) __create_missing_ancestors() argument 608 __lookupn_profile(struct aa_policy * base,const char * hname,size_t n) __lookupn_profile() argument 631 __lookup_profile(struct aa_policy * base,const char * hname) __lookup_profile() argument 644 aa_lookupn_profile(struct aa_ns * ns,const char * hname,size_t n) aa_lookupn_profile() argument 1122 __lookup_replace(struct aa_ns * ns,const char * hname,bool noreplace,struct aa_profile ** p,const char ** info) __lookup_replace() argument [all...] |
| H A D | policy_ns.c | 72 * thus the curr ns.hname is a prefix of its name. in aa_ns_name() 74 * Add + 2 to skip over // separating curr hname prefix in aa_ns_name() 75 * from the visible tail of the views hname in aa_ns_name() 77 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name() 163 * __aa_lookupn_ns - lookup the namespace matching @hname 165 * @hname: hierarchical ns name (NOT NULL) 166 * @n: length of @hname 174 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() argument 179 for (split = strnstr(hname, "//", in __aa_lookupn_ns() [all...] |
| H A D | lib.c | 481 char *hname; in aa_policy_init() local 488 hname = aa_str_alloc(hname_sz, gfp); in aa_policy_init() 489 if (!hname) in aa_policy_init() 492 scnprintf(hname, hname_sz, "%s//%s", prefix, name); in aa_policy_init() 494 strscpy(hname, name, hname_sz); in aa_policy_init() 495 policy->hname = hname; in aa_policy_init() 497 policy->name = basename(policy->hname); in aa_policy_init() 512 aa_put_str(policy->hname); in aa_policy_destroy()
|
| H A D | label.c | 115 AA_BUG(!a->base.hname); in ns_cmp() 116 AA_BUG(!b->base.hname); in ns_cmp() 125 return strcmp(a->base.hname, b->base.hname); in ns_cmp() 145 AA_BUG(!a->base.hname); in profile_cmp() 146 AA_BUG(!b->base.hname); in profile_cmp() 148 if (a == b || a->base.hname == b->base.hname) in profile_cmp() 154 return strcmp(a->base.hname, b->base.hname); in profile_cmp() [all...] |
| H A D | audit.c | 126 profile->ns->base.hname); in audit_pre() 129 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
|
| H A D | domain.c | 104 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); in match_component() 111 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); in match_component() 647 profile->base.hname, old_info); in x_to_label() 744 __func__, profile->base.hname, info); in profile_transition() 1154 name, hat ? hat->base.hname : NULL, in build_change_hat()
|
| H A D | mount.c | 646 ad->mnt.trans = profile->label.hname; in build_pivotroot() 704 ad.mnt.trans = target->hname; in aa_pivotroot()
|
| H A D | af_unix.c | 186 peer->base.hname); in match_label()
|
| H A D | policy_unpack.c | 74 ad.name = new->base.hname; in audit_iface()
|
| /linux/security/apparmor/include/ |
| H A D | lib.h | 202 __counted char *hname; member 213 static inline const char *basename(const char *hname) in basename() argument 217 hname = strim((char *)hname); in basename() 218 for (split = strstr(hname, "//"); split; split = strstr(hname, "//")) in basename() 219 hname = split + 2; in basename() 221 return hname; in basename()
|
| H A D | policy.h | 290 #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname) 304 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
|
| H A D | policy_ns.h | 92 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n);
|
| H A D | label.h | 118 * @hname: text representation of the label (MAYBE_NULL) 132 __counted char *hname; member
|