Searched refs:ns_name (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/security/apparmor/ |
D | policy.c | 462 const char *name, *ns_name; in aa_fqlookupn_profile() local 465 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile() 466 if (ns_name) { in aa_fqlookupn_profile() 467 ns = aa_lookupn_ns(labels_ns(base), ns_name, ns_len); in aa_fqlookupn_profile() 619 const char *ns_name, const char *name, in audit_policy() argument 624 aad(&sa)->iface.ns = ns_name; in audit_policy() 860 const char *ns_name = NULL, *info = NULL; in aa_replace_profiles() local 871 error = aa_unpack(udata, &lh, &ns_name); in aa_replace_profiles() 882 if (ns_name) { in aa_replace_profiles() 883 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 | 105 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() argument 113 aad(&sa)->iface.ns = ns_name; in audit_iface() 674 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() argument 687 *ns_name = NULL; in unpack_profile() 703 *ns_name = kstrndup(tmpns, ns_len, GFP_KERNEL); in unpack_profile() 704 if (!*ns_name) { in unpack_profile() 1045 kfree(ent->ns_name); in aa_load_ent_free() 1183 char *ns_name = NULL; in aa_unpack() local 1190 profile = unpack_profile(&e, &ns_name); in aa_unpack() 1213 ent->ns_name = ns_name; in aa_unpack()
|
D | label.c | 1273 const char *ns_name; in match_component() local 1279 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 1281 state = aa_dfa_match(profile->policy.dfa, state, ns_name); in match_component() 1516 const char *ns_name = NULL; in aa_profile_snxprint() local 1528 ns_name = aa_ns_name(view, profile->ns, in aa_profile_snxprint() 1530 if (ns_name == aa_hidden_ns_name) { in aa_profile_snxprint() 1533 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint() 1540 if (ns_name) in aa_profile_snxprint() 1541 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint() 1547 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()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
D | lib.h | 55 char *aa_split_fqname(char *args, char **ns_name); 56 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
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | pmtu.sh | 648 ns_name="$(nsname ${ns})" 650 ip -n ${ns_name} route add ${addr} via ${gw} 664 ns_name="$(nsname ${ns})" 666 ip -n ${ns_name} -${fam} nexthop add id ${nhid} via ${gw} dev ${dev} 678 ns_name="$(nsname ${ns})" 680 ip -n ${ns_name} -${fam} route add ${addr} nhid ${nhid} 697 ns_name="$(nsname ${ns})" 703 ip link add ${if} up netns ${ns_name} type veth peer name ${ifpeer} netns ${peer_name} || return 1 707 ip -n ${ns_name} addr add ${prefix4}.${segment}.1/24 dev ${if} 708 ip -n ${ns_name} addr add ${prefix6}:${segment}::1/64 dev ${if}
|