]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: make proc entries inherit ownership from parent
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Aug 2016 21:36:01 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 04:07:20 +0000 (21:07 -0700)
commitc110486f6cb240f36ec143cad6628d52c071f529
treec7b7e3033c55e91744c9271ffd37917ee78f6085
parentf8c46cb39079b7415ada1affc4631ae761d8b621
proc: make proc entries inherit ownership from parent

There are certain parameters that belong to net namespace and that are
exported in /proc. They should be controllable by the container's owner,
but are currently owned by global root and thus not available.

Let's change proc code to inherit ownership of parent entry, and when
create per-ns "net" proc entry set it up as owned by container's owner.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/proc/generic.c
fs/proc/proc_net.c