From 5725e0112e457b87040040554e8eacda2f541d40 Mon Sep 17 00:00:00 2001 From: Changjoon Baek Date: Mon, 5 Dec 2016 13:14:10 +0900 Subject: Use absolute path for execlp() Attacker can exploit by modified 'PATH' environment. Excuting system command have to use absolute path. Change-Id: Ided661e83c072684524c5ab8b73fc89db9842e13 Signed-off-by: Changjoon Baek --- src/atrace/atrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atrace/atrace.cpp b/src/atrace/atrace.cpp index 6293b06..3fabf0b 100755 --- a/src/atrace/atrace.cpp +++ b/src/atrace/atrace.cpp @@ -514,7 +514,7 @@ static bool setTagsProperty(uint64_t tags) return false; } //for auto-mounting tracingfs (>= linux 4.1.x) - system("ls -al /sys/kernel/debug/tracing > /dev/null 2>&1"); + system("/usr/bin/ls -al /sys/kernel/debug/tracing > /dev/null 2>&1"); if(!initSysfsPermission()) { fprintf(stderr, "Fail to init sysfs permisions: %s(%d)\n", strerror_r(errno, str_error, sizeof(str_error)), errno); munmap(sm_for_enabled_tag, sizeof(uint64_t)); -- cgit v1.2.3 From 762db4f43830730c2f75c46b684cc4c78f937e70 Mon Sep 17 00:00:00 2001 From: Gihun Chang Date: Thu, 22 Dec 2016 11:05:43 +0900 Subject: Update T-Trace version to 1.0.3 Change-Id: Ibdc1cef11acc258bfed7e61303b648ace77bfd1f --- packaging/ttrace.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/ttrace.spec b/packaging/ttrace.spec index e4aac41..0e805be 100755 --- a/packaging/ttrace.spec +++ b/packaging/ttrace.spec @@ -1,6 +1,6 @@ Name: ttrace Summary: T-trace for tizen -Version: 1.0.2 +Version: 1.0.3 Release: 1 Group: System/Libraries License: Apache-2.0 -- cgit v1.2.3 From 0ba9cafb5b81b669b4714cfacbd1566c14f2e13b Mon Sep 17 00:00:00 2001 From: Gihun Chang Date: Thu, 12 Jan 2017 19:04:01 +0900 Subject: Update support version of werable profile (3.0 -> 2.3.2) Change-Id: Icac243d8093e0460d74267d2a59e0e82c897163a --- include/trace.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 include/trace.h diff --git a/include/trace.h b/include/trace.h old mode 100644 new mode 100755 index 80da517..fc9974d --- a/include/trace.h +++ b/include/trace.h @@ -37,7 +37,7 @@ extern "C" { /** * @brief Enumeration for Trace Error. -* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif +* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif */ typedef enum { TRACE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ @@ -47,7 +47,7 @@ typedef enum { /** * @brief Writes a trace event to indicate that a synchronous event has begun. * - * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @param[in] name The name of event (optionally containing format specifiers) * @exception TRACE_ERROR_NONE Success @@ -59,7 +59,7 @@ void trace_begin(const char *name, ...); /** * @brief Writes a trace event to indicate that the synchronous event has ended. * - * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif * @remarks trace_end() ends the most recently called trace_begin(). * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @exception TRACE_ERROR_NONE Success @@ -71,7 +71,7 @@ void trace_end(); /** * @brief Writes a trace event to indicate that an asynchronous event has begun. * - * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @param[in] cookie An unique identifier for distinguishing simultaneous events * @param[in] name The name of event (optionally containing format specifiers) @@ -84,7 +84,7 @@ void trace_async_begin(int cookie, const char *name, ...); /** * @brief Writes a trace event to indicate that the asynchronous event has ended. * - * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif * @remarks trace_async_end() ends matched trace_async_begin() which has same cookie and name. * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @param[in] cookie An unique identifier for distinguishing simultaneous events @@ -98,7 +98,7 @@ void trace_async_end(int cookie, const char *name, ...); /** * @brief Writes a trace event to track change of integer counter * - * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif * @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @param[in] value The counter value * @param[in] name The name of event (optionally containing format specifiers) -- cgit v1.2.3