platform/upstream/csr-framework.git
3 years agoRemove useless set_capability command 94/251994/2 accepted/tizen/unified/20210121.233226 submit/tizen/20210121.231139
Sangwan Kwon [Thu, 21 Jan 2021 09:16:18 +0000 (18:16 +0900)]
Remove useless set_capability command

Change-Id: I99a72a6b7b1b2fab54f10758d1b98b045e37fb5d
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoRevert "Fix uncaught exception" 73/242573/1
Sangwan Kwon [Fri, 28 Aug 2020 04:36:44 +0000 (13:36 +0900)]
Revert "Fix uncaught exception"

- False-positive defect

This reverts commit d98f44208cabb72b8b4a99d25dc9b40bf8e107dd.

Change-Id: I384c117cabad0730aaf2cc83eef8d318be79b5b2
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix uncaught exception 70/242570/1 submit/tizen/20200828.041615
Sangwan Kwon [Fri, 28 Aug 2020 04:06:13 +0000 (13:06 +0900)]
Fix uncaught exception

Change-Id: I1fec774bde62ab217580379a38943ce4f57b6212
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix unchecked return value 21/230421/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.104419 accepted/tizen/6.0/unified/hotfix/20201102.235534 accepted/tizen/unified/20200410.122736 submit/tizen/20200410.035811 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
Sangwan Kwon [Fri, 10 Apr 2020 01:52:11 +0000 (10:52 +0900)]
Fix unchecked return value

Change-Id: I39b362b4dc1e4ed4de86abbdd15480bd40b3b2ad
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoUpgrade version to 2.3.7 47/226047/1 accepted/tizen/unified/20200305.123320 submit/tizen/20200227.015625 submit/tizen/20200227.054011
Sangwan Kwon [Wed, 26 Feb 2020 08:21:57 +0000 (17:21 +0900)]
Upgrade version to 2.3.7

* Fix coverity defect

Change-Id: Id5ea5c5f3219e52cdb5df3367b891bb1ba610134
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix coverity defect 20/226020/2
Sangwan Kwon [Wed, 26 Feb 2020 06:56:32 +0000 (15:56 +0900)]
Fix coverity defect

* MISSING_MOVE_ASSIGNMENT
* UNCAUGHT_EXCEPT

Change-Id: I4ab109a4737b54263c5d54ac07004032b0a483b5
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix coverity defect 30/225030/1 accepted/tizen/unified/20200218.145936 submit/tizen/20200217.042237
Sangwan Kwon [Mon, 17 Feb 2020 01:45:07 +0000 (10:45 +0900)]
Fix coverity defect

* Uncaught exception

Change-Id: I42d3930d0b385f147cebb82c8126931e9c794f25
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoUpgrade version to 2.3.6 61/222161/2 accepted/tizen/unified/20200113.130628 submit/tizen/20200110.050843
Sangwan Kwon [Fri, 10 Jan 2020 04:48:15 +0000 (13:48 +0900)]
Upgrade version to 2.3.6

* Bump to gcc9

Change-Id: I3f07ddc7fc03e1d25dc63c01d1ad03a6a90b7888
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix stringop-truncation warning 60/222160/2
Sangwan Kwon [Fri, 10 Jan 2020 04:47:47 +0000 (13:47 +0900)]
Fix stringop-truncation warning

Pathname sockets: The pathname in sun_path should be null-terminated.
ref: http://man7.org/linux/man-pages/man7/unix.7.html

Change-Id: Ie3cd95aff89e8f77e07acdac9e181a092b731bee
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoDo not capture reference on non-local lambda 78/221678/1 accepted/tizen/unified/20200108.131639 submit/tizen/20200107.053941
Sangwan Kwon [Tue, 7 Jan 2020 03:32:06 +0000 (12:32 +0900)]
Do not capture reference on non-local lambda

Change-Id: I033029a0b0c7bbaaaa02d1d86348576af221e581
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years ago[Tizen 6.0] Support build with GCC 9.2 77/221677/1
Mikhail Kashkarov [Mon, 16 Dec 2019 05:04:18 +0000 (08:04 +0300)]
[Tizen 6.0] Support build with GCC 9.2

wp-loader.cpp:34:49: error: 'function' in namespace 'std' does not name
                     a template type
   34 | int getValueCstr(std::string &value, const std::function<int(const char **)> &getfunc)
      |                                                 ^~~~~~~~
wp-loader.cpp:29:1: note: 'std::function' is defined in header '<functional>';
                    did you forget to '#include <functional>'?
   28 | #include "common/exception.h"
  +++ |+#include <functional>

Change-Id: I7d4d627cfef2356a2061f6b5e7051e34a68fcee1
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoBump boost version to 1.71.0 62/219762/1 accepted/tizen/unified/20191210.141131 submit/tizen/20191210.060021
Sangwan Kwon [Tue, 10 Dec 2019 00:47:24 +0000 (09:47 +0900)]
Bump boost version to 1.71.0

Change-Id: I794ed2db4985d25a20a07749de69b9e3db1d851b
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoMerge "Add privilege information to api headers" into tizen accepted/tizen/unified/20191121.073346 submit/tizen/20191015.014434 submit/tizen/20191120.105952
sangwan kwon [Tue, 15 Oct 2019 01:27:19 +0000 (01:27 +0000)]
Merge "Add privilege information to api headers" into tizen

5 years agoAdd privilege information to api headers 82/215682/1
Sangwan Kwon [Mon, 14 Oct 2019 06:55:13 +0000 (15:55 +0900)]
Add privilege information to api headers

Change-Id: I354789b6e38d5f7db575bfa7fa22b585f9289d41
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoRevert "tizen: Add additional unit for "unified" user session" 03/212303/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.005118 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062034 accepted/tizen/5.5/unified/wearable/hotfix/20201027.102309 accepted/tizen/unified/20190823.092409 submit/tizen/20190823.002419 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_5.5_wearable_hotfix/20201026.184306 tizen_5.5.m2_release
Yunmi Ha [Tue, 20 Aug 2019 07:20:25 +0000 (07:20 +0000)]
Revert "tizen: Add additional unit for "unified" user session"

This reverts commit 41452349d956d5c890f7a743c155600f8b091f63.

We've optimized systemd-user without unified system/session.
So, we revert the patch for unified system/session.

Change-Id: Ib7e2e358d26ec39c5907ccc6ef9458c382754b36

5 years agoRelease 2.3.5 47/212147/1 accepted/tizen/unified/20190816.112251 submit/tizen/20190816.021249
Sangwan Kwon [Fri, 16 Aug 2019 01:35:29 +0000 (10:35 +0900)]
Release 2.3.5

* Disable service at boot time
* Grant smack label to test binary
* Refactoring csr.service and csr-OOO.socket
* Remove unnecessary setting
* Remove unnecessary code from csr-popup.[socket|service]
* Support auto coverage checking
* [LCOV] Prepare to measure the line coverage
* tizen: Add additional unit for "unified" user session

Change-Id: Id11ea5c88792436d84efa353756f61b50cca6e0d
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoDisable service at boot time 83/212083/2
Sangwan Kwon [Wed, 14 Aug 2019 06:46:17 +0000 (15:46 +0900)]
Disable service at boot time

Change-Id: Idc346fe8712a04bf0b4f18eafe73a111d413a3c0
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoGrant smack label to test binary 82/212082/1
Sangwan Kwon [Wed, 14 Aug 2019 05:53:58 +0000 (14:53 +0900)]
Grant smack label to test binary

- Test binary needs privilege for installing app

Change-Id: I89471e255c4741245eb07882a3b29d417b2757c7
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoRefactoring csr.service and csr-OOO.socket 40/210240/3 accepted/tizen/unified/20190814.065142 submit/tizen/20190813.005155 submit/trunk/20190812.110839
INSUN PYO [Wed, 17 Jul 2019 06:34:50 +0000 (15:34 +0900)]
Refactoring csr.service and csr-OOO.socket

 - Using "Wants=csr.service" in csr-OOO.socket is replaced by putting csr.service in multi-user.target.wants.
 - Using "After=csr.service" in csr-OOO.socket is not requires because there is an explicit dependency between socket and service.
 - All four sockets are required for csr.service. So, "Requires=OOO.socket" must be in csr.service.
 - "Sockets=" in the csr.service is replaced by "Requires=OOO.socket". ("Sockets=" includes "After=" and "Wants=")

Change-Id: If6303fcf17f16c70b4c5b67cca897f0c650b4b85

5 years agoRemove unnecessary setting 02/209002/2
INSUN PYO [Tue, 2 Jul 2019 01:27:10 +0000 (10:27 +0900)]
Remove unnecessary setting

Change-Id: I0524d2fce2904a986216fe1399a8a4dbb01e22e5

5 years agoRemove unnecessary code from csr-popup.[socket|service] 59/209559/3
INSUN PYO [Tue, 9 Jul 2019 01:14:07 +0000 (10:14 +0900)]
Remove unnecessary code from csr-popup.[socket|service]

1. The csr-popup.service does not need to be running at boot time, so it removes the "Wants=csr-popup.service" from the csr-popup.socket.
2. You do not need "Sockets=" and "Service=" for sockets and services with the same prefix.
3. "Type=simple" is the systemd defaults, so we don't need it.

Change-Id: I4a282d27dff9a8591bf68b4ca9e9b1a41592a87d

5 years agoSupport auto coverage checking 62/209362/4 accepted/tizen/unified/20190709.071058 submit/tizen/20190708.094113
Sangwan Kwon [Thu, 4 Jul 2019 23:36:50 +0000 (08:36 +0900)]
Support auto coverage checking

Change-Id: I383849a301f33017d332dabb4650e0763d71419b
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years ago[LCOV] Prepare to measure the line coverage 61/209361/1
sangwan.kwon [Mon, 25 Sep 2017 01:35:23 +0000 (21:35 -0400)]
[LCOV] Prepare to measure the line coverage

Change-Id: I10668614519956b8950ce9bcf97cd52bbe27c077
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agotizen: Add additional unit for "unified" user session 64/204564/1 accepted/tizen/unified/20190502.112856 submit/tizen/20190502.022402
Mateusz Moscicki [Tue, 23 Apr 2019 09:59:58 +0000 (11:59 +0200)]
tizen: Add additional unit for "unified" user session

The unified user session is about moving user session units, managed by
systemd --user, to main systemd, where it's managed as part of newly
created user@.target.

user@.target will contain same units as previously available in user/,
with same UID and environment setup.  systemd instance is used for unit
to be able to specify UID (inherited from user@.target).

The rationale behind this work is following:

* VD requirement to remove user session support
* boot time optimization requirements, due to:

   + 'systemd --user' taking 1s its own startup that could be used for
     unit startup
   + ability to better rearrange units if these managed by one systemd
     instance

Unit installed by this commit will not be used till user login mechanism
will be changed in systemd package (via changing pam_systemd to start
user@.target, rather than user@.service).

Change-Id: I34ec6af3e2736348747a3d702451d540354c9831

5 years agoRelease 2.3.4 79/199179/1 accepted/tizen/unified/20190212.084041 submit/tizen/20190208.032755 submit/tizen/20190211.075859
sangwan.kwon [Thu, 7 Feb 2019 01:57:54 +0000 (10:57 +0900)]
Release 2.3.4

* Fix memory-leak bug on sample engine
* Fix log fomatter according to boost version upgrade
* Fix JIRA defect about ASAN

Change-Id: Ifc3e3d9380ac07313b548597e74b72482fcff5e0
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoFix memory-leak bug on sample engine 78/199178/1
sangwan.kwon [Thu, 7 Feb 2019 01:51:45 +0000 (10:51 +0900)]
Fix memory-leak bug on sample engine

Change-Id: Ifd834844441d143093bfd15cd156f1dac9ef969b
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix log fomatter according to boost version upgrade 04/183504/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.024419 accepted/tizen/unified/20180710.082954 submit/tizen/20180706.070308 submit/tizen_5.0/20181101.000006
sangwan.kwon [Fri, 6 Jul 2018 05:28:44 +0000 (14:28 +0900)]
Fix log fomatter according to boost version upgrade

- boost version : 1.65.1

Change-Id: Ic3b45f5e47cb4e2edbec22820075c43078944c60
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix JIRA defect about ASAN 14/182414/1 accepted/tizen/unified/20180626.140824 submit/tizen/20180626.021021
sangwan.kwon [Mon, 25 Jun 2018 02:26:33 +0000 (11:26 +0900)]
Fix JIRA defect about ASAN

- alloc-dealloc-mismatch (malloc vs operator delete)

Change-Id: I1e75b63c6e02eb34e05e26e97c3909e6ee27ec35
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRelease 2.3.3 41/181441/1 accepted/tizen/unified/20180618.151417 submit/tizen/20180614.045125
sangwan.kwon [Thu, 14 Jun 2018 03:57:37 +0000 (12:57 +0900)]
Release 2.3.3

* Fix resource leak on test binary
* Fix coverity defects
* Fix misuse of unique_ptr

Change-Id: I53418d8c942fc7bc717baee4b39f2b7f0bc87498
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix resource leak on test binary 82/176882/1 accepted/tizen/unified/20180424.165721 submit/tizen/20180424.064628
sangwan.kwon [Tue, 24 Apr 2018 06:15:41 +0000 (15:15 +0900)]
Fix resource leak on test binary

Change-Id: Iba58129c65bbcdd1201158536b99c2f1f5429daf
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix coverity defects 51/173951/2 accepted/tizen/unified/20180405.064319 submit/tizen/20180404.020934 submit/tizen/20180404.064013
sangwan.kwon [Tue, 27 Mar 2018 06:41:22 +0000 (15:41 +0900)]
Fix coverity defects

* Uninitialized scalar field
* Uninitialized pointer field
* Unchecked return value from library
* Wrapper object use after free
* Data race condition

Change-Id: I00bf5cf4d4dc5afe53a0080d9316da37989c9e42
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix misuse of unique_ptr 79/171879/2 accepted/tizen/unified/20180319.062926 submit/tizen/20180309.020443 submit/tizen/20180316.053242
sangwan.kwon [Thu, 8 Mar 2018 02:07:43 +0000 (11:07 +0900)]
Fix misuse of unique_ptr

Change-Id: I81328ff84be8bbc07ee1c52e8f91676a84b30681
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRelease 2.3.2 14/171514/1 accepted/tizen/unified/20180306.061319 submit/tizen/20180305.084114
sangwan.kwon [Mon, 5 Mar 2018 08:20:47 +0000 (17:20 +0900)]
Release 2.3.2

* Fix typo in a public header
* Merge branch 'tizen_4.0' into tizen
* Add smack label to internal-test as System
* Fix sample engine latest updated time as installing time
* Fix csr-server capability as inheritable
* Remove deprecated upgrade script
* Fix failed internal test cases

Change-Id: I3b2f624fc2d64983d73af8d3c8eeb62a7e1e1c43
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoFix typo in a public header 35/171435/1
sangwan.kwon [Mon, 5 Mar 2018 04:29:07 +0000 (13:29 +0900)]
Fix typo in a public header

Change-Id: I22cd100b43c2d118fe4a5bcbcae7f30a58bfba5d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMerge branch 'tizen_4.0' into tizen 01/155101/1
sangwan.kwon [Thu, 12 Oct 2017 05:38:04 +0000 (14:38 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-Id: Id39e536a81235b91d5852286c4ba433c5d5a098f
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd smack label to internal-test as System 48/152148/1
sangwan.kwon [Mon, 25 Sep 2017 07:05:13 +0000 (03:05 -0400)]
Add smack label to internal-test as System

Change-Id: I7dbe98b64f42fc0fc9db7947749057e9aa1e3b21
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix sample engine latest updated time as installing time 28/145428/2 accepted/tizen/4.0/unified/20170828.222318 accepted/tizen/unified/20170823.170303 submit/tizen/20170823.025619 submit/tizen_4.0/20170828.100005 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
sangwan.kwon [Tue, 22 Aug 2017 06:44:51 +0000 (02:44 -0400)]
Fix sample engine latest updated time as installing time

Malware detected time should greater than engine's latest update time
when engine is not updated after malware detecting. But some device's
current time is not correct(before: 2016) and sample engine's latest
updated time is fixed time(after: 2017), some TC was always failed.

Change-Id: I34ec53e612eb927ae0c2261a1ba4f42af6a7fb51
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix csr-server capability as inheritable 11/144811/1
sangwan.kwon [Fri, 18 Aug 2017 05:12:16 +0000 (01:12 -0400)]
Fix csr-server capability as inheritable

Change-Id: Ide4a5c8b6e5416671ad0ca6d54ee01ff2852bd9a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRemove deprecated upgrade script 32/144632/1
sangwan.kwon [Thu, 17 Aug 2017 09:06:19 +0000 (05:06 -0400)]
Remove deprecated upgrade script

Change-Id: Ifa75fc6e9f946316ab771ff08be5453359c859aa
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix failed internal test cases 92/133192/2
sangwan.kwon [Fri, 9 Jun 2017 06:43:03 +0000 (15:43 +0900)]
Fix failed internal test cases

Change-Id: I7330cadd7d966bd0cfe878548ead432a505ce85e
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRelease 2.3.1 24/129424/1 accepted/tizen/4.0/unified/20170816.010530 accepted/tizen/4.0/unified/20170816.014247 accepted/tizen/unified/20170517.080126 submit/tizen/20170517.012418 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522 tizen_4.0.m1_release
sangwan.kwon [Tue, 16 May 2017 10:03:19 +0000 (19:03 +0900)]
Release 2.3.1

* Fix log fomatter according to boost version upgrade
* Check a task status inside HandleExt to handle concurrent issue
* Remove error log on NativeMainloop dtor
* Cherrypicks from tizen_3.0 branch (HEAD: 6adc3ec)
* Run set cap script after csr rpm installation
* Make File::Type class to encapsulate filetype op
* Revert "Determine package by removable attribute"
* Determine package by removable attribute
* Add error handling for getting stat
* Downgrade log levels which printed too frequently
* Downgrade some frequently printed log's level
* Remove platform version diff handling
* Version Comparision String Fix
* Apply the reviewed API documentation

Change-Id: I218b60e3934d01f6411d6eb4abec83e58d9332fb
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix log fomatter according to boost version upgrade 03/127603/3
sangwan.kwon [Fri, 28 Apr 2017 05:20:27 +0000 (14:20 +0900)]
Fix log fomatter according to boost version upgrade

Change-Id: Iba8af0d1900230375550258f0daaf68db641925e
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoCheck a task status inside HandleExt to handle concurrent issue 06/120006/1
Dongsun Lee [Sun, 19 Mar 2017 04:58:53 +0000 (13:58 +0900)]
Check a task status inside HandleExt to handle concurrent issue

Change-Id: I46211a78f6b43cf8da0e001b3e511e765d981d70
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
(cherry picked from commit 9f8be3f00c3dc9446f8b7abad887871ad3224804)

7 years agoRemove error log on NativeMainloop dtor 16/116216/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170320.173510 accepted/tizen/ivi/20170320.010418 accepted/tizen/mobile/20170320.010332 accepted/tizen/tv/20170320.010346 accepted/tizen/unified/20170320.010443 accepted/tizen/wearable/20170320.010402 submit/tizen/20170319.011939
Kyungwook Tak [Thu, 23 Feb 2017 08:29:31 +0000 (17:29 +0900)]
Remove error log on NativeMainloop dtor

NativeMainloop can be destructed even though it's not timed out case.
Because the loop can be used by client side to implement async logic,
and all listening sockets are closed automatically as RAII

Change-Id: I36760e7202206c82f2a0545e993069ad59549547
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoCherrypicks from tizen_3.0 branch (HEAD: 6adc3ec) 22/115422/1
Kyungwook Tak [Wed, 8 Feb 2017 04:14:20 +0000 (13:14 +0900)]
Cherrypicks from tizen_3.0 branch (HEAD: 6adc3ec)

Fix svace defects
(cherry picked from commit 2d3c97687a31b2a7d30979821be822dac67b79b6)

Restart service after test sample engine installed
(cherry picked from commit 074d22b0ec48f8657e56f0f3af5c1d0fa1dea09c)

Fix bug on CS sample engine
(cherry picked from commit 6adc3ec9be0e6b4e0e24bca85e7a0872f7d7c6ff)

Change-Id: Ibb820332ba178bdda953cf81de900286b0edbaa4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRun set cap script after csr rpm installation 15/112415/3
Kyungwook Tak [Wed, 1 Feb 2017 01:52:01 +0000 (10:52 +0900)]
Run set cap script after csr rpm installation

csr server needs capability which is set by security-config.

Change-Id: I0083549e9a006b8b37e0c8084da214cbf2c10930
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoMake File::Type class to encapsulate filetype op 42/112342/4
Kyungwook Tak [Tue, 31 Jan 2017 08:51:29 +0000 (17:51 +0900)]
Make File::Type class to encapsulate filetype op

Change-Id: I789fa225fdeaacb5d08c6d4235b1d8e259313885
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRevert "Determine package by removable attribute" 09/112409/1
Kyungwook Tak [Wed, 1 Feb 2017 01:29:35 +0000 (10:29 +0900)]
Revert "Determine package by removable attribute"

This reverts commit b4f1327fa51cdbc6d378287859a48bd01c2e72e4.

Need more precise decision related to preloaded app deletions.

Change-Id: I49367d5afd2748ce8133b3345cb23e5bd6d9fb76
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoDetermine package by removable attribute 05/112305/1
Kyungwook Tak [Tue, 31 Jan 2017 05:33:13 +0000 (14:33 +0900)]
Determine package by removable attribute

Change-Id: Ic398d0a9056ee2bcef7f17d0813f15da9cb85816
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd error handling for getting stat 04/112304/1
Kyungwook Tak [Tue, 31 Jan 2017 05:23:00 +0000 (14:23 +0900)]
Add error handling for getting stat

Change-Id: I1b8464ebfb3af33a48325af42595512dcba2284a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoDowngrade log levels which printed too frequently 54/112254/1
Kyungwook Tak [Tue, 31 Jan 2017 01:05:27 +0000 (10:05 +0900)]
Downgrade log levels which printed too frequently

Change-Id: I1af4abcf28e42ea4659782d358c27cd603a0e93c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoDowngrade some frequently printed log's level 75/111575/1
Kyungwook Tak [Mon, 23 Jan 2017 01:50:22 +0000 (10:50 +0900)]
Downgrade some frequently printed log's level

Change-Id: I1fd99687f04e12422ec7761dec5fb3f7b865fce7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove platform version diff handling 24/110324/1
Kyungwook Tak [Mon, 16 Jan 2017 02:01:32 +0000 (11:01 +0900)]
Remove platform version diff handling

The csr project was developed on both of 2.4 and 3.0 tizen version at
first but 2.4 is forked to other package and no more maintanance needed
in here. Also the branch tizen need not to support tizen version lower
than 3, so remove all codes related.

Change-Id: I912d9f9c6a345d0d6a21192eda56e39cb0d9cb79
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoVersion Comparision String Fix 33/110133/3
MyungJoo Ham [Fri, 13 Jan 2017 05:12:14 +0000 (14:12 +0900)]
Version Comparision String Fix

It should be prepared for cases where the Tizen version is
3.1.0, 3.0.1, 4.0, or whatever larger than 3.0.

Change-Id: Id914455c62684b32fce4f0a974b418292f2e3bff
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoApply the reviewed API documentation 30/109630/1
Dongsun Lee [Thu, 5 Jan 2017 22:55:20 +0000 (07:55 +0900)]
Apply the reviewed API documentation

Change-Id: Id6503fbbd225a29459b10937136fe2effd5ee011
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
(cherry picked from commit acd455ac7aaa58c0d5ae667a3ea2f24a34214ab7)

7 years agoRelease 2.3.0 06/108106/2
Kyungwook Tak [Tue, 3 Jan 2017 05:40:43 +0000 (14:40 +0900)]
Release 2.3.0

* Mainloop backend layer added
* Popup service uses one ecore mainloop

Change-Id: Ic6a140928193c64e908c4168ad868798710b0222
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUpgrade version to 2.3.0 20/108120/1 devel/master
Kyungwook Tak [Tue, 3 Jan 2017 05:39:28 +0000 (14:39 +0900)]
Upgrade version to 2.3.0

* Mainloop backend added
* popup service uses one ecore mainloop

Change-Id: I3b3b4fbca522cfb8494ab539c191e127ec988a77
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoHide some members from popup class 51/107951/2
Kyungwook Tak [Mon, 2 Jan 2017 04:45:43 +0000 (13:45 +0900)]
Hide some members from popup class

hypertext object, button object and some related setters can be hided as
private in popup class. It's provided as setButtons function with button
parameter which contains text and return type. Related resource(types,
hypertext string) are managed internally in popup class.

Change-Id: I3264db77b4c29ae409bb7d928473bf7a74930fac
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd mainloop interface and backend layer 12/107312/7
Kyungwook Tak [Tue, 27 Dec 2016 11:42:35 +0000 (20:42 +0900)]
Add mainloop interface and backend layer

popup service needs to use ecore loop based mainloop so as to expand
ecore main loop life cycle to process life cycle to fix restart ecore
loop bug.

Make Mainloop class abstract and declare Event which can converted to
backend specific event enums(e.g., epoll events, ecore events) then
mainloop and service class can be defined generically.

Mainloop backend is selected in each service impl's constructor.

Change-Id: Ie965bbcca45c31a950cbb86649a2d22dd0d494d1
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoHandle symbolic links in app directory 28/107728/2
Kyungwook Tak [Thu, 29 Dec 2016 10:44:13 +0000 (19:44 +0900)]
Handle symbolic links in app directory

App directory hierarchy is changed.
Non global apps have symbolic link which points under
TZ_SYS_RW_APPS(/opt/usr/globalapps/...) because non global app's binary
and resources are duplicated if such app installed by multiple users.

So FsVisitor traverses through symlink either only in app directory
which is defined in AppDir class in regular expression.

Change-Id: I3049fcb92258fc8d8b4123d74856a4d584ebcdfe
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoMerge branch 'devel/master' into tizen 27/107627/1 accepted/tizen/common/20161229.140024 accepted/tizen/ivi/20161229.113506 accepted/tizen/mobile/20161229.113409 accepted/tizen/tv/20161229.113413 accepted/tizen/unified/20170309.034837 accepted/tizen/wearable/20161229.113453 submit/tizen/20161229.025146 submit/tizen_unified/20170308.100411
Kyungwook Tak [Thu, 29 Dec 2016 02:37:14 +0000 (11:37 +0900)]
Merge branch 'devel/master' into tizen

Fix gcc62 build error

Change-Id: I7f222cdb55ae4fbda508bfa1f2d10d80a84858d4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoReplace deprecated readdir_r with readdir 10/106210/8
Kyungwook Tak [Wed, 21 Dec 2016 04:28:02 +0000 (13:28 +0900)]
Replace deprecated readdir_r with readdir

Change-Id: I83e91612be7ff318d0ee932cc6f4b3ea04a79f12
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoCheck return value of chdir to fix warning 32/106332/1
Kyungwook Tak [Wed, 21 Dec 2016 09:50:37 +0000 (18:50 +0900)]
Check return value of chdir to fix warning

Change-Id: I10e1fd04d27734fbc060b1626cb248b5008f9bb4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRemove unused function 09/106209/1
Kyungwook Tak [Wed, 21 Dec 2016 04:25:11 +0000 (13:25 +0900)]
Remove unused function

Change-Id: Ie1565d1b1225d348147ffb397b1be7d6f51860d3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoDon't throw exception in dtor 08/106208/1
Kyungwook Tak [Wed, 21 Dec 2016 04:23:09 +0000 (13:23 +0900)]
Don't throw exception in dtor

Change-Id: I52b7dfbe177b3c67bcc4529d9871736dfd9492db
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoApply the result of English documentation reivew 15/105215/1 accepted/tizen/common/20161219.152130 accepted/tizen/ivi/20161219.225237 accepted/tizen/mobile/20161219.225145 accepted/tizen/tv/20161219.225204 accepted/tizen/wearable/20161219.225222 submit/tizen/20161219.052502
Dongsun Lee [Fri, 16 Dec 2016 04:30:20 +0000 (13:30 +0900)]
Apply the result of English documentation reivew

Change-Id: I67cb14c92c6b79720218f99bd80e4aa5b77b4002
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
7 years agoMerge branch 'devel/master' into tizen 52/102252/1
Kyungwook Tak [Mon, 5 Dec 2016 08:39:53 +0000 (17:39 +0900)]
Merge branch 'devel/master' into tizen

Merge hotfix: numbering script name

Change-Id: I038afb4ddeca3a16bd53fd57491d73796f1f3a4c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoNumbering upgrade script 49/102249/1
Kyungwook Tak [Mon, 5 Dec 2016 08:31:45 +0000 (17:31 +0900)]
Numbering upgrade script

csr-upgrade.sh.in -> 500.csr.sh.in

Change-Id: I2ca4c397a9dcdb0119fac1306cc114c0582ca04b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRelease 2.2.1 90/100390/1
Kyungwook Tak [Mon, 28 Nov 2016 04:39:41 +0000 (13:39 +0900)]
Release 2.2.1

Minor fixes
 - Fix button text ellipsis
 - Separate popup systemd configs
 - Fix doxygen warnings
 - Fix some rpmlint warnings

Change-Id: I33dff96d35800341142afd986a298ef52410d00e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUpgrade version to 2.2.1 85/100385/1
Kyungwook Tak [Mon, 28 Nov 2016 04:32:02 +0000 (13:32 +0900)]
Upgrade version to 2.2.1

Change-Id: I9380402690c759dfeb1ab42c33672567b771fa0a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoRevert "Use ELM_MAIN macro for main function" 77/100377/1
Kyungwook Tak [Mon, 28 Nov 2016 04:17:45 +0000 (13:17 +0900)]
Revert "Use ELM_MAIN macro for main function"

This reverts commit 7308351ee6a153985f1903cfbcdc0d37463427b1.
To use elm_shutdown which is in ELM_MACRO makes crash in some cases.
It'll be restored after the issue resolved.

Change-Id: Icf170a000065a99ae23634355647974a895b53ff
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix button text ellipsis bug on popup 09/99809/2
sangwan.kwon [Thu, 24 Nov 2016 06:15:53 +0000 (15:15 +0900)]
Fix button text ellipsis bug on popup

Button's text was ellipsis like "Unins..."

Change-Id: I570f2552b0d588dcb5acbc282df548c1d56d42ad
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix ctags/cscope related file scope in gitignore 38/99738/1
Kyungwook Tak [Wed, 23 Nov 2016 00:58:02 +0000 (09:58 +0900)]
Fix ctags/cscope related file scope in gitignore

Change-Id: Id3897e482f1929e7fb3704aad5fda167a9e62e48
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoUse ELM_MAIN macro for main function 52/99152/1
Kyungwook Tak [Tue, 22 Nov 2016 05:20:54 +0000 (14:20 +0900)]
Use ELM_MAIN macro for main function

ELM_MAIN() macro is highly recommended instead of code main function
manually

Change-Id: I0a837302d56901e771d566b038a49b2c2f76d029
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoSeparate popup systemd configs by platform version 36/99136/1
Kyungwook Tak [Tue, 22 Nov 2016 04:28:34 +0000 (13:28 +0900)]
Separate popup systemd configs by platform version

Don't declare socket smack ip in/out label for platform version 3.0
because it's created by user session so no perm to smack label change
and no need to do it at all because default label same to what we want
to set.

Change-Id: Ib1310cca2669105eb37579193f9ff1705b77bf8f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix media path and app dir path 48/98848/4
Kyungwook Tak [Mon, 21 Nov 2016 04:55:24 +0000 (13:55 +0900)]
Fix media path and app dir path

Use app directory base path from tzplatform config macro. But for
TZ_USER_APP which contains rw user app path for 3rd party is unusable on
this position (for regex) because we csr server is not user service so
not usable in compile time.

- /opt/home -> /opt/usr/home
- Add sdcard prefix additionally (TZ_SYS_STORAGE)
- /home/<user>/content -> /home/<user>/media  # it's for test program

Change-Id: Icde1d8772686deb86953ae8a2272c7de3adda769
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix doxygen warning 10/98910/4
Kyungwook Tak [Mon, 21 Nov 2016 07:06:20 +0000 (16:06 +0900)]
Fix doxygen warning

Change-Id: Ic4f5a540ec82a29ffc3b673480e46cbd10383b19
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd ContentType to po files to use find_lang 98/98498/1
Kyungwook Tak [Tue, 15 Nov 2016 07:35:32 +0000 (16:35 +0900)]
Add ContentType to po files to use find_lang

language files which are not managed by %find_lang macro occurs rpm spec
warning. And without ContenType:utf-8 definition in po file header,
msgfmt prints warning message.
Refer: http://pology.nedohodnik.net/doc/user/en_US/ch-poformat.html

Change-Id: I9fd0a890c4061a18b26c680e47519b4826449aa8
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix rpm spec warnings 97/98497/1
Kyungwook Tak [Tue, 15 Nov 2016 07:34:04 +0000 (16:34 +0900)]
Fix rpm spec warnings

Change-Id: I469c3dd67e66fa53fb1bb05ca1e5f2c3d019930f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd signal handler on mainloop 38/92738/2
sangwan.kwon [Tue, 18 Oct 2016 10:53:55 +0000 (19:53 +0900)]
Add signal handler on mainloop

Change-Id: I4bc541245d0df7be3060449824de96088d8f5c50
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
8 years agoAdd libclient requirement to devel package 25/88125/1 sandbox/vbarinov/ubsan accepted/tizen/3.0/common/20161114.110450 accepted/tizen/3.0/ivi/20161011.043713 accepted/tizen/3.0/mobile/20161015.032535 accepted/tizen/3.0/tv/20161016.003747 accepted/tizen/3.0/wearable/20161015.081734 accepted/tizen/common/20160926.154055 accepted/tizen/ivi/20160927.020857 accepted/tizen/mobile/20160927.020839 accepted/tizen/tv/20160927.020645 accepted/tizen/wearable/20160927.020822 submit/tizen/20160926.005548 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
Slava Barinov [Tue, 13 Sep 2016 12:20:00 +0000 (15:20 +0300)]
Add libclient requirement to devel package

Without explicit dependency the case is possible when the -devel package
is installed without client package and provides a broken symlink
to /usr/lib/libcsr-client.so.0

Change-Id: I735e15c4424854a319534aad03014e936525ddc0
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
8 years agoRelease version 2.2.0 35/85735/1 accepted/tizen/common/20160829.135645 accepted/tizen/ivi/20160830.060809 accepted/tizen/mobile/20160830.060637 accepted/tizen/tv/20160830.060717 accepted/tizen/wearable/20160830.060740 submit/tizen/20160829.005907
Kyungwook Tak [Mon, 29 Aug 2016 01:14:52 +0000 (10:14 +0900)]
Release version 2.2.0

Main changes
    Add db transaction
    Client-server conversation arch for async scan
    Upgrade db schema version for adding constraint

Change-Id: I15914dd748aa78bc1eccac790a7411c1d2ef1e13
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUpgrade version to 2.2.0 34/85734/1
Kyungwook Tak [Mon, 29 Aug 2016 01:14:29 +0000 (10:14 +0900)]
Upgrade version to 2.2.0

Change-Id: I19f77dc9d89559d07b5a09c0bfaaad09fb0e691f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd script to support platform upgrade scenario 18/85418/3
Kyungwook Tak [Thu, 25 Aug 2016 05:09:39 +0000 (14:09 +0900)]
Add script to support platform upgrade scenario

Change-Id: Id140e2877d8156019c715143f76947dbb4bb537c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoadd TCs to raise TC coverage 41/78841/2
Dongsun Lee [Thu, 7 Jul 2016 05:40:20 +0000 (14:40 +0900)]
add TCs to raise TC coverage

Change-Id: Ie02eb0800ea785a706b2e551dc7308e882500ffa
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoUpgrade db schema version for adding constraint 89/78589/1
Kyungwook Tak [Wed, 6 Jul 2016 07:31:15 +0000 (16:31 +0900)]
Upgrade db schema version for adding constraint

Change-Id: I3c2293741b9f8ada70f0aa3ec7668610c9a7d631
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefactor cancel async scan architecture 06/78506/4
Kyungwook Tak [Wed, 6 Jul 2016 01:00:19 +0000 (10:00 +0900)]
Refactor cancel async scan architecture

Before: Check cancelled flag on both of client/server side in loop of
        file visitor. It's hard to control response latency consistently.

After : Change client side connection to non-blocking to cancel it
        directly by sending signal to fd. Response latency is consistent
        because client just close connection.

Change-Id: If181eb9984357939b2845b7d03a17dac57a0b9d0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefine scan app delta 74/78274/2
Kyungwook Tak [Tue, 5 Jul 2016 04:09:15 +0000 (13:09 +0900)]
Refine scan app delta

1) Logging more precisely
2) Add missing cases e.g., worse riskiest when history is exist and no new
   malware detected and worse case exists
3) Remove useless param on judge stage: jHistory
   jHistory is always same to history.
4) Insert worst when history riskiest case either because existing
   history(worst) needs to be updated when the file is modified and
   malware is detected samely.
5) Delete db row whenever the file is newly scanned regardless of new
   malware detection from the file. It's for refreshing db row when file
   is newly scanned.

Change-Id: Iba88c3e0ed96bd8413a10fcd9aa556edc7129f60
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoMerge branch 'sandbox/kwon/transaction' into devel 40/77840/5
Kyungwook Tak [Tue, 5 Jul 2016 06:52:37 +0000 (15:52 +0900)]
Merge branch 'sandbox/kwon/transaction' into devel

Change-Id: I5207e7e1a33a00c0ea47582b6456e2e35a9b8a43
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoHandle exception when open dir top dir in fs visitor 20/78320/2
Kyungwook Tak [Tue, 5 Jul 2016 06:15:16 +0000 (15:15 +0900)]
Handle exception when open dir top dir in fs visitor

Change-Id: Ia9fc53a10ade30cfc64bf1c1ff861281c7d908d8
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoIgnore permission related exception on async scan 91/78291/2
Kyungwook Tak [Tue, 5 Jul 2016 04:58:19 +0000 (13:58 +0900)]
Ignore permission related exception on async scan

Change-Id: Ia2d1cbab672bf8d40b352a523bd902d4372a28ce
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoHandle cancel event not to be printed as error 06/78106/2
Kyungwook Tak [Mon, 4 Jul 2016 09:18:59 +0000 (18:18 +0900)]
Handle cancel event not to be printed as error

Change-Id: Iabc4fd9abf7ceb52ce04f00d6688599e29c92d1c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd cancel checker in scan app delta 92/78092/1
Kyungwook Tak [Mon, 4 Jul 2016 08:45:48 +0000 (17:45 +0900)]
Add cancel checker in scan app delta

For canceling faster while big app scanning

Change-Id: I935e2fa79c4ce213b2679aef4024c2bc0fc1109d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoclient-server conversation arch for async scan 60/75660/20
Kyungwook Tak [Mon, 27 Jun 2016 06:30:53 +0000 (15:30 +0900)]
client-server conversation arch for async scan

Async operation process

AS-IS
1) getting scannable file list from server
2) dispatch scan file operation per item in list

TO-BE
1) dispatch async scanning with files/dirs list by client
2) Client receives event only when malware detected by server
   unless file scanned callback is registered.

IPC time is much more lower than before because IPC isn't needed
for file scanned without malware when callback isn't registered.

Memory usage on client side is much less than before because client
doesn't receive a bunch of scannable file list.
Client only receives event when callback call needed or operation completed.

Change-Id: I0c913a2fbdf75c2abe99cdf6d757fdb0f264145d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd transacion on database 06/77206/2 sandbox/kwon/transaction
sangwan.kwon [Fri, 24 Jun 2016 05:17:12 +0000 (14:17 +0900)]
Add transacion on database

Change-Id: Ie752f3cba3dd88d917a4f08b75cfa9b124533dcc
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
8 years agoFix bug in file visitor target handler 80/77780/1
Kyungwook Tak [Fri, 1 Jul 2016 05:47:31 +0000 (14:47 +0900)]
Fix bug in file visitor target handler

Continue for loop without call recursive for target

Change-Id: Ibda767ddecfe6582cb02fbc9585cacc35f87894d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoDon't check malware history before scan single file 42/77742/1
Kyungwook Tak [Fri, 1 Jul 2016 01:49:15 +0000 (10:49 +0900)]
Don't check malware history before scan single file

Overhead to check db for all scan request is bigger than scan file. So
we check history for getting ignored flag only when file scan finished
and it has detected malware.

Change-Id: Iac391e33069cbff46cd94588837d1f0ceb813c05
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix insert name query not to replace 41/77741/1
Kyungwook Tak [Fri, 1 Jul 2016 01:48:31 +0000 (10:48 +0900)]
Fix insert name query not to replace

Change-Id: I546649837c647cda53ddab97904be5ebf8c43ae9
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefactor scanAppDelta on cs-logic 92/76992/10
sangwan.kwon [Tue, 28 Jun 2016 07:57:16 +0000 (16:57 +0900)]
Refactor scanAppDelta on cs-logic

Change-Id: Iacbc2504b763e754df8b6cff666e4677089a03bf
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
8 years agoRelease version 2.1.1 09/77609/2 accepted/tizen/common/20160630.153352 accepted/tizen/ivi/20160705.044928 accepted/tizen/mobile/20160705.045005 accepted/tizen/tv/20160705.044926 accepted/tizen/wearable/20160705.044920 submit/tizen/20160630.090859 submit/tizen/20160705.005113
Kyungwook Tak [Thu, 30 Jun 2016 09:02:24 +0000 (18:02 +0900)]
Release version 2.1.1

- Cancel async operation on both of server/client side
- Fix svace defects
- Checks service idle with client connection
- Refactor file visitor class

Change-Id: Id0ccc858961bd12ce64f521bbaca3ea1e49ffab5
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>