[LTP] [PATCH] syscalls/capget02: Use pid=0 instead of getpid()

Yang Xu xuyang2018.jy@cn.fujitsu.com
Thu Jan 9 11:14:24 CET 2020


Hi!> Hi!
>>> Since pid=0 returns the capabilities for the calling thread,
>>> we can remove getpid and use pid=0 instead of it. Also we
>>> can cover this test point.
>> Since I defined static struct, I think it doesn't need pid=0 assignment.
>> I will send a v2 and add comment.
> 
> If you are at it, can you also allocate guarded buffers instead?
Sure, I will use guarded buffers instead.
> 
> https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#2231-guarded-buffers
> 




More information about the ltp mailing list