Home
last modified time | relevance | path

Searched refs:ns_name (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/security/apparmor/
Dpolicy.c463 const char *name, *ns_name; in aa_fqlookupn_profile() local
466 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile()
467 if (ns_name) { in aa_fqlookupn_profile()
468 ns = aa_lookupn_ns(labels_ns(base), ns_name, ns_len); in aa_fqlookupn_profile()
620 const char *ns_name, const char *name, in audit_policy() argument
625 aad(&sa)->iface.ns = ns_name; in audit_policy()
861 const char *ns_name, *info = NULL; in aa_replace_profiles() local
872 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles()
883 if (ns_name) { in aa_replace_profiles()
884 if (ent->ns_name && in aa_replace_profiles()
[all …]
Dlib.c46 char *aa_split_fqname(char *fqname, char **ns_name) in aa_split_fqname() argument
50 *ns_name = NULL; in aa_split_fqname()
53 *ns_name = skip_spaces(&name[1]); in aa_split_fqname()
87 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, in aa_splitn_fqname() argument
95 *ns_name = NULL; in aa_splitn_fqname()
99 *ns_name = skipn_spaces(&name[1], end - &name[1]); in aa_splitn_fqname()
100 if (!*ns_name) in aa_splitn_fqname()
103 *ns_len = split - *ns_name; in aa_splitn_fqname()
105 *ns_name = NULL; in aa_splitn_fqname()
113 *ns_len = end - *ns_name; in aa_splitn_fqname()
Dpolicy_unpack.c108 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() argument
116 aad(&sa)->iface.ns = ns_name; in audit_iface()
587 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() argument
600 *ns_name = NULL; in unpack_profile()
612 *ns_name = kstrndup(tmpns, ns_len, GFP_KERNEL); in unpack_profile()
613 if (!*ns_name) { in unpack_profile()
940 kfree(ent->ns_name); in aa_load_ent_free()
979 char *ns_name = NULL; in aa_unpack() local
986 profile = unpack_profile(&e, &ns_name); in aa_unpack()
1009 ent->ns_name = ns_name; in aa_unpack()
Dlabel.c1249 const char *ns_name; in match_component() local
1255 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
1257 state = aa_dfa_match(profile->policy.dfa, state, ns_name); in match_component()
1490 const char *ns_name = NULL; in aa_profile_snxprint() local
1502 ns_name = aa_ns_name(view, profile->ns, in aa_profile_snxprint()
1504 if (ns_name == aa_hidden_ns_name) { in aa_profile_snxprint()
1507 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint()
1514 if (ns_name) in aa_profile_snxprint()
1515 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint()
1521 if (ns_name) in aa_profile_snxprint()
[all …]
Ddomain.c105 const char *ns_name; in match_component() local
113 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component()
115 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
/Linux-v4.19/security/apparmor/include/
Dlib.h53 char *aa_split_fqname(char *args, char **ns_name);
54 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
Dpolicy_unpack.h28 const char *ns_name; member