Home
last modified time | relevance | path

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

/linux-6.3-rc2/security/apparmor/
A Dpolicy.c325 profile->label.hname = profile->base.hname; in aa_alloc_profile()
419 hname = split + 2; in __lookup_parent()
449 AA_BUG(!hname); in __create_missing_ancestors()
458 const char *name = kstrndup(hname, split - hname, in __create_missing_ancestors()
470 hname = split + 2; in __create_missing_ancestors()
505 hname = split + 2; in __lookupn_profile()
516 return __lookupn_profile(base, hname, strlen(hname)); in __lookup_profile()
548 return aa_lookupn_profile(ns, hname, strlen(hname)); in aa_lookup_profile()
874 if (strncmp(ent->new->base.hname, profile->base.hname, len) == in __list_lookup_parent()
971 new->base.hname = old->base.hname; in share_name()
[all …]
A Dpolicy_ns.c77 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name()
211 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() argument
216 for (split = strnstr(hname, "//", n); split; in __aa_lookupn_ns()
217 split = strnstr(hname, "//", n)) { in __aa_lookupn_ns()
218 ns = __aa_findn_ns(&ns->sub_ns, hname, split - hname); in __aa_lookupn_ns()
222 n -= split + 2 - hname; in __aa_lookupn_ns()
223 hname = split + 2; in __aa_lookupn_ns()
227 return __aa_findn_ns(&ns->sub_ns, hname, n); in __aa_lookupn_ns()
263 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns()
A Dlib.c449 char *hname; in aa_policy_init() local
453 hname = aa_str_alloc(strlen(prefix) + strlen(name) + 3, gfp); in aa_policy_init()
454 if (hname) in aa_policy_init()
455 sprintf(hname, "%s//%s", prefix, name); in aa_policy_init()
457 hname = aa_str_alloc(strlen(name) + 1, gfp); in aa_policy_init()
458 if (hname) in aa_policy_init()
459 strcpy(hname, name); in aa_policy_init()
461 if (!hname) in aa_policy_init()
463 policy->hname = hname; in aa_policy_init()
465 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()
323 aa_put_str(label->hname); in aa_label_destroy()
1463 label->hname = name; in aa_update_label_name()
1549 profile->base.hname); in aa_profile_snxprint()
[all …]
A Daudit.c126 profile->ns->base.hname); in audit_pre()
129 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
A Ddomain.c91 return aa_dfa_match(rules->file.dfa, state, tp->base.hname); in match_component()
98 return aa_dfa_match(rules->file.dfa, state, tp->base.hname); in match_component()
1023 name, hat ? hat->base.hname : NULL, in build_change_hat()
A Dpolicy_unpack.c71 aad(&sa)->name = new->base.hname; in audit_iface()
/linux-6.3-rc2/security/apparmor/include/
A Dlib.h146 __counted char *hname; member
157 static inline const char *basename(const char *hname) in basename() argument
161 hname = strim((char *)hname); in basename()
162 for (split = strstr(hname, "//"); split; split = strstr(hname, "//")) in basename()
163 hname = split + 2; in basename()
165 return hname; in basename()
A Dpolicy_ns.h93 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n);
155 const char *hname) in __aa_lookup_ns() argument
157 return __aa_lookupn_ns(base, hname, strlen(hname)); in __aa_lookup_ns()
A Dpolicy.h228 #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname)
244 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
A Dlabel.h128 __counted char *hname; member

Completed in 20 milliseconds