]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: give RW access to /proc/sys/net/ipv[46] to containers
authorCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 10 Dec 2014 09:22:28 +0000 (10:22 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 10 Dec 2014 12:22:54 +0000 (13:22 +0100)
commitba9b7252ea8d87dfa217fb11dc5dadc039176807
treef482c181e311f2849db75723235705109246afce
parent729251692facf4215fe3349947e0426799f5169f
lxc: give RW access to /proc/sys/net/ipv[46] to containers

Some programs want to change some values for the network interfaces
configuration in /proc/sys/net/ipv[46] folders. Giving RW access on them
allows wicked to work on openSUSE 13.2+.

Reusing the lxcNeedNetworkNamespace function to tell
lxcContainerMountBasicFS if the netns is disabled. When no netns is
set up, then we don't mount the /proc/sys/net/ipv[46] folder RW as
these would provide full access to the host NICs config.
src/lxc/lxc_container.c