[LTP] [PATCH v3 0/2] mount03: Convert to new API

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Wed Aug 17 04:23:27 CEST 2022


Hi Petr

> Hi Xu,
> 
>> ...
>>>> +++ testcases/kernel/syscalls/mount/mount03.c
>> ...
>>>>    #define FILE_MODE	0644
>>>>    #define SUID_MODE	0511
>> Good catch, SUID_MODE must be 04511.
> 
> BTW reading https://lore.kernel.org/ltp/e043db5b-91cd-3e26-d6cd-32189c91518c@fujitsu.com/
> do you suggest to use
> #define SUID_MODE	0511 | S_ISUID
> 
> instead of this?
> #define SUID_MODE	04511

Yes,

Best Regards
Yang Xu
> 
> Kind regards,
> Petr
> 


More information about the ltp mailing list