[CRIU] [PATCH 3/3] Open proc links with O_PATH
Cyrill Gorcunov
gorcunov at gmail.com
Fri Nov 6 07:19:09 PST 2015
On Fri, Nov 06, 2015 at 12:01:04PM +0300, Pavel Emelyanov wrote:
> These three are like map_files one.
>
> diff --git a/include/util.h b/include/util.h
> index e815117..8572267 100644
> --- a/include/util.h
> +++ b/include/util.h
> @@ -94,6 +94,9 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...);
> #define open_proc_rw(pid, fmt, ...) \
> __open_proc(pid, O_RDWR, fmt, ##__VA_ARGS__)
>
> +#define open_proc_p(pid, fmt, ...) \
> + __open_proc(pid, O_PATH, fmt, ##__VA_ARGS__)
> +
Maybe it worth naming it as open_proc_opath? Frankly _p
postfix tells nothing.
More information about the CRIU
mailing list