Add secure log
authorHyunbin Lee <hyunbin.lee@samsung.com>
Tue, 11 Jun 2013 10:04:11 +0000 (19:04 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Wed, 12 Jun 2013 02:15:44 +0000 (11:15 +0900)
Change-Id: I18cac0f69bbed3bc52e400d315cf1d30e4ae176b
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
osp-env-config.c

index d39d551..8816eca 100644 (file)
@@ -76,7 +76,9 @@ get_app_rootpath_from_path(const char* bin_path)
        memset(app_rootpath, '\0', length + 1);
        strncpy(app_rootpath, bin_path, length);
 
+#ifdef _SECURE_LOG
        LOGI("input bin_path: %s", app_rootpath);
+#endif
 
        delimiter = strrchr(app_rootpath, '/');
        *delimiter = '\0';
@@ -642,7 +644,9 @@ do_pre_exec(const char* package_name, const char* bin_path)
     char osp_app_data_path[PATH_MAX] = { 0, };
     int osp_compat = 0;
 
-    LOGI("do_pre_exec() is called, package_name: %s, bin_path: %s", package_name, bin_path);
+#ifdef _SECURE_LOG
+       LOGI("do_pre_exec() is called, package name: %s, binary path: %s", package_name, bin_path);
+#endif
 
        app_rootpath = get_app_rootpath_from_path(bin_path);
 
@@ -667,8 +671,7 @@ do_pre_exec(const char* package_name, const char* bin_path)
 #endif
     // XXX-end
 
-    LOGI("package name: %s, binary path: %s, package id: %s, OSP compatibility: %d",
-            package_name, bin_path, package_id, osp_compat);
+       LOGI("package: %s (%s), binary: %s, OSP compatibility: %d", package_name, package_id, bin_path, osp_compat);
 
        // FIXME: Temporary code with security risk
        prctl(PR_SET_KEEPCAPS, 1);