Commit 80c4e86e authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

remap: don't try to remap other files in /proc

We can't remap these files correctly anyway, so we should just return success
if we find one of these files to remap.

v2: don't try to remap accessible files in /proc
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 867bcd21
...@@ -635,6 +635,8 @@ static int check_path_remap(char *rpath, int plen, const struct fd_parms *parms, ...@@ -635,6 +635,8 @@ static int check_path_remap(char *rpath, int plen, const struct fd_parms *parms,
return dump_dead_process_remap(pid, rpath + 1, plen - 1, ost, lfd, id, nsid); return dump_dead_process_remap(pid, rpath + 1, plen - 1, ost, lfd, id, nsid);
} }
} }
return 0;
} }
if (ost->st_nlink == 0) if (ost->st_nlink == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment