]> 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:53:38 +0000 (14:53 -0500)
commitda206585cab734f103e6c010306e4643cd9aaf3b
treeccc4b06444e0fad19dc31bff5eccb3a99c1e940b
parentd29d4bad4a9a878981ae4711ae70ba24a2afd86d
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