summaryrefslogtreecommitdiff
path: root/packaging
AgeCommit message (Collapse)AuthorFilesLines
2018-07-10Add condition and change options for tracefssubmit/tizen_4.0/20180710.073826accepted/tizen/4.0/unified/20180711.132700tizen_4.0accepted/tizen_4.0_unifiedjoon.c.baek1-1/+2
To mount tracefs needs to check existed path, And add mount options in details. Change-Id: I9393c5629b8bf423d48ecec51fd4d99418d421cc Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2018-07-09Revert "Remove sys-kernel-debug-tracing.mount"submit/tizen_4.0/20180710.003617submit/tizen_4.0/20180710.003205joon.c.baek3-1/+24
'sys-kernel-debug-tracing.mount' was removed for resolving 'systemctl --state failed' issue. However, Add 'Options=remount,rw' to this file, it can be solution also. This reverts commit 0a2883bf7940b3ee138551434117d3ea63cbfb2a. Change-Id: I5d7f4f5236f7212f06f41bd7ddf815c3f548c85a
2018-06-28Remove sys-kernel-debug-tracing.mountsubmit/tizen_4.0/20180628.103515accepted/tizen/4.0/unified/20180629.000214joon.c.baek3-24/+1
Change-Id: I8f549274fcc65c8a4fb8c5f1c289874c281ed964 Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2017-11-27Change permission of /tmp/ttrace_tag and servicetizen_4.0.IoT.p2_releasesubmit/tizen_4.0/20171129.012549submit/tizen_4.0/20171128.025522accepted/tizen/4.0/unified/20171130.063520accepted/tizen/4.0/unified/20171130.063510tizen_4.0_tvjoon.c.baek2-1/+3
- Change permisstion of /tmp/ttrace_tag root -> system_fw - Assign User/Group to ttrace-marker.service root -> system_fw Change-Id: Ic48b0cfd347f56da2a052511e9e37edac539d033 Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2017-11-23Add sys-kernel-debug-tracing.mount filesubmit/tizen_4.0/20171127.060708submit/tizen_4.0/20171124.014048submit/tizen_4.0/20171123.075251accepted/tizen/4.0/unified/20171124.063731joon.c.baek4-24/+23
- Add sys-kernel-debug-tracing.mount to replace sys-kernel.tracing.service. - This file can mount tracefs without /bin/touch executable. Change-Id: I035fc08243c95b09c39a70c46acecc758d7c7d1b Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2017-09-19Assign capabilities 'cap_dac_override' to servicetizen_4.0.m2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170925.021921accepted/tizen/4.0/unified/20170926.062154joon.c.baek1-0/+4
'cap_dac_override' capabilities used inteaded of root permission of sys-kernel-tracing.service. Change-Id: I71870eab4c2a32ac3a904f9713f0cb73a2295126 Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2017-09-18Merge "Resolve vulnerability about untrusted string" into tizen_4.0joon.c.baek1-6/+7
2017-09-15Resolve vulnerability about untrusted stringjoon.c.baek1-6/+7
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)
2017-09-15Set Smack label to ttrace-marker.servicejoon.c.baek1-0/+1
Add SmackProcessLabel=System at ttrace-marker.service. Without this label, ttrace-marker.service will be worked as System::Privileged, This service is enough with System label. Change-Id: I8d588822713a7c7a376f4cbc24e870f3c33bfdbd Signed-off-by: joon.c.baek <joon.c.baek@samsung.com> (cherry picked from commit 2d15fe2785c4adf8cae34f7ea7b16a128f9439b2)
2017-08-01Revert "Remove build warnings with gcc 6.2"Gihun Chang1-2/+2
This reverts commit f4dc8f8166d34463ac1cbe4750fcadf5f364fc83. Change-Id: Ic13032fd562ef5b124e223bada29bd57f89f6b8b
2017-06-05Merge "Remove build warnings with gcc 6.2" into tizensubmit/tizen/20170605.012851accepted/tizen/unified/20170605.151226Gihun Chang1-2/+2
2017-06-02Add traceFS mount service and adjust service ordersubmit/tizen/20170602.072408accepted/tizen/unified/20170602.155201Changjoon Baek3-6/+25
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>
2017-05-30Remove build warnings with gcc 6.2Gihun Chang1-2/+2
* warning: implicit declaration of function 'vsnprintf' [-Wimplicit-function-declaration] * warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result] Change-Id: Ie400cc8fea6b99d08ab935198b60ec1767ac75c6
2017-05-19Apply %license macrosubmit/tizen/20170522.043327accepted/tizen/unified/20170531.082331Changjoon Baek1-3/+1
Remove manual copy for license file in spec Change-Id: Ie3288252dcf5f667d1bc3524439685d29fc18bfb Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
2017-03-08Apply Tizen 3.0 Smack policy to ttrace pkgChangjoon Baek4-133/+50
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>
2017-01-13Prepare for Tizen 4.0 BuildMyungJoo Ham1-1/+1
I've assumed that Tizen 4.0 code is going to be more similar with 3.0 than 2.0. Please do not rely on string == compare for version check. Change-Id: I7465a0b1cd26de939f60190cf8e2227aa1e9e763 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2016-12-22Update T-Trace version to 1.0.3res/for/tizen_3.0Gihun Chang1-1/+1
Change-Id: Ibdc1cef11acc258bfed7e61303b648ace77bfd1f
2016-12-20Remove dependancy with libstdc++Changjoon Baek1-1/+1
The dependancy with libstdc++ existed meaningless. Remove depandancy using "-fno-exceptions" option. Change-Id: I405922988bccebf5760be58586f98f5a392b319e Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
2016-11-23Sync the package version with csapi.submit/tizen/20161123.094102accepted/tizen/wearable/20161123.233135accepted/tizen/tv/20161123.233116accepted/tizen/mobile/20161123.233057accepted/tizen/ivi/20161123.233155accepted/tizen/common/20161124.170018Gihun Chang1-1/+1
Change-Id: I179c4e25b033533004765661986b37078bd91c6f Signed-off-by: Gihun Chang <gihun.chang@samsung.com>
2016-10-21Remove usages of extension functionssubmit/tizen_3.0_common/20161104.104000submit/tizen/20161026.074554accepted/tizen/wearable/20161028.151457accepted/tizen/tv/20161028.151455accepted/tizen/mobile/20161028.151452accepted/tizen/ivi/20161028.151500accepted/tizen/common/20161026.134617Changjoon Baek1-1/+0
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>
2016-08-30Merge "Add comment in spec file to avoid misunderstandings" into tizensubmit/tizen_3.0_wearable/20161015.000006submit/tizen_3.0_tv/20161015.000006submit/tizen_3.0_mobile/20161015.000007submit/tizen_3.0_ivi/20161010.000007submit/tizen/20160831.045905accepted/tizen/wearable/20160831.124939accepted/tizen/tv/20160831.124926accepted/tizen/mobile/20160831.124921accepted/tizen/ivi/20160831.124953accepted/tizen/common/20160831.161839accepted/tizen/3.0/wearable/20161015.084438accepted/tizen/3.0/tv/20161016.010023accepted/tizen/3.0/mobile/20161015.034346accepted/tizen/3.0/ivi/20161011.065143Gihun Chang1-0/+1
2016-08-29Add comment in spec file to avoid misunderstandingsMyungJoo Ham1-0/+1
The build macro "tizen_profile_name" is not used in Tizen.org OBS (build.tizen.org), but it can be used by vendors to enable optional features. This patch clarifies that such a macro is not for Tizen.org OBS. Change-Id: I43bc94b0d29c429d6021efff27a667a4b3c5644f Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2016-08-08Revert "Assign UID/GID"joon.c.baek2-7/+5
This reverts commit 711777b1a5237d47e7fb94d9884ff93d71815872.
2016-08-08Assign UID/GIDjoon.c.baek2-5/+7
Change-Id: I785b755390f625e302117deab71c97bfa4f493a5 Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2016-07-21Set SmackProcessLabel as System.submit/tizen/20160721.003054accepted/tizen/wearable/20160721.090838accepted/tizen/tv/20160721.091251accepted/tizen/mobile/20160721.090327accepted/tizen/ivi/20160721.090701accepted/tizen/common/20160721.175521jin-gyu.kim1-1/+1
Change-Id: I0bd03aaadafd505808b4c21247c277cc283cdd63
2016-06-28add PATH environment to atrace-bootup.shsubmit/tizen_common/20160701.180000submit/tizen/20160628.124122accepted/tizen/wearable/20160629.021514accepted/tizen/tv/20160629.021323accepted/tizen/mobile/20160629.021518accepted/tizen/ivi/20160629.021441accepted/tizen/common/20160703.125943Eunji, Lee1-1/+1
Change-Id: I4ebcc3f05948405ce2078d77bbf2ca481e0f6a43 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-06-07organize build scriptssubmit/tizen/20160607.095726accepted/tizen/wearable/20160607.235512accepted/tizen/tv/20160607.235501accepted/tizen/mobile/20160607.235535accepted/tizen/ivi/20160607.235532accepted/tizen/common/20160607.194748Eunji, Lee1-8/+4
Change-Id: I369324d51d9684cdef17e662e85f09a349ff0785 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-05-26add ttrace_exension_write() call to trace APIsEunji, Lee2-1/+2
Change-Id: Ia76b586c2ec8aae7482221a844c418971f6933e9 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-05-24Adds command to auto-mount tracingfs for enabling ttrace on linux kernel >= 4.1Eunji, Lee1-1/+1
Change-Id: I4ddecf29c4918a641c6940f2910ae2e93b8a3754 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-04-15change group name to support latest tizen 3.0Eunji, Lee1-1/+6
Change-Id: I28ac6943b4eca24924cff0f5d8f2c57302a5df99
2016-03-04fix fd handle leak in atrace.cpp and ttrace.cEunji, Lee1-1/+0
Change-Id: I1112a5f039cb147b8b64dc428f42e9e97523b2c5 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-02-25modify indentations and commentssubmit/tizen_common/20160229.190608submit/tizen/20160228.234815submit/tizen/20160225.080544accepted/tizen/wearable/20160229.095437accepted/tizen/wearable/20160226.041113accepted/tizen/tv/20160229.095417accepted/tizen/tv/20160226.041056accepted/tizen/mobile/20160229.095402accepted/tizen/mobile/20160226.041043accepted/tizen/ivi/20160229.095501accepted/tizen/ivi/20160226.041125accepted/tizen/common/20160301.120627Eunji, Lee1-2/+21
Change-Id: I93776ee31c68253ad287c2b95748d163530c26eb Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-02-15sync with 2.4 branch (commit:1ae27085e86ce77d74922fc43a256a9e7108724e)Eunji, Lee1-1/+2
Change-Id: Ie3cba9e4c69c848ec88b4cad2e64c9c0a8c977e4 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2016-01-06ttrace: sync with latest code at spin serverjoon.c.baek4-52/+53
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>
2015-12-22spec: use macro '%cmake' instead of 'cmake' commandjoon.c.baek1-1/+1
Using 'cmake' command directly, ttrace.pc file does not contain 'libdir' path corretly. So, use '%cmake' macro to fix that problem. Change-Id: Ic57e4405017491965da717b849b094f28e95038f Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2015-09-10resolve smack permission issuses and update ttrace to the latest versionEunji, Lee3-55/+148
* 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>
2015-08-12modify ttrace.spec - change ttrace-marker.service install dirEunji, Lee1-7/+8
Change-Id: Ifcd5fea6ec5c06655701acc6eb3f93aa30536070 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2015-07-01change smack label to '_'Eunji, Lee1-1/+0
Change-Id: I18e55286a01d03f07d5f386aa5f981e319158c51 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2015-06-30[TTRACE] Sync. with T-trace package on tizen2.4Eunji, Lee4-3/+9
Change-Id: I6f35ad1861ea2d5fee51f4690183d969b4b50f47 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2015-06-09[TTRACE] Add Error code for UTCEunji, Lee1-0/+1
Change-Id: I395a689e3d8c71a6806091738e7253ad91c208c9 Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
2015-05-26ttrace: Support AARCH64joon.c.baek1-1/+1
Support AARCH64 Change-Id: I1c1b13289067d77cd4f36ceee249143c4ad54bcf Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
2015-05-22ttrace: Migration ttrace from Tizen 2.4 repositoryjoon.c.baek3-0/+150
Migration ttrace from Tizen 2.4 repository Change-Id: Ib70d79e7535a74a3681e5fc63eeaba27503923f8 Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>