• Pavel Emelyanov's avatar
    mount: Core for creating mount namespace · 95964f1b
    Pavel Emelyanov authored
    Namespace restore goes in two steps -- first, clean old mountpoints
    (except root) that are left after clone(CLONE_NEWNS) call. Next,
    repopulate the namespace with new mountpoints (except root) read
    from the image file.
    
    This patch adds the skeleton for the above -- reading the mountpoints
    from current proc and image and calling for mount/umount. The real
    action will come in further patches.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    95964f1b
namespaces.c 3.12 KB