• Pavel Emelyanov's avatar
    image: Open images via openat · ffacd0f1
    Pavel Emelyanov authored
    Using absolute paths for this is dangerous - while doing c/r we should
    be extremely carefully and not change tasks' roots and mount namespaces
    too early. Sometimes it will not work -- when restoring containers we'll
    be unable to switch to new CT and still have the ability to open images.
    
    Rework the images opening via openat and keep the image dir fd open all
    the time as the service fd (introduced earlier).
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    ffacd0f1
crtools.c 9.35 KB