[LTP] [PATCH v2 1/3] syscalls/capset02: Cleanup & convert to new library

Yang Xu xuyang2018.jy@cn.fujitsu.com
Mon Jan 13 02:31:10 CET 2020


Hi Cyril
>> +	TEST(prctl(PR_CAPBSET_DROP, CAP_KILL));
>> +	if (TST_RET == -1)
>> +		tst_res(TFAIL | TTERRNO, "drop CAP_KILL failed");
>> +	else
>> +		drop_flag = 1;
> This flag does not seem to be used anywhere. Can't we simply tst_brk()
> here if the call fails?

Since it has used needs_root flag, I think removing this flag is ok(I 
removed it in verify functions, but forgot to remove it in setup).

Best Regards
Yang Xu




More information about the ltp mailing list