For questions regarding Linux kernel's namespaces mechanism.
Questions tagged [linux-namespaces]
143 questions
0
votes
1 answer
Access /proc//ns/pid -> inode number
I am trying to get access to inode number of pid namespace which can be seen using ls -Li /proc//ns/mnt or /proc//ns/pid.
I am a newbie to kernel code, want to know in kernel, from current task structure how can I get this value? Some code…

Vaibhav Khanduja
- 131
- 10
0
votes
1 answer
How LXC implements network namespace?
I would like to know how LXC implement network namespace. One particular aspect is how it connects the virtual interface in a namespace to the physical interface. Assume that the network in a namespace connects to a veth, and the root namespace uses…

JustWonder
- 2,373
- 3
- 25
- 36
0
votes
3 answers
Linux VXLAN driver and network namespace
I am trying to understand the vxlan driver code in linux kernel.
The kernel version is: 3.16.0-29-generic
Looking at vxlan.c it appears that a vxlan dev is created per VNI and it is tied to the netns the netdevice belongs to and an udp socket is…

NetCubist
- 61
- 2
- 6
0
votes
3 answers
How to find a Linux namespace by network adapter?
I have a Linux server with multiple network namespaces defined:
# ip netns…

Cat Mucius
- 11
- 5
0
votes
0 answers
Binding to interface on multiple network namespace
I have a requirement where my application is supposed to bind to several interfaces and inject packets. The problem is some of these interfaces need not be on the root network namespace. I would like to know if this is possible. If yes please upload…

Akilesh
- 1,252
- 1
- 9
- 16
0
votes
2 answers
CLONE_NEWNS and mount propagate
I'm current looking for some example to understand CLONE_NEWNS in linux, so I did following experiments:
in shell1:
$ mkdir mnt
$ sudo unshare -m /bin/bash
# mount /dev/sda5 mnt/
# ls mnt
lost+found
where as in shell2:
$ ls mnt
lost+found
I'm…

xudifsd
- 770
- 5
- 26
-1
votes
1 answer
Share unix-domain sockets between namespaces created by "ip netns"?
Is it possible to share unix-domain sockets between namespaces created by ip netns?
My default namespace is connected to an internal network. I have a namespace named inet, which has access to the internet. I'd like to run a browser in the inet…

Lawrence D'Anna
- 2,998
- 2
- 22
- 25
-1
votes
2 answers
How to get the IP address of an LXC container?
I have started the lxc using lxc-start. Now, how I can get the IP address of the container?

Ark
- 990
- 8
- 13