[ I've already pushed this to git, but am sending it to the mailing
list as it is broken in beta1, so distos wanting to have working
unprivileged containers will need this patch on top of beta1 ]

In what should have been a straightforward fix for a bug found by
priority, I sent 1 instead of '1' from parent to child, while the
child checked for '1'.  Fix.

Signed-off-by: Serge Hallyn <[email protected]>
---
 src/lxc/lxc_usernsexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_usernsexec.c b/src/lxc/lxc_usernsexec.c
index 98e4fa2..e36ff34 100644
--- a/src/lxc/lxc_usernsexec.c
+++ b/src/lxc/lxc_usernsexec.c
@@ -425,7 +425,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
-       buf[0] = 1;
+       buf[0] = '1';
        if (map_child_uids(pid, active_map)) {
                fprintf(stderr, "error mapping child\n");
                ret = 0;
-- 
1.8.5.2

_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to