ima_measure doesn't build correctly. It needs config.h to determine whether openssl headers are present, and verbose needs to be global. Broken by commit ef77253961f909f87e82e6d2b620e87af33e9665.
Signed-off-by: Stephen D. Smalley <[email protected]> --- diff --git a/testcases/kernel/security/integrity/ima/src/ima_measure.c b/testcases/kernel/security/integrity/ima/src/ima_measure.c index dd6b1d0..0484c04 100644 --- a/testcases/kernel/security/integrity/ima/src/ima_measure.c +++ b/testcases/kernel/security/integrity/ima/src/ima_measure.c @@ -22,7 +22,7 @@ #include <fcntl.h> #include <string.h> #include <unistd.h> -//#include "config.h" +#include "config.h" #include "test.h" #if HAVE_OPENSSL_SHA_H #include <openssl/sha.h> @@ -33,6 +33,8 @@ char *TCID = "ima_measure"; int TST_TOTAL = 1; +static int verbose; + #define print_info(format, arg...) \ if (verbose) \ printf(format, ##arg) @@ -135,9 +137,8 @@ main(int argc, char *argv[]) FILE *fp; struct event template; u_int8_t pcr[SHA_DIGEST_LENGTH]; - int i, count = 0, len; + int i, count = 0; - int verbose = 0; int validate = 0; int verify = 0; -- Stephen Smalley National Security Agency ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
