Searched refs:ns_name (Results 1 – 7 of 7) sorted by relevance
/security/apparmor/ |
D | policy.c | 461 const char *name, *ns_name; in aa_fqlookupn_profile() local 464 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile() 465 if (ns_name) { in aa_fqlookupn_profile() 466 ns = aa_lookupn_ns(labels_ns(base), ns_name, ns_len); in aa_fqlookupn_profile() 618 const char *ns_name, const char *name, in audit_policy() argument 623 aad(&sa)->iface.ns = ns_name; in audit_policy() 859 const char *ns_name, *info = NULL; in aa_replace_profiles() local 870 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles() 881 if (ns_name) { in aa_replace_profiles() 882 if (ent->ns_name && in aa_replace_profiles() [all …]
|
D | lib.c | 42 char *aa_split_fqname(char *fqname, char **ns_name) in aa_split_fqname() argument 46 *ns_name = NULL; in aa_split_fqname() 49 *ns_name = skip_spaces(&name[1]); in aa_split_fqname() 83 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, in aa_splitn_fqname() argument 89 *ns_name = NULL; in aa_splitn_fqname() 97 *ns_name = skipn_spaces(&name[1], end - &name[1]); in aa_splitn_fqname() 98 if (!*ns_name) in aa_splitn_fqname() 101 *ns_len = split - *ns_name; in aa_splitn_fqname() 103 *ns_name = NULL; in aa_splitn_fqname() 111 *ns_len = end - *ns_name; in aa_splitn_fqname()
|
D | policy_unpack.c | 104 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() argument 112 aad(&sa)->iface.ns = ns_name; in audit_iface() 671 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() argument 684 *ns_name = NULL; in unpack_profile() 696 *ns_name = kstrndup(tmpns, ns_len, GFP_KERNEL); in unpack_profile() 697 if (!*ns_name) { in unpack_profile() 1029 kfree(ent->ns_name); in aa_load_ent_free() 1068 char *ns_name = NULL; in aa_unpack() local 1075 profile = unpack_profile(&e, &ns_name); in aa_unpack() 1098 ent->ns_name = ns_name; in aa_unpack()
|
D | label.c | 1245 const char *ns_name; in match_component() local 1251 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 1253 state = aa_dfa_match(profile->policy.dfa, state, ns_name); in match_component() 1488 const char *ns_name = NULL; in aa_profile_snxprint() local 1500 ns_name = aa_ns_name(view, profile->ns, in aa_profile_snxprint() 1502 if (ns_name == aa_hidden_ns_name) { in aa_profile_snxprint() 1505 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint() 1512 if (ns_name) in aa_profile_snxprint() 1513 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint() 1519 if (ns_name) in aa_profile_snxprint() [all …]
|
D | domain.c | 101 const char *ns_name; in match_component() local 109 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 111 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
|
/security/apparmor/include/ |
D | lib.h | 50 char *aa_split_fqname(char *args, char **ns_name); 51 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
|
D | policy_unpack.h | 24 const char *ns_name; member
|