From ce7fc460fad2e2448aff291743fabf60b3bdd096 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Gattupalli Date: Mon, 14 Nov 2022 19:02:35 +0530 Subject: ADSPRPC: Disable testsig logs in fopen Disabled printing testsig related file open warning messages which exposes device serial number on Commercial devices. CRs-Fixed: 2888258 Change-Id: I7217f290536ae7e4f825aa4cbd5cf5269d71cd39 --- src/apps_std_imp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/apps_std_imp.c b/src/apps_std_imp.c index d2559c6..eb49755 100644 --- a/src/apps_std_imp.c +++ b/src/apps_std_imp.c @@ -82,6 +82,10 @@ #define ION_HEAP_ID_QSEECOM 27 +#define OEM_CONFIG_FILE_NAME "oemconfig.so" +#define TESTSIG_FILE_NAME "testsig" +#define RPC_VERSION_FILE_NAME "librpcversion_skel.so" + #define FREEIF(pv) \ do {\ if(pv) { \ @@ -746,7 +750,11 @@ bail: FREEIF(absName); FREEIF(dirListBuf); if (nErr != AEE_SUCCESS) { - VERIFY_IPRINTF("Error %x: fopen failed for %s. (%s)", nErr, name, strerror(ERRNO)); + if (ERRNO != ENOENT || + (std_strncmp(name, OEM_CONFIG_FILE_NAME, std_strlen(OEM_CONFIG_FILE_NAME)) != 0 + && std_strncmp(name, RPC_VERSION_FILE_NAME, std_strlen(RPC_VERSION_FILE_NAME)) != 0 + && std_strncmp(name, TESTSIG_FILE_NAME, std_strlen(TESTSIG_FILE_NAME)) != 0)) + VERIFY_IPRINTF("Error %x: fopen failed for %s. (%s)", nErr, name, strerror(ERRNO)); } return nErr; } -- cgit v1.2.3