]> www.infradead.org Git - users/jedix/linux-maple.git/commit
export host-only net/core and net/ipv4 parameters to a container as read-only
authorThomas Tanaka <thomas.tanaka@oracle.com>
Fri, 2 Oct 2015 00:17:52 +0000 (17:17 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Thu, 22 Oct 2015 15:41:08 +0000 (08:41 -0700)
commit231092a6df3979397498f04716d93d1c20369e78
treea6158787b35dc5d056d255c076b278070182cd77
parent11e61c17903a325d59b01fbd203be1d1006cabeb
export host-only net/core and net/ipv4 parameters to a container as read-only

export host-only net/core and net/ipv4 parameters to a container as read-only

For Oracle applications to run inside the Linux container, certain
net/core, net/ipv4 sysctl parameters need to be available.

On UEK2 and later kernels upto v3.5, these parameters were exported
as *read-only* to a container. However, in the newer kernels, upstream
has abandoned exporting it even in read-only mode.

To be able to support these applications unmodified on UEK4, we need to
restore that functionality. This patch does just that.

There is a plan to explore this further to come up with list of *must have*
parameters to be available inside containers and then propose upstream to
move them in the network namespace sysctls.

Orabug: 21880402

This patch is a backport from UEK3 (Orabug 21151210)

Acked-by: Guru Anbalagane <guru.anbalagane@oracle.com>
Signed-off-by: Thomas Tanaka <thomas.tanaka@oracle.com>
net/core/sysctl_net_core.c
net/ipv4/sysctl_net_ipv4.c