[CRIU] [PATCH 3/3] Open proc links with O_PATH

Pavel Emelyanov xemul at parallels.com
Fri Nov 6 07:40:09 PST 2015


On 11/06/2015 06:19 PM, Cyrill Gorcunov wrote:
> 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.

How about open_proc_path ?



More information about the CRIU mailing list