Open map_files with O_PATH
This descriptor is stat()-ed and used to dump file information. In both cases even read access is not required. Even if we decide to go dump ghost file out of it we'll re-open one with O_RDONLY. Signed-off-by:Pavel Emelyanov <xemul@parallels.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org>
Showing
Please
register
or
sign in
to comment