提交 71a50306 编写于 作者: S Stanislav Kinsbursky 提交者: J. Bruce Fields

nfsd: disable usermode helper client tracker in container

This tracker uses khelper kthread to execute binaries.
Execution itself is done from kthread context - i.e. global root is used.
This is not suitable for containers with own root.
So, disable this tracker for a while.

Note: one of possible solutions can be pass "init" callback to khelper, which
will swap root to desired one.
Signed-off-by: NStanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 96d851c4
...@@ -1185,6 +1185,12 @@ bin_to_hex_dup(const unsigned char *src, int srclen) ...@@ -1185,6 +1185,12 @@ bin_to_hex_dup(const unsigned char *src, int srclen)
static int static int
nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net) nfsd4_umh_cltrack_init(struct net __attribute__((unused)) *net)
{ {
/* XXX: The usermode helper s not working in container yet. */
if (net != &init_net) {
WARN(1, KERN_ERR "NFSD: attempt to initialize umh client "
"tracking in a container!\n");
return -EINVAL;
}
return nfsd4_umh_cltrack_upcall("init", NULL, NULL); return nfsd4_umh_cltrack_upcall("init", NULL, NULL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册