Skip to content

RFC Namespace contrained helper execution

Ian Kent lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vfs - fs/namespaces.c: break out mntns_setfs() from mntns_install()fs/namespace.c include/linux/mount.h+30 -120 replies
2/4nsproxy - make create_new_namespaces() non-staticinclude/linux/nsproxy.h kernel/nsproxy.c+4 -10 replies
3/4kmod - add call_usermodehelper_ns() helperinclude/linux/kmod.h kernel/kmod.c+56 -022 replies
4/4KEYS: exec request-key within the requesting task's namespacesecurity/keys/request_key.c+39 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Namespace contrained helper execution

Hi all,

Some time ago an attempt was made to update call_usermodehelper() to execute within it's namespace.

Comments at the time were basically that the approach didn't go nearly far enough to constrain the process.

This series attempts to remedy that by taking care to create an appropriate namespace environment then switch to it and setup fs_struct for path walking prior to the user mode helper thread runner calling do_execve().

Please review and comment on the patch series.
Ian

---

Benjamin Coddington (1):
KEYS: exec request-key within the requesting task's namespace

Ian Kent (3):
vfs - fs/namespaces.c: break out mntns_setfs() from mntns_install() nsproxy - make create_new_namespaces() non-static
kmod - add call_usermodehelper_ns() helper

 fs/namespace.c              |   41 ++++++++++++++++++++++++++++-----------
 include/linux/kmod.h        |   17 ++++++++++++++++
 include/linux/mount.h       |    1 +
 include/linux/nsproxy.h     |    3 +++
 kernel/kmod.c               |   39 +++++++++++++++++++++++++++++++++++++
 kernel/nsproxy.c            |    2 +-
 security/keys/request_key.c |   45 +++++++++++++++++++++++++++++++++++++------
 7 files changed, 129 insertions(+), 19 deletions(-)

--
Signature