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

Jan Stancek jstancek@redhat.com
Wed Aug 30 10:28:32 CEST 2017


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

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;
-- 
1.8.3.1



More information about the ltp mailing list