Skip to content
  • Pavel Emelyanov's avatar
    c378f790
    fs: Restore root · c378f790
    Pavel Emelyanov authored
    
    
    First of all, this should be done strictly after we've stopped accessing
    files by their paths, even absolute. This place is right before going
    into restorer.
    
    And the second thing is that we want to re-use the open_fd_by_id engine,
    since it handles various tricky cases of open-file-by-path. And since
    there's no such thing as fchroot(int fd), we emulate it using the
    /proc/self/fd/ links.
    
    Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
    c378f790
    fs: Restore root
    Pavel Emelyanov authored
    
    
    First of all, this should be done strictly after we've stopped accessing
    files by their paths, even absolute. This place is right before going
    into restorer.
    
    And the second thing is that we want to re-use the open_fd_by_id engine,
    since it handles various tricky cases of open-file-by-path. And since
    there's no such thing as fchroot(int fd), we emulate it using the
    /proc/self/fd/ links.
    
    Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
Loading