Home
last modified time | relevance | path

Searched +full:ns +full:- (Results 1 – 25 of 1036) sorted by relevance

12345678910>>...42

/linux/tools/testing/selftests/net/forwarding/
H A Dfib_offload_lib.sh1 # SPDX-License-Identifier: GPL-2.0
7 local ns=$1; shift
13 ip -n $ns -j -p -$family route show $route \
14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null
17 if [[ $ret -ne 0 ]]; then
29 local ns=$1; shift
34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail
39 local ns=$1; shift
43 fib_trap_check $ns 4 "$route" $should_fail
48 local ns=$1; shift
[all …]
/linux/security/apparmor/
H A Dpolicy_ns.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 1998-2008 Novell/SUSE
8 * Copyright 2009-2017 Canonical Ltd.
30 const char *aa_hidden_ns_name = "---";
33 * aa_ns_visible - test if @view is visible from @curr
48 for ( ; view; view = view->parent) { in aa_ns_visible()
49 if (view->parent == curr) in aa_ns_visible()
57 * aa_ns_name - Find the ns name to display for @view from @curr
71 /* at this point if a ns is visible it is in a view ns in aa_ns_name()
72 * thus the curr ns.hname is a prefix of its name. in aa_ns_name()
[all …]
/linux/drivers/net/netdevsim/
H A Dnetdev.c5 * June 1991 as shown in the file COPYING in the top-level directory of this
42 struct netdevsim *ns = netdev_priv(dev); in nsim_start_peer_tx_queue() local
48 idx = rq->napi.index; in nsim_start_peer_tx_queue()
50 peer_ns = rcu_dereference(ns->peer); in nsim_start_peer_tx_queue()
55 peer_dev = peer_ns->netdev; in nsim_start_peer_tx_queue()
56 if (dev->real_num_tx_queues != peer_dev->num_rx_queues) in nsim_start_peer_tx_queue()
76 if (rx_dev->real_num_tx_queues != tx_dev->num_rx_queues) in nsim_stop_tx_queue()
81 NSIM_RING_SIZE - skb_queue_len(&rq->skb_queue), in nsim_stop_tx_queue()
88 if (skb_queue_len(&rq->skb_queue) > NSIM_RING_SIZE) { in nsim_napi_rx()
93 skb_queue_tail(&rq->skb_queue, skb); in nsim_napi_rx()
[all …]
H A Dudp_tunnels.c1 // SPDX-License-Identifier: GPL-2.0-only
15 struct netdevsim *ns = netdev_priv(dev); in nsim_udp_tunnel_set_port() local
18 ret = -ns->udp_ports.inject_error; in nsim_udp_tunnel_set_port()
19 ns->udp_ports.inject_error = 0; in nsim_udp_tunnel_set_port()
22 if (ns->udp_ports.ports[table][entry]) { in nsim_udp_tunnel_set_port()
24 ret = -EBUSY; in nsim_udp_tunnel_set_port()
26 ns->udp_ports.ports[table][entry] = in nsim_udp_tunnel_set_port()
27 be16_to_cpu(ti->port) << 16 | ti->type; in nsim_udp_tunnel_set_port()
31 netdev_info(dev, "set [%d, %d] type %d family %d port %d - %d\n", in nsim_udp_tunnel_set_port()
32 table, entry, ti->type, ti->sa_family, ntohs(ti->port), in nsim_udp_tunnel_set_port()
[all …]
H A Dbpf.c5 * June 1991 as shown in the file COPYING in the top-level directory of this
41 struct netdevsim *ns; member
53 const char **str = file->private; in nsim_bpf_string_show()
68 state = env->prog->aux->offload->dev_priv; in nsim_bpf_verify_insn()
69 if (state->nsim_dev->bpf_bind_verifier_delay && !insn_idx) in nsim_bpf_verify_insn()
70 msleep(state->nsim_dev->bpf_bind_verifier_delay); in nsim_bpf_verify_insn()
72 if (insn_idx == env->prog->len - 1) { in nsim_bpf_verify_insn()
75 if (!state->nsim_dev->bpf_bind_verifier_accept) in nsim_bpf_verify_insn()
76 ret = -EOPNOTSUPP; in nsim_bpf_verify_insn()
87 static bool nsim_xdp_offload_active(struct netdevsim *ns) in nsim_xdp_offload_active() argument
[all …]
/linux/ipc/
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0
29 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() argument
31 return inc_ucount(ns, current_euid(), UCOUNT_IPC_NAMESPACES); in inc_ipc_namespaces()
42 struct ipc_namespace *ns; in create_ipc_ns() local
46 err = -ENOSPC; in create_ipc_ns()
60 err = -ENOMEM; in create_ipc_ns()
61 ns = kzalloc(sizeof(struct ipc_namespace), GFP_KERNEL_ACCOUNT); in create_ipc_ns()
62 if (ns == NULL) in create_ipc_ns()
65 err = ns_common_init(ns); in create_ipc_ns()
69 ns->user_ns = get_user_ns(user_ns); in create_ipc_ns()
[all …]
/linux/kernel/time/
H A Dnamespace.c1 // SPDX-License-Identifier: GPL-2.0
31 offset = timespec64_to_ktime(ns_offsets->monotonic); in do_timens_ktime_to_host()
35 offset = timespec64_to_ktime(ns_offsets->boottime); in do_timens_ktime_to_host()
47 * User can specify @tim *absolute* value - if it's lesser than in do_timens_ktime_to_host()
48 * the time namespace's offset - it's already expired. in do_timens_ktime_to_host()
60 static struct ucounts *inc_time_namespaces(struct user_namespace *ns) in inc_time_namespaces() argument
62 return inc_ucount(ns, current_euid(), UCOUNT_TIME_NAMESPACES); in inc_time_namespaces()
71 * clone_time_ns - Clone a time namespace
82 struct time_namespace *ns; in clone_time_ns() local
86 err = -ENOSPC; in clone_time_ns()
[all …]
/linux/tools/testing/selftests/net/
H A Dxfrm_policy.sh2 # SPDX-License-Identifier: GPL-2.0
8 # ns1 ---- ns3 ----- ns4 ---- ns2
31 local ns=$1
38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
44 local ns=$1
52 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 …
53 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 …
55 do_esp_policy $ns $me $remote $lnet $rnet
60 # re-built.
[all …]
/linux/kernel/
H A Dpid_namespace.c1 // SPDX-License-Identifier: GPL-2.0-only
43 struct kmem_cache **pkc = &pid_cache[level - 1]; in create_pid_cachep()
64 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces() argument
66 return inc_ucount(ns, current_euid(), UCOUNT_PID_NAMESPACES); in inc_pid_namespaces()
79 struct pid_namespace *ns; in create_pid_namespace() local
80 unsigned int level = parent_pid_ns->level + 1; in create_pid_namespace()
84 err = -EINVAL; in create_pid_namespace()
85 if (!in_userns(parent_pid_ns->user_ns, user_ns)) in create_pid_namespace()
88 err = -ENOSPC; in create_pid_namespace()
95 err = -ENOMEM; in create_pid_namespace()
[all …]
H A Dutsname.c1 // SPDX-License-Identifier: GPL-2.0-only
21 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() argument
23 return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES); in inc_uts_namespaces()
32 * Clone a new ns copying an original utsname, setting refcount to 1
34 * Return ERR_PTR(-ENOMEM) on error (failure to allocate), new ns otherwise
39 struct uts_namespace *ns; in clone_uts_ns() local
43 err = -ENOSPC; in clone_uts_ns()
48 err = -ENOMEM; in clone_uts_ns()
49 ns = kmem_cache_zalloc(uts_ns_cache, GFP_KERNEL); in clone_uts_ns()
50 if (!ns) in clone_uts_ns()
[all …]
H A Duser_namespace.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/key-type.h>
15 #include <keys/user-type.h>
30 struct user_namespace *ns, int cap_setid,
34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() argument
36 return inc_ucount(ns, uid, UCOUNT_USER_NAMESPACES); in inc_user_namespaces()
49 cred->securebits = SECUREBITS_DEFAULT; in set_cred_user_ns()
50 cred->cap_inheritable = CAP_EMPTY_SET; in set_cred_user_ns()
51 cred->cap_permitted = CAP_FULL_SET; in set_cred_user_ns()
52 cred->cap_effective = CAP_FULL_SET; in set_cred_user_ns()
[all …]
H A Ducount.c1 // SPDX-License-Identifier: GPL-2.0-only
12 .ns = &init_user_ns,
20 [0 ... UCOUNTS_HASHTABLE_ENTRIES - 1] = HLIST_NULLS_HEAD_INIT(0)
24 #define ucounts_hashfn(ns, uid) \ argument
25 hash_long((unsigned long)__kuid_val(uid) + (unsigned long)(ns), \
27 #define ucounts_hashentry(ns, uid) \ argument
28 (ucounts_hashtable + ucounts_hashfn(ns, uid))
34 return &current_user_ns()->set; in set_lookup()
39 return &current_user_ns()->set == set; in set_is_seen()
46 container_of(head->set, struct user_namespace, set); in set_permissions()
[all …]
/linux/fs/
H A Dnsfs.c1 // SPDX-License-Identifier: GPL-2.0
46 struct ns_common *ns = inode->i_private; in ns_dname() local
47 const struct proc_ns_operations *ns_ops = ns->ops; in ns_dname()
50 ns_ops->name, inode->i_ino); in ns_dname()
60 struct ns_common *ns = inode->i_private; in nsfs_evict() local
62 ns->ops->put(ns); in nsfs_evict()
68 struct ns_common *ns; in ns_get_path_cb() local
70 ns = ns_get_cb(private_data); in ns_get_path_cb()
71 if (!ns) in ns_get_path_cb()
72 return -ENOENT; in ns_get_path_cb()
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_state.c1 // SPDX-License-Identifier: GPL-2.0-only
7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH.
8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>.
9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
26 union drbd_state ns; member
52 idr_for_each_entry(&resource->devices, device, vnr) in count_objects()
70 state_change->n_devices = n_devices; in alloc_state_change()
71 state_change->n_connections = n_connections; in alloc_state_change()
72 state_change->devices = (void *)(state_change + 1); in alloc_state_change()
73 state_change->connections = (void *)&state_change->devices[n_devices]; in alloc_state_change()
[all …]
/linux/include/linux/
H A Dipc_namespace.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/rhashtable-types.h>
58 /* # queues in this ns, protected by mq_lock */
74 /* user_ns which owns the ipc ns */
80 struct ns_common ns; member
87 extern void shm_destroy_orphaned(struct ipc_namespace *ns);
89 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() argument
93 extern int mq_init_ns(struct ipc_namespace *ns);
106 * Per app minimum openable message queues - 8. This does not map well
110 * Minimum maximum for HARD_MSGMAX - 32767. I bumped this to 65536.
[all …]
H A Duser_namespace.h1 /* SPDX-License-Identifier: GPL-2.0 */
25 struct uid_gid_map { /* 64 bytes -- 1 cache line */
84 struct ns_common ns; member
86 /* parent_could_setfcap: true if the creator if this ns had CAP_SETFCAP
87 * in its effective capability set at the child ns creation time. */
101 /* Register of per-UID persistent keyrings for this namespace */
121 struct user_namespace *ns; member
132 bool setup_userns_sysctls(struct user_namespace *ns);
133 void retire_userns_sysctls(struct user_namespace *ns);
134 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
[all …]
H A Dpid_namespace.h1 /* SPDX-License-Identifier: GPL-2.0 */
41 struct ns_common ns; member
57 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns() argument
59 return container_of(ns, struct pid_namespace, ns); in to_pid_ns()
62 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() argument
64 if (ns != &init_pid_ns) in get_pid_ns()
65 ns_ref_inc(ns); in get_pid_ns()
66 return ns; in get_pid_ns()
70 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() argument
74 for (; ns; ns = ns->parent) in pidns_memfd_noexec_scope()
[all …]
/linux/drivers/nvme/host/
H A Dzns.c1 // SPDX-License-Identifier: GPL-2.0
18 return -ENOMEM; in nvme_set_max_append()
24 status = nvme_submit_sync_cmd(ctrl->admin_q, &c, id, sizeof(*id)); in nvme_set_max_append()
30 if (id->zasl) in nvme_set_max_append()
31 ctrl->max_zone_append = 1 << (id->zasl + 3); in nvme_set_max_append()
33 ctrl->max_zone_append = ctrl->max_hw_sectors; in nvme_set_max_append()
38 int nvme_query_zone_info(struct nvme_ns *ns, unsigned lbaf, in nvme_query_zone_info() argument
41 struct nvme_effects_log *log = ns->head->effects; in nvme_query_zone_info()
47 if ((le32_to_cpu(log->iocs[nvme_cmd_zone_append]) & in nvme_query_zone_info()
49 if (test_and_clear_bit(NVME_NS_FORCE_RO, &ns->flags)) in nvme_query_zone_info()
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-cpu-opp.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 cpu0_opp_table: opp-table-cpu0 {
5 compatible = "operating-points-v2";
6 opp-shared;
8 opp-51000000-800 {
9 clock-latency-ns = <100000>;
10 opp-supported-hw = <0x1F 0x31FE>;
11 opp-hz = /bits/ 64 <51000000>;
14 opp-51000000-850 {
15 clock-latency-ns = <100000>;
[all …]
H A Dtegra20-cpu-opp.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 cpu0_opp_table: opp-table-cpu0 {
5 compatible = "operating-points-v2";
6 opp-shared;
8 opp-216000000-750 {
9 clock-latency-ns = <400000>;
10 opp-supported-hw = <0x0F 0x0003>;
11 opp-hz = /bits/ 64 <216000000>;
12 opp-suspend;
15 opp-216000000-800 {
[all …]
/linux/drivers/clk/qcom/
H A Dclk-rcg.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/clk-provider.h>
15 #include "clk-rcg.h"
18 static u32 ns_to_src(struct src_sel *s, u32 ns) in ns_to_src() argument
20 ns >>= s->src_sel_shift; in ns_to_src()
21 ns &= SRC_SEL_MASK; in ns_to_src()
22 return ns; in ns_to_src()
25 static u32 src_to_ns(struct src_sel *s, u8 src, u32 ns) in src_to_ns() argument
30 mask <<= s->src_sel_shift; in src_to_ns()
31 ns &= ~mask; in src_to_ns()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib.sh2 # SPDX-License-Identifier: GPL-2.0
96 local ns="testns1"
100 ip -n $ns link add name dummy1 type dummy
101 ip -n $ns link set dev dummy1 up
103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true
111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
[all …]
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
8 #include <linux/blk-integrity.h>
27 id->nsfeat |= 1 << 1; in nvmet_bdev_set_limits()
28 id->nawun = lpp0b; in nvmet_bdev_set_limits()
29 id->nawupf = lpp0b; in nvmet_bdev_set_limits()
30 id->nacwu = lpp0b; in nvmet_bdev_set_limits()
37 id->nsfeat |= 1 << 4; in nvmet_bdev_set_limits()
39 id->npwg = to0based(bdev_io_min(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
41 id->npwa = id->npwg; in nvmet_bdev_set_limits()
[all …]
H A Dio-cmd-file.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2017-2018 Western Digital Corporation or its
16 void nvmet_file_ns_revalidate(struct nvmet_ns *ns) in nvmet_file_ns_revalidate() argument
18 ns->size = i_size_read(ns->file->f_mapping->host); in nvmet_file_ns_revalidate()
21 void nvmet_file_ns_disable(struct nvmet_ns *ns) in nvmet_file_ns_disable() argument
23 if (ns->file) { in nvmet_file_ns_disable()
24 if (ns->buffered_io) in nvmet_file_ns_disable()
26 mempool_destroy(ns->bvec_pool); in nvmet_file_ns_disable()
27 ns->bvec_pool = NULL; in nvmet_file_ns_disable()
28 fput(ns->file); in nvmet_file_ns_disable()
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap-gpmc-smsc911x.dtsi1 // SPDX-License-Identifier: GPL-2.0
10 vddvario: regulator-vddvario {
11 compatible = "regulator-fixed";
12 regulator-name = "vddvario";
13 regulator-always-on;
16 vdd33a: regulator-vdd33a {
17 compatible = "regulator-fixed";
18 regulator-name = "vdd33a";
19 regulator-always-on;
26 bank-width = <2>;
[all …]

12345678910>>...42