[LTP] [PATCH 1/2] syscalls/capget01: Cleanup & convert to new library
Yang Xu
xuyang2018.jy@cn.fujitsu.com
Wed Jan 8 03:34:59 CET 2020
Hi Cyril
> Hi!
> Also btw, we do not cover the case with pid == 0 now, which should
> return the capabilities for the calling thread. I guess that we can run
> the capget01 verify function twice, once for pid == getpid() and once
> for pid == 0.
>Sorry, I didn't notice this before.
I double read capget/capset man-pages and refer to kernel code.
pid = 0 that it indeed returns the the capabilities for the calling
thread. I will add it.
Also, for capget syscall, it can get the capabilities for any existed
process. I think we should also test this by using child process in a
new case like capset04.c.
Best Regards
Yang Xu
More information about the ltp
mailing list