]> err.no Git - util-linux/commit
switch_root: do recursiveRemove after our root is moved to avoid races.
authorPeter Jones <pjones@redhat.com>
Fri, 19 Jun 2009 19:44:32 +0000 (15:44 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jun 2009 19:45:25 +0000 (21:45 +0200)
commit2a7ccc65e998fb5b5ad679866730bcdbfc2c1f88
tree2666a4ad890ca80a1f9755a42ce982bd01d11141
parent4c2d96e62a081aa0441a7724323a45035413da56
switch_root: do recursiveRemove after our root is moved to avoid races.

This way there's no race between unlinking the /newroot directory and
the MS_MOVE/chroot() to get away from it.

Signed-off-by: Peter Jones <pjones@redhat.com>
sys-utils/switch_root.c