[LTP] [PATCH 2/2] syscalls/keyctl: Make use of lapi/keyctl.h && Add existing test to runtest/cve

Guangwen Feng fenggw-fnst@cn.fujitsu.com
Thu Aug 24 15:25:24 CEST 2017


Hi!

Thanks for your review!

在 08/23/2017 10:18 PM, Cyril Hrubis 写道:
> Hi!
>> -	keyctl(KEYCTL_READ, key, buffer, 4);
>> +	tst_syscall(__NR_keyctl, KEYCTL_READ, key, buffer, 4);
> 
> What about we, instead of using raw syscall, defined fallback keyctl()
> and add_key() in the lapi/keyctl.h that would call the syscall? That way
> we would test the keyutils library if present but these tests will not
> be disabled otherwise.
> 

Yes, that sounds good, thanks!

Best Regards,
Guangwen Feng




More information about the ltp mailing list