]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-usernsexec: reopen fds 0,1,2 separately
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 14 Oct 2015 03:13:47 +0000 (03:13 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Nov 2015 19:50:10 +0000 (14:50 -0500)
commitd6de0d238720be2636cce3e00d612d010b0c0b60
tree3b38a4b0010215a9eb68b5af1425a09b34394615
parent9972fba5e250b155bb0a3bf6f4ba45149f8a8288
lxc-usernsexec: reopen fds 0,1,2 separately

lxc-usernsexec was using fd 0 and reopening it as 0,1,2 for
the new task.  If doing "lxc-usernsexec .. < script" this
will corrupt the file 'script'.

Reported-by: Fiedler Roman <Roman.Fiedler@ait.ac.at>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_usernsexec.c