Age | Commit message (Collapse) | Author | Files | Lines |
|
The sceanario of bootup-trace has vulnerability about
untrusted string loaded and execution.
This patch changes how to execution and remove system() calling.
And change open permission 0666 to 0600.
Change-Id: Ibfc19a9c8c7ef43af084e8d6b7496bf59c12dfe5
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
(cherry picked from commit 37138335b180b9c610c671c2103a00fd8a9fca82)
|
|
*For implicit declaration of function [-Wimplicit-function-declaration]
. Add #include <stdio.h> prior to use of the function vsnprintf.
*For Unused bariable [-Wunused-variable]
. Remove it. Really Unused.
. bufSize, buf, ret
*For Ignoring return value of func() [-Wunused-result]
. Remove the use of function by https://review.tizen.org/gerrit/#/c/124677/
Change-Id: I7e376cfc30078832141128d10b2e44cd598b9b56
|
|
|
|
4.x kernel splited traceFS and debugFS.
/sys/kernel/debug/tracing and /tmp should be mounted before
ttrace-marker.service started.
- Add sys-kernel-tracing.service to mount tracefs to /sys/kernel/debug/tracing
- Adjust ttrace-marker.service order to be after the sys-kernel-tracing.service
Change-Id: I48f08bb8d4a31fa24b8508307812241a6fcb73b6
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
tracing_init_dentry() auto-mount tracefs in kernel 4.10.x.
This initializing is triggered fs_initcall.
So, Removed code in this commit is meaningless.
Change-Id: I9ae499131d6f7a8d2dd6e6c2c2d09e33585e3bf6
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
Change smack labeling to using systemd tmpfiles
instead of set_smacklabel() initializing
Change-Id: I0e44ea62200929804c745175f73cd469b9b4623e
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
The libsmack function smack_setlabel is deprecated and will be removed.
Using the alternative instead.
Change-Id: Ia02383700175ba1e4eb91c85e4aa17c4033290f6
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
|
|
Change-Id: I4a0f580006ae18cc55901f912fc11ad999f5f3be
|
|
Change-Id: Ice3dd142bb38b15fa331157d2b6b0ef9dd106b8e
|
|
Change-Id: Iaa3a46b5d6550e02d3d5ea66d0213e44a2048779
|
|
Attacker can exploit by modified 'PATH' environment.
Excuting system command have to use absolute path.
Change-Id: Ided661e83c072684524c5ab8b73fc89db9842e13
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
Change-Id: I49fcc426b831cb28b951d0133d2bd61f6c478a8f
Signed-off-by: Gihun Chang <gihun.chang@samsung.com>
|
|
T-trace doesn't considering the case of dlclose().
If some package that use traceBegin, traceEnd call
dlopen(), dlclose() repeatly,
happen fd leakage at ttrace_tmp, trace_marker.
So, Add destructor function libttrace_fini()
that close all of opened file descriptor.
Change-Id: I6431b404827d160adb8176eefd7bd7f4fce620ef
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
T-trace forked from Android project.
Codes that related with the Android platform
remained at atrace.cpp.
Remove unused code at the Tizen platform
to enhance readability, maintainance.
Change-Id: Ifc926115dd5a64e1be47f7d23d457f35dd849f62
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
Remove usages of extension functions
to prevent accessing to uninitialized fd(trace_marker).
T-trace check whether initialing by isTagEnabled(),
However, g_extension_state can permit accessing to
uninitialized fd at all of write().
And, extension feature was not used anymore.
Additionally,
Use TTRACE_LOG() instead of fprintf(),
remove useless spaces for clean codes.
Change-Id: Iacf9f899378b4d9fb29f639f475e6624cee08d66
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
|
|
Check parameters of write system call
(buf, len, fd)
If find out currupted parameters,
return immediately.
Change-Id: I035223f3f2d2a07c877872e7a24db158d77a35b3
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
Applied APACHE2.0 boilerplate notice to trace.c, ttrace.c,
These files had owned older SLP boilerplate.
It should be replaced.
Change-Id: Ib064f2552c510d6a3352a631efe3bff395c4d05d
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
|
|
Change-Id: Ic0053ad161feed30fe29c99884489192f8b3b7ab
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
|
|
Add '-e' option to exclude specific tags,
for example, If you don't want to see 'wm' tag,
$ atrace -e wm
Also, 'am', 'gfx' tags
$ atrace -e wm -e am -e gfx
Change-Id: I94f0af6a52876a870a65301ae0a70a95ad751c10
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
|
|
For some specific demands, it adds extra tag 'DEBUG' for TV profile.
The tag will be used for logging miscellaneous stuff.
This tag is only avaliable on TV profile.
Change-Id: I81575e9bd0ebaaeb073bc1c6b48774f656a4a27a
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
|
|
buffer
print out error msg only if ttrace is running on debug mode
Change-Id: Ic1ee96dbb3a619cdf92187f2f5490b50b3781464
|
|
- add protection codes for avoding tracing msg size overflow
Change-Id: I5415c94b5ed77c1fa805ff73d6d12fc10194085c
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: Ia76b586c2ec8aae7482221a844c418971f6933e9
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: I4ddecf29c4918a641c6940f2910ae2e93b8a3754
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
_SC_GETGR_R_SIZE_MAX
Change-Id: I6abbe0da54442eb1172b0d611700b51d83c62e00
|
|
Change-Id: Iac00cf6c8efd6aebbcb3c8f5a3e3d09c2361fb9c
|
|
Change-Id: I28ac6943b4eca24924cff0f5d8f2c57302a5df99
|
|
Change-Id: I1112a5f039cb147b8b64dc428f42e9e97523b2c5
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: Idf74de606ca6a1d7977512d631ae4eeda1f9c73c
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: Ie3cba9e4c69c848ec88b4cad2e64c9c0a8c977e4
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Permission 0664 is not working atrace on Tizen3.0 targets(TM!).
Change to 0666 of related files.
Change-Id: Ia936a0f3db9b81cb4e2378f2687ade8f7d8e5f4b
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
|
|
sync with below commit,
spin change id : I81a345fdbf66e54cfbf1f3bcf0797fd91188b93c
spin commit id : 34f2dfa9650369778681e43b0d45768c036bfcd7
Change-Id: Ia0bbe19f47a23361385a34510b6c4f1c6768ca62
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
|
|
* remarkable changes
- creates ttrace_tag file when boot-up the device
- provides static lib. version of ttrace library
- dynamically generates ttrace.h
Change-Id: I2e08d234e96e4d921e0a52d403fed34e21175105
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: I6f35ad1861ea2d5fee51f4690183d969b4b50f47
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: I395a689e3d8c71a6806091738e7253ad91c208c9
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
Change-Id: I056f1d6825e66e414c81c60b5f8fb50a68cd8e71
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
|
|
ttrace was migrated from Tizen 2.4 repository.
Build environments is not suitable with ttrace.
Remove including tizen2.4 header and UTC related codes.
This patch only support to build armv7l arch.
Need more work to build other architectures.
(arch64, x86, x86_64, etc,.)
Change-Id: I6d98b5c0e4c006cf99c4a8341c1cf91eed9b7aa1
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
|
|
Migration ttrace from Tizen 2.4 repository
Change-Id: Ib70d79e7535a74a3681e5fc63eeaba27503923f8
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
|