Home
last modified time | relevance | path

Searched refs:hname (Results 1 – 11 of 11) sorted by relevance

/linux/security/apparmor/
A Dpolicy.c281 profile->label.hname = profile->base.hname; in aa_alloc_profile()
361 const char *hname) in __lookup_parent() argument
371 split - hname); in __lookup_parent()
375 hname = split + 2; in __lookup_parent()
404 split - hname); in __lookupn_profile()
410 hname = split + 2; in __lookupn_profile()
421 return __lookupn_profile(base, hname, strlen(hname)); in __lookup_profile()
453 return aa_lookupn_profile(ns, hname, strlen(hname)); in aa_lookup_profile()
760 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent()
857 new->base.hname = old->base.hname; in share_name()
[all …]
A Dpolicy_ns.c74 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name()
124 kfree_sensitive(ns->base.hname); in alloc_ns()
200 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() argument
205 for (split = strnstr(hname, "//", n); split; in __aa_lookupn_ns()
206 split = strnstr(hname, "//", n)) { in __aa_lookupn_ns()
207 ns = __aa_findn_ns(&ns->sub_ns, hname, split - hname); in __aa_lookupn_ns()
211 n -= split + 2 - hname; in __aa_lookupn_ns()
212 hname = split + 2; in __aa_lookupn_ns()
216 return __aa_findn_ns(&ns->sub_ns, hname, n); in __aa_lookupn_ns()
252 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns()
A Dlib.c491 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()
[all …]
A Dlabel.c113 AA_BUG(!a->base.hname); in ns_cmp()
114 AA_BUG(!b->base.hname); in ns_cmp()
123 return strcmp(a->base.hname, b->base.hname); in ns_cmp()
143 AA_BUG(!a->base.hname); in profile_cmp()
144 AA_BUG(!b->base.hname); in profile_cmp()
146 if (a == b || a->base.hname == b->base.hname) in profile_cmp()
152 return strcmp(a->base.hname, b->base.hname); in profile_cmp()
320 aa_put_str(label->hname); in aa_label_destroy()
1462 label->hname = name; in aa_update_label_name()
1548 profile->base.hname); in aa_profile_snxprint()
[all …]
A Daudit.c83 profile->ns->base.hname); in audit_pre()
86 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
A Ddomain.c108 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
115 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component()
1021 name, hat ? hat->base.hname : NULL, in build_change_hat()
A Dpolicy_unpack.c115 aad(&sa)->name = new->base.hname; in audit_iface()
/linux/security/apparmor/include/
A Dlib.h135 __counted char *hname; member
146 static inline const char *basename(const char *hname) in basename() argument
150 hname = strim((char *)hname); in basename()
151 for (split = strstr(hname, "//"); split; split = strstr(hname, "//")) in basename()
152 hname = split + 2; in basename()
154 return hname; in basename()
A Dpolicy_ns.h92 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n);
154 const char *hname) in __aa_lookup_ns() argument
156 return __aa_lookupn_ns(base, hname, strlen(hname)); in __aa_lookup_ns()
A Dpolicy.h172 #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname)
185 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
A Dlabel.h126 __counted char *hname; member

Completed in 22 milliseconds