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

Cyril Hrubis chrubis@suse.cz
Thu Jan 9 10:59:55 CET 2020


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?

https://github.com/linux-test-project/ltp/wiki/Test-Writing-Guidelines#2231-guarded-buffers

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list