Skip to content
Commit c378f790 authored by Pavel Emelyanov's avatar Pavel Emelyanov
Browse files

fs: Restore root



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>
parent 75b1d4a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment