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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Kyungwook Tak [Thu, 30 Jun 2016 08:43:45 +0000 (17:43 +0900)]
Upgrade version to 2.1.1
Change-Id: I3ac0a00d2dd239101828bd10289e5d9372aca664
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Wed, 29 Jun 2016 08:31:59 +0000 (17:31 +0900)]
Change file visitor to dfs style not to have queue
Change-Id: I2bb154ce573468cbaab8fb0d32aae8f0e746ef20
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 28 Jun 2016 10:18:14 +0000 (19:18 +0900)]
Refactor file & file visitor classes
Remove duplicated call of checking file's status e.g.,
pkgmgr_is_preloaded, ::stat(), regex...
And Make flag for file visitor to turn on and off of visiting inside of
package path
Change-Id: Ib80a2145f27d9951168951043ef600efcd2e1b87
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Wed, 22 Jun 2016 08:45:33 +0000 (17:45 +0900)]
Add cache to database for consistent
Change-Id: I75e5ecb82d0165210e48e35825f3812426e57c0c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Tue, 28 Jun 2016 00:55:21 +0000 (09:55 +0900)]
Checks Service idle with client connection
Change-Id: Iba6c0d725e98d5c5e8e81252873923278bd0d194
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 27 Jun 2016 10:05:54 +0000 (19:05 +0900)]
Restore data_version usage from db schema
Change-Id: I6677a821eb1ecf545b902f4f872790d76807e728
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 27 Jun 2016 04:23:55 +0000 (13:23 +0900)]
Malware data deprecation
Data deprecation based on engine latest update time which is provided by
engine API(csre_cs_engine_latest_update_time)
Change-Id: I8f2b9a2118a2b575493b786c149e70bd93ba9e48
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Fri, 24 Jun 2016 08:24:45 +0000 (17:24 +0900)]
Check dir exist before mkdir
Change-Id: I192598839997327d468d5285745aacd6f2f6da4b
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Fri, 24 Jun 2016 06:41:47 +0000 (15:41 +0900)]
Fix svace defects
dead code on db manager
dereferencing nullable pointer on cs logic
Change-Id: Iec1b9f9f9fb329566a4b6d96e4cd129e87c70087
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 24 Jun 2016 05:39:37 +0000 (14:39 +0900)]
Turn on with_sample_engine build flag
On platform, test program is based on sample engine and it's included in
test rpm so real binary isn't affected
Change-Id: Icec4fcddb7270139ff3e42d4477f15c07eef2950
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 24 Jun 2016 06:06:14 +0000 (15:06 +0900)]
Change assertion order in ASSERT_CALLBACK
Not to misunderstand callback counts mismatch.
Order it on importance.
Change-Id: I75c5756bf40a03a01f1bcb4c964837653fba834c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Fri, 24 Jun 2016 06:16:19 +0000 (15:16 +0900)]
Add did on popup-string
Change-Id: Icbc7449981f46c1a535596625781ddb9f5cab491
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
sangwan.kwon [Fri, 24 Jun 2016 05:18:59 +0000 (14:18 +0900)]
Additional cancel operation check on client
Change-Id: Ia0525972e026ad0f0dc08a17872542982a43592d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Fri, 24 Jun 2016 02:17:10 +0000 (11:17 +0900)]
Cancel async operation on both of server/client side
Change-Id: I5c5ee328c2ef7e18287b0ab298620cc3df97d4c7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Thu, 23 Jun 2016 01:27:19 +0000 (10:27 +0900)]
Release version 2.1.0
Changes
CAPI : error code added (CSR_ERROR_USER_RESPONSE_FAILED)
thread pool to static
thread-safe of cynara
thread-safe of db module
handle more events on popup (rotate, home button...)
handle preloaded app in file-unit (not abstracted by package level)
handle history of detected malware by scan on cloud (db schema changed)
Change-Id: I97d9e55c4e7a0bae55f53af20963497e46aa0358
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Thu, 23 Jun 2016 01:24:12 +0000 (10:24 +0900)]
Upgrade version to 2.1.0
Change-Id: I979832de47a0835d2ea05ac6a13593bed35210f4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Dongsun Lee [Thu, 23 Jun 2016 01:09:56 +0000 (10:09 +0900)]
change module name from csr-framework to csr in doxygen
Change-Id: Id732b7adc973307f8775d85a22f8b11061fa18ef
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Kyungwook Tak [Wed, 22 Jun 2016 10:23:59 +0000 (19:23 +0900)]
Make thread-safe of hasPermission() with cynara
cynara is not thread-safe so locking mechanism is needed on our side.
Change-Id: Ica0105dc74a9bd3d76e73339d82831181c1469db
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Wed, 22 Jun 2016 09:42:59 +0000 (18:42 +0900)]
Make more log levels on exception
Change-Id: Idad383a7b0f757f263138efb7bf601d66d67b2b8
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Wed, 22 Jun 2016 05:26:13 +0000 (14:26 +0900)]
Handle pre-loaded app in file-unit
Change-Id: Id3d4973448f3f27aa3fb9beb31bb05868c9fe4b8
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 21 Jun 2016 05:45:54 +0000 (14:45 +0900)]
Separate install/upgarde case on %post
Change-Id: If31d22c00cf26f1ad5e6e98142c370d1312f3030
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Tue, 21 Jun 2016 04:06:35 +0000 (13:06 +0900)]
Set popup failed return value as negative number
Change-Id: Ia9dcf4d1d28cf821aa225f5c4c122d297716e32c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Tue, 21 Jun 2016 04:14:04 +0000 (13:14 +0900)]
Add description for CSR_ERROR_USER_RESPONSE_FAILED
Change-Id: I963881ec783e2cca2aae015a2c2fef17ddaa4f7a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 21 Jun 2016 00:07:31 +0000 (09:07 +0900)]
Add smack rules for scanning more files
Change-Id: I7acf5f03002674a7a3a35984060e457fcefd6ade
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 21 Jun 2016 01:50:22 +0000 (10:50 +0900)]
[CAPI Changed] Add ec for getting user response failed
Change-Id: I5b9b66a0a07a54469ba77631f59553a28760ade6
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 21 Jun 2016 00:58:42 +0000 (09:58 +0900)]
Clean up csr db before start service
Change-Id: Ie69c009af831a18bd5de21c96faae1e8e014ee7a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Tue, 21 Jun 2016 00:46:57 +0000 (09:46 +0900)]
Grab the home key event
* If home key pressed, popup should exit.
Change-Id: I20b3fb316bd1930284565bc9f683f17a83dbedcd
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
sangwan.kwon [Mon, 20 Jun 2016 08:25:24 +0000 (17:25 +0900)]
Enable popup to rotate
* If window manger support rotation, enable popup to rotate
Change-Id: I37d0baa20c1d623970949bd0685b3dd8923d1804
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Fri, 17 Jun 2016 10:59:55 +0000 (19:59 +0900)]
Add test case for multiple async simultaneously
Change-Id: I5de084beca6698591913ee905ebb09187593f030
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 17 Jun 2016 10:31:53 +0000 (19:31 +0900)]
Make thread-safe for db manager functions
Change-Id: I175c7be11fb98502a57dc7c81bbfc9ee1bb8527d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 17 Jun 2016 06:33:15 +0000 (15:33 +0900)]
Assertion changed for added test malware file
Change-Id: I90a7893272b0e9c4fa536554227ee41943fd4d17
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 17 Jun 2016 06:04:25 +0000 (15:04 +0900)]
Change thread-pool to static for stability
Change-Id: I0ace06b0cefcdbbcf97d23e31893a870fb300ee1
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Wed, 15 Jun 2016 08:49:28 +0000 (17:49 +0900)]
Adjust multilingual resource
* This is for supporting different languages.
Change-Id: Ia5ffd15712f84e207c43f6c51060dc7f7b07e889
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
Kyungwook Tak [Thu, 16 Jun 2016 10:08:40 +0000 (19:08 +0900)]
Return detected handle when remove failed
Change-Id: Ie8c8f5adec67769336a55532940c9014770214fb
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Thu, 16 Jun 2016 02:26:45 +0000 (11:26 +0900)]
Fix layout for resolution independent
Change-Id: I7647cd41233427572f6e149ff93b9f2015b3bdaa
Kyungwook Tak [Thu, 16 Jun 2016 05:50:57 +0000 (14:50 +0900)]
Remove useless stopped lamda registering in async-client
No custom isStopped() lamda will be registered at all so this
functionality isn't needed.
Change-Id: Iade85a824a72e36ff4f2a4a4c9a1e838611d1697
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Thu, 16 Jun 2016 05:25:46 +0000 (14:25 +0900)]
Move async test lock into ASSERT_CALLBACK
Not to miss to wait async operation.
Change-Id: I44571a33afa7d6d64636259c108a27cf3e038ccf
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 14 Jun 2016 02:16:18 +0000 (11:16 +0900)]
Handling history detected by scan on cloud
Add table to db schema to manage separately to ordinary app scanning.
It's for giving detected/ignored/judge malwares because those work based
on history in db.
Change-Id: I78fec4b61ed7838298ec156dc2452ed7c4e64c6c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Thu, 16 Jun 2016 04:48:46 +0000 (13:48 +0900)]
Fix assert check on delta scan test
To exclude probability of other file changed in the directory case,
checking scanned count more precisely.
Change-Id: If050ddf2b6eb6a1e453b8fa678a88357bf29e2b3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Wed, 15 Jun 2016 07:22:04 +0000 (16:22 +0900)]
Fix test-resource and permissions on platform v3.0
Change-Id: Ifc41778f138b7cebf981cda662279434878daf28
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Wed, 15 Jun 2016 07:20:10 +0000 (16:20 +0900)]
Change db schema of package_info table
pkg_id cannot be used as primary key because the case of symlink exist
in package path. On symlink existing case, pkg id will be same on both
of symlink path and original path(resolved path) so it could be conflict
on package_info table with same pkg_id.
Change-Id: Iaf9580c5979ad6bcb32170743d47c34602295c16
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 14 Jun 2016 08:08:28 +0000 (17:08 +0900)]
File readable check by ::fopen instead of ::access
To adjust CAP_DAC_READ_SEARCH capability for scanning app directory in
platform v3.0, we cannot use ::access. Because the capability isn't
giving permission to force out all of DAC checking, but it just bypass
to check it. So if it's checked explicitly by ::access, we cannot
bypass. So we use ::fopen with "rb" mode instead.
Change-Id: If9c79f28978ab95b607f4bffbb605f57b8b51fa9
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Tue, 14 Jun 2016 07:43:48 +0000 (16:43 +0900)]
Multi user aware when getting pkg info handle
Change-Id: Ia3746304891954471d8981ed2bea2479c1967aaa
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Dongsun Lee [Tue, 14 Jun 2016 06:43:01 +0000 (15:43 +0900)]
change a malware file in app packaging to eicar.txt
Change-Id: I57ef5162cb0e752028ae412dced30b0d4e13874f
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
Kyungwook Tak [Tue, 14 Jun 2016 04:40:01 +0000 (13:40 +0900)]
Initial release of new csr with server-client arch
Change-Id: I807dfb2fceeee19e86819161f79839edf6b6b06a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 11:15:59 +0000 (20:15 +0900)]
Remove useless sleeps in async cancel test
Change-Id: Icd60ef7c1e599182ea4d9d184d25febdc5961962
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 08:38:58 +0000 (17:38 +0900)]
Add "/smack" to dir blacklist
/smack/cipso occurs unknown error from engine
Change-Id: Id0b55ceb768b6a71c65e88438e91411ad30ffcb7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 08:22:02 +0000 (17:22 +0900)]
Built in engine error exception converter to iloader
to convert engine internal error to string(by loaded symbol), engine
error exception converter need to loader instance so it's better to be
built in iloader virtual function for being used by both of cs / wp
loaders.
Change-Id: I382344d0b787f2863ca7e2853eb72601bae8b76a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 06:41:37 +0000 (15:41 +0900)]
Tracking tizen version by rpm spec macro
Change-Id: Ia115b1e800e42d25a4f2158431012620686d84f2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Mon, 13 Jun 2016 06:54:56 +0000 (15:54 +0900)]
Add anchor attribute at hypertext
This is for launching browser when hypertext clicked.
Change-Id: I49cc34379ab59d8ff3d5793b5b43046d92fc7e76
Kyungwook Tak [Mon, 13 Jun 2016 06:13:19 +0000 (15:13 +0900)]
Change assert to warn on init state on test
Change-Id: Iccbdb614c48ef1036a7cf8bd1b439a0a162a6103
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 06:13:58 +0000 (15:13 +0900)]
FixBug: error handling in async logics in content-screening.cpp
After error, exception should be thrown. If async task returned
normally, it's considered as success case and completed callback called.
Change-Id: I929ccc8c1e5ee124f74a8588a927b07f453b673a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 05:42:37 +0000 (14:42 +0900)]
Wait to start async client subthread until api returned
For robust calling registered callbacks, wait to start async client
subthread until api returned, controlled by handle-ext mutex lock.
Some client gets undefined behavior when registered callback called
earlier than returning async API...
Change-Id: I31ac4596cb43d2b67b9fe8095ed2a4c98779e17e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 05:03:05 +0000 (14:03 +0900)]
Don't allocate/construct additional std::string
file visitor is one of the most frequently running part of program so it
needed to being downsized is highly recommended
Change-Id: Ib317b9420329b1ad25b4db6310d3cce53b39f95f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Mon, 13 Jun 2016 05:06:20 +0000 (14:06 +0900)]
Add dir blacklist which are excluded from scanning
Some files (procfs, sysfs) can occur undefined behavior when file
opened. Like sensor device file, it's blocked when file just opened.
File opening/reading could be differently implemented by engine in lower
layer of csr daemon so we cannot control all of them.
Change-Id: I157e3c21bb8e1c9e3b0afe9fbe65f97ad6eefefb
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Mon, 13 Jun 2016 02:48:58 +0000 (11:48 +0900)]
Delete only parent obejct in popup destructor
* In efl, if parent object deleted then child objects also deleted
automatically.
Change-Id: I21d8a6084fadb0a9c5b8293b1ee5f562bb9c2ffe
sangwan.kwon [Fri, 10 Jun 2016 09:09:17 +0000 (18:09 +0900)]
Refine label layout for multi-line
Change-Id: Id55fec0bb1c9d6d780f05a51aaa754955ea6acdd
Kyungwook Tak [Fri, 10 Jun 2016 08:04:03 +0000 (17:04 +0900)]
Add file io error handling in sample engine
Change-Id: I7dcf87abad15983444ca1595bce306612849f7d6
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Kyungwook Tak [Fri, 10 Jun 2016 07:57:14 +0000 (16:57 +0900)]
Skip errored directory on file system visitor
Silently skip unable to read directory stream to reduce side-effect to
whole other directories.
Change-Id: Ied216e0efcb0598251f5f7fad8d7f9abdabd17b6
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
sangwan.kwon [Thu, 9 Jun 2016 15:17:37 +0000 (00:17 +0900)]
Add webview when "More information" pressed
Change-Id: If0995f5652e791ae41b90a7f6f8ec9dd8341ffb6
Kyungwook Tak [Fri, 10 Jun 2016 05:54:21 +0000 (14:54 +0900)]
Disable test resources reset function
service cannot be restarted on both of platform v 2.4 and 3.0.
On 2.4, there's undefined behaviour when systemctl restart called.
On 3.0, test program should be run as "owner" user but it doesn't have
permission to restart system service.
Change-Id: I233a78fb81b1fc5a3835d7c013391e91c106d6b3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>