[LTP] [PATCH COMMITTED] cve/cve-2016-7042: drop extra typedef for key_serial_t

Guangwen Feng fenggw-fnst@cn.fujitsu.com
Wed Aug 30 10:46:59 CEST 2017


Hi, Jan

在 08/30/2017 04:28 PM, Jan Stancek 写道:
> It now comes from lapi/keyctl.h:
>   cve-2016-7042.c:37: error: redefinition of typedef ‘key_serial_t’
>   ../../include/lapi/keyctl.h:31: note: previous declaration of ‘key_serial_t’ was here
>   make[2]: *** [cve-2016-7042] Error 1

Ah, I forgot to drop this line, thanks very much!

Best Regards,
Guangwen Feng

> 
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
>  testcases/cve/cve-2016-7042.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/testcases/cve/cve-2016-7042.c b/testcases/cve/cve-2016-7042.c
> index 228974f51c3f..ff9c0573f196 100644
> --- a/testcases/cve/cve-2016-7042.c
> +++ b/testcases/cve/cve-2016-7042.c
> @@ -34,8 +34,6 @@
>  #include "lapi/syscalls.h"
>  #include "lapi/keyctl.h"
>  
> -typedef int32_t key_serial_t;
> -
>  #define PATH_KEYS	"/proc/keys"
>  
>  static key_serial_t key;
> 




More information about the ltp mailing list