Searched refs:ns_name (Results 1 – 10 of 10) sorted by relevance
/linux/tools/testing/selftests/net/ |
A D | setup_veth.sh | 6 local -r ns_name="$2" 10 [[ -e /var/run/netns/"${ns_name}" ]] || ip netns add "${ns_name}" 12 ip link set dev "${ns_dev}" netns "${ns_name}" mtu 65535 13 ip -netns "${ns_name}" link set dev "${ns_dev}" up 15 ip netns exec "${ns_name}" ethtool -K "${ns_dev}" gro on tso off 27 local ns_name 29 for ns_name in client_ns server_ns; do 30 [[ -e /var/run/netns/"${ns_name}" ]] && ip netns del "${ns_name}"
|
A D | setup_loopback.sh | 43 local -r ns_name="$2" 56 [[ -e /var/run/netns/"${ns_name}" ]] || ip netns add "${ns_name}" 57 ip link set dev "${ns_dev}" netns "${ns_name}" 58 ip -netns "${ns_name}" link set dev "${ns_dev}" up 60 ip -netns "${ns_name}" addr add dev "${ns_dev}" "${addr}" 68 ns_name="$1" 70 ip -netns "${ns_name}" link del dev "${ns_dev}" 71 ip netns del "${ns_name}"
|
A D | pmtu.sh | 714 ns_name="$(nsname ${ns})" 716 ip -n ${ns_name} route add ${addr} via ${gw} 730 ns_name="$(nsname ${ns})" 732 ip -n ${ns_name} -${fam} nexthop add id ${nhid} via ${gw} dev ${dev} 744 ns_name="$(nsname ${ns})" 746 ip -n ${ns_name} -${fam} route add ${addr} nhid ${nhid} 763 ns_name="$(nsname ${ns})" 769 ip link add ${if} up netns ${ns_name} type veth peer name ${ifpeer} netns ${peer_name} || return 1 773 ip -n ${ns_name} addr add ${prefix4}.${segment}.1/24 dev ${if} 774 ip -n ${ns_name} addr add ${prefix6}:${segment}::1/64 dev ${if}
|
/linux/security/apparmor/ |
A D | policy.c | 461 const char *name, *ns_name; in aa_fqlookupn_profile() local 465 if (ns_name) { in aa_fqlookupn_profile() 922 if (ns_name) { in aa_replace_profiles() 923 if (ent->ns_name && in aa_replace_profiles() 924 strcmp(ent->ns_name, ns_name) != 0) { in aa_replace_profiles() 929 } else if (ent->ns_name) { in aa_replace_profiles() 935 ns_name = ent->ns_name; in aa_replace_profiles() 939 if (ns_name) { in aa_replace_profiles() 941 ns_name); in aa_replace_profiles() 1087 kfree(ns_name); in aa_replace_profiles() [all …]
|
A 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()
|
A 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() 699 *ns_name = kstrndup(tmpns, ns_len, GFP_KERNEL); in unpack_profile() 700 if (!*ns_name) { in unpack_profile() 1039 kfree(ent->ns_name); in aa_load_ent_free() 1177 char *ns_name = NULL; in aa_unpack() local 1184 profile = unpack_profile(&e, &ns_name); in aa_unpack() 1207 ent->ns_name = ns_name; in aa_unpack()
|
A D | label.c | 1272 const char *ns_name; in match_component() local 1278 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 1280 state = aa_dfa_match(profile->policy.dfa, state, ns_name); in match_component() 1515 const char *ns_name = NULL; in aa_profile_snxprint() local 1527 ns_name = aa_ns_name(view, profile->ns, in aa_profile_snxprint() 1529 if (ns_name == aa_hidden_ns_name) { in aa_profile_snxprint() 1532 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint() 1539 if (ns_name) in aa_profile_snxprint() 1540 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint() 1546 if (ns_name) in aa_profile_snxprint() [all …]
|
A D | domain.c | 103 const char *ns_name; in match_component() local 111 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 113 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component()
|
/linux/security/apparmor/include/ |
A 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,
|
A D | policy_unpack.h | 24 const char *ns_name; member
|
Completed in 25 milliseconds