From: Hyunbin Lee Date: Thu, 13 Jun 2013 08:25:20 +0000 (+0900) Subject: Add secure logs X-Git-Tag: submit/tizen_2.2/20130714.152859~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=231b4c2c597626f28252b3e87af43c84f77ec682;p=framework%2Fosp%2Fenv-config.git Add secure logs Change-Id: I6a1b52422720b12b2e53214c8da9f76e465c4d53 Signed-off-by: Hyunbin Lee --- diff --git a/osp-env-config.c b/osp-env-config.c index 8816eca..3f94d6e 100644 --- a/osp-env-config.c +++ b/osp-env-config.c @@ -103,7 +103,9 @@ get_package_id_from_app_rootpath(const char* app_rootpath, char* package_id) } strncpy(package_id, p, _MAX_PACKAGEID_LENGTH); package_id[_MAX_PACKAGEID_LENGTH] = '\0'; +#ifdef _SECURE_LOG LOGI("package id: %s", package_id); +#endif } static void @@ -146,7 +148,9 @@ get_package_id_from_package_name(const char* package_name, char* package_id) } package_id[_MAX_PACKAGEID_LENGTH] = '\0'; +#ifdef _SECURE_LOG LOGI("package_id: %s", package_id); +#endif } static int @@ -546,9 +550,8 @@ do_pre_exe(const char* package_name, const char* bin_path, const char* package_i /* e.g., app_rootdir is "/opt/apps/com.samsung.basicapp or /opt/osp/applications/[appId] */ app_rootpath = get_app_rootpath_from_path(bin_path); - LOGI("[data_caging] do_pre_exe() was called, package name: %s, \ - binary path: %s, application root(home) path: %s, package id: %s", - package_name, bin_path, app_rootpath, package_id); + LOGI("[data_caging] do_pre_exe() was called, package: %s (%s), binary: %s, app root: %s", + package_name, package_id, bin_path, app_rootpath); umask(0000); @@ -671,7 +674,7 @@ do_pre_exec(const char* package_name, const char* bin_path) #endif // XXX-end - LOGI("package: %s (%s), binary: %s, OSP compatibility: %d", package_name, package_id, bin_path, osp_compat); + LOGI("package: %s (%s), binary: %s, OSP compat: %d", package_name, package_id, bin_path, osp_compat); // FIXME: Temporary code with security risk prctl(PR_SET_KEEPCAPS, 1);