platform/upstream/csr-framework.git
8 years agoAdd engine library loader classes 64/66364/1
sangsu [Fri, 1 Apr 2016 05:11:37 +0000 (14:11 +0900)]
Add engine library loader classes

Change-Id: Iaf17a44a9e120e8ae0587fae839be20da6e3eb0d
Signed-off-by: sangsu <sangsu.choi@samsung.com>
8 years agoCatch exception when db not exist at first time 61/66361/1
Kyungwook Tak [Mon, 18 Apr 2016 09:40:11 +0000 (18:40 +0900)]
Catch exception when db not exist at first time

Getting schema version of db at first time is failed because
there isn't any table before constructed and exception is thrown.

Change-Id: I8b63429ae897048dedceeb67a9e3903aed47b765
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefactor db module 60/66360/1
Kyungwook Tak [Fri, 15 Apr 2016 00:16:11 +0000 (09:16 +0900)]
Refactor db module

Change-Id: I5261a07b8f013fda50d37b2c95ee18787e2bb887
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix bugs in class hierarchy derived from types.h 59/66359/1
Kyungwook Tak [Fri, 15 Apr 2016 05:22:54 +0000 (14:22 +0900)]
Fix bugs in class hierarchy derived from types.h

* class Result/Context shouldn't be constructed itself.
  It can only be used in derived form.

* class Result has member variable so it has serializations.
  Derived classes should be call it in serializations

* class Context don't has member variable which needs serialization.
  So serialization isn't implemented on it and be abstract class.

* class Result can be empty which means nullptr (e.g. in case of
  scan file and no malware detected, CsDetected should be null).
  To support it, Result class has ''hasValue'' member variable.
  All set functions in derived classes of Result class should call
  setValueFlag() to mark that it has value.

Change-Id: I38a00a0da09da6b8cf67a568c8d9f7fbeed157f4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agochange a parameter name from file_paths to dir_paths in csr_cs_scan_dirs_async 58/66358/1
Dongsun Lee [Fri, 15 Apr 2016 05:40:52 +0000 (14:40 +0900)]
change a parameter name from file_paths to dir_paths in csr_cs_scan_dirs_async

Change-Id: I880fc984f7f672637d4cd7c02e8e0123731b1472
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoadd web protection client functionalities 57/66357/1
Dongsun Lee [Fri, 15 Apr 2016 02:27:36 +0000 (11:27 +0900)]
add web protection client functionalities

Change-Id: I08d890f4873100e027ff2427054ba48e846e74aa
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoAdd file management classes 56/66356/1
Dongsun Lee [Thu, 7 Apr 2016 04:09:20 +0000 (13:09 +0900)]
Add file management classes

Change-Id: Iddec7d00168e806d11f8d6e395355709b3458f8e
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoDeclare key-value pair options to context / result 55/66355/1
Kyungwook Tak [Tue, 12 Apr 2016 08:14:11 +0000 (17:14 +0900)]
Declare key-value pair options to context / result

Change-Id: I01cb343025647bdcdb5210a07a352d723182f59a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAsync client stub initial commit 54/66354/1
Kyungwook Tak [Tue, 5 Apr 2016 08:51:27 +0000 (17:51 +0900)]
Async client stub initial commit

scan dir / scan dirs needs db integration in server, credential check
of client and filesystem related modules. For now it requests file lists
in target directory based on history and credentials (client-removable,
server-readable)

Change-Id: Ia487c916f31e70cc54b1b52b72dd98c096264dd0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoadd set core-usage function 53/66353/1
Dongsun Lee [Mon, 4 Apr 2016 04:30:52 +0000 (13:30 +0900)]
add set core-usage function

Change-Id: I2f1dd5dbf98a8285ea75f32b6f9664c2cf73ff10
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years ago[Fix typo] in cmake include dir 52/66352/1
Kyungwook Tak [Thu, 7 Apr 2016 02:47:07 +0000 (11:47 +0900)]
[Fix typo] in cmake include dir

Change-Id: I38ba0f7fc3c686309d1c1fa64b40ef75f6b1ed1b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoInstall headers under ${_prefix}/include/csr 51/66351/1
Kyungwook Tak [Wed, 6 Apr 2016 05:15:31 +0000 (14:15 +0900)]
Install headers under ${_prefix}/include/csr

Change-Id: I19595d2bb5a74498670b5c5fc90f4af42d55a4a4
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd init/deinit APIs to engine and refactor sample 50/66350/1
Kyungwook Tak [Tue, 5 Apr 2016 02:23:06 +0000 (11:23 +0900)]
Add init/deinit APIs to engine and refactor sample

sample engine refactored totally because engine handle
and context handle were tightly coupled and lot of c-style codes

Change-Id: Ie24a01880fc4b238aafddd32964a752c7cd469f6
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoMake thread safe read/write to connection 49/66349/1
Kyungwook Tak [Fri, 1 Apr 2016 03:05:11 +0000 (12:05 +0900)]
Make thread safe read/write to connection

Currently read/write through connection has only single
socket/ read/write invocation so there isn't any race condition
between socket operations and linux socket guarantees thread safety
if it isn't non-blocking I/O mode.
(refer
  - http://stackoverflow.com/questions/33812734/is-af-unix-socket-send-thread-safe/33813220
  - http://pubs.opengroup.org/onlinepubs/009695399/functions/write.html)

But in case of using non-blocking I/O mode later or not to dependent underlying
stream classes (e.g. socket, pipe, ...), connection class guarantees it to be safe concretely.

Change-Id: If1c423094fec2976bf20fb0026fca53ccfe14121
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRevert "Remove unused APIs related to ignored malware" 48/66348/1
Dongsun Lee [Fri, 1 Apr 2016 00:48:13 +0000 (09:48 +0900)]
Revert "Remove unused APIs related to ignored malware"

This reverts commit ad8210d59f6f7e575545e3e440b33ee22fbc3c3a.

Change-Id: I6acf858d83990c45efccec9e76abfcd20350e164
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoSimplify binary-queue and message-buffer 47/66347/1
Kyungwook Tak [Thu, 31 Mar 2016 13:25:54 +0000 (22:25 +0900)]
Simplify binary-queue and message-buffer

Remove unused features from binary-queue and
set maximum bucket size to 1024 bytes

Change-Id: Iba8b5e816986da2730236d61d6fd4c8923a6c43f
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefactor client connection based on DPM Client class 46/66346/1
Kyungwook Tak [Mon, 28 Mar 2016 13:01:47 +0000 (22:01 +0900)]
Refactor client connection based on DPM Client class

Change-Id: I02410693ff1718f10fdb611d273bdc3b56b05179
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd threadpool to server service 45/66345/1
Kyungwook Tak [Fri, 25 Mar 2016 08:49:35 +0000 (17:49 +0900)]
Add threadpool to server service

Change-Id: Ic4fa2ef017689def44401f8a027f08b5ccfce414
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove unused APIs related to ignored malware 44/66344/1
Dongsun Lee [Tue, 29 Mar 2016 07:02:27 +0000 (16:02 +0900)]
Remove unused APIs related to ignored malware

- csr_cs_get_ignored_malware
- csr_cs_get_ignored_malwares

Change-Id: I3398c6a8db18bed845d525e2250919e6685d12ee
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoadd threading flags of sqlite 43/66343/1
Dongsun Lee [Wed, 30 Mar 2016 05:07:24 +0000 (14:07 +0900)]
add threading flags of sqlite

- added MultiTread and Serialized flags

Change-Id: I3f1e71d96664d2c31fb290bdbdfee7fecd77e193
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoadd APIs related with engine state and the type of timestamp in APIs changed to time_t 42/66342/1
Dongsun Lee [Fri, 25 Mar 2016 11:49:42 +0000 (20:49 +0900)]
add APIs related with engine state and the type of timestamp in APIs changed to time_t

- csr_engine_set_state
- csr_engine_get_state
- add engine_state table
- the type of timestamp in content screening API is changed to time_t

Change-Id: I04d873719d6a85b67fb305ab20bda1c2262c3767
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoadd db module 41/66341/1
Dongsun Lee [Fri, 25 Mar 2016 11:04:15 +0000 (20:04 +0900)]
add db module

Change-Id: I55fc9a7a405d61d24c66368fdec4dc1c8b418c4d
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoadd/remove/modify APIs. 40/66340/1
Dongsun Lee [Tue, 22 Mar 2016 11:15:02 +0000 (20:15 +0900)]
add/remove/modify APIs.

- added: csre_wp_result_get_detailed_url
- added: csre_cs_scan_app_on_cloud
- added: csr_engine_get_lastest_update_time
- added: csr_engine_destroy
- added: csre_wp_engine_get_lastest_update_time
- added: csre_cs_engine_get_lastest_update_time
- removed: csre_cs_scan_file_by_fd
- removed: csre_cs_set_scan_on_cloud

Change-Id: I23820255cab0c8ae748d81640b622fded9d76efd
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoPopup service initial commit 39/66339/1
Kyungwook Tak [Tue, 22 Mar 2016 11:30:50 +0000 (20:30 +0900)]
Popup service initial commit

[Verification]
Run # csr-popup-test and see stdout is the same to the button what you clicked

TODO list
- Add language file when popup text format fixed
- Add more command items when popup related logic fixed
- Integrate to main logic when logic ready

Change-Id: If55574269aea8f77bde920d17b53dc564f94db72
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd engine APIs and sample engine & tests 38/66338/1
Kyungwook Tak [Tue, 22 Mar 2016 05:26:25 +0000 (14:26 +0900)]
Add engine APIs and sample engine & tests

Change-Id: I7aaa58c201f5ace245b660c3203f149bd701dfab
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoIntegrate draft API header and internal test 37/66337/1
Kyungwook Tak [Fri, 18 Mar 2016 07:56:46 +0000 (16:56 +0900)]
Integrate draft API header and internal test

Change-Id: I5c4f8bbeb4e0dbda352e4b6583350dcf3c8bf27c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoInitial commit of server program and common lib 36/66336/1
Kyungwook Tak [Wed, 16 Mar 2016 04:54:33 +0000 (13:54 +0900)]
Initial commit of server program and common lib

Base code of IPC is from device-policy-manager package
which is written by Jaemin Ryu (jm77.ryu@samsung.com)

Change-Id: Id00a88ee5711281ba6fc6a87dbeaba051c630246
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd gitignore file 35/66335/1
Kyungwook Tak [Thu, 17 Mar 2016 07:19:55 +0000 (16:19 +0900)]
Add gitignore file

Change-Id: Ib1e1e54d576f70fd5960e1e0d7ce1a482df26013
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRefactor make system and directory hierarchy 34/66334/1
Kyungwook Tak [Thu, 10 Mar 2016 06:59:25 +0000 (15:59 +0900)]
Refactor make system and directory hierarchy

To prepare development of new architecture of csr-framework
with server-client system

Change-Id: Iba7cd13de59a9029d280196b451da8a090239af7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agochange the boiler plate of CsrLog.h from Apache-2.0 to BSD-2.0 95/55595/1 accepted/tizen/common/20160229.161117 accepted/tizen/ivi/20160229.100544 accepted/tizen/mobile/20160229.100455 accepted/tizen/tv/20160229.100509 accepted/tizen/wearable/20160229.100525 submit/accepted/tizen_mobile/20151228.053957 submit/accepted/tizen_mobile/20151228.081025 submit/tizen/20160229.055710
Dongsun Lee [Mon, 28 Dec 2015 05:32:00 +0000 (14:32 +0900)]
change the boiler plate of CsrLog.h from Apache-2.0 to BSD-2.0

Change-Id: Idb3a980c2320e830a870f54e9c03ed98b255bcfa
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
9 years agoUse dlog instead of printf 39/52139/1 accepted/tizen/ivi/20160218.024233 accepted/tizen/mobile/20151123.093238 accepted/tizen/tv/20151123.093249 accepted/tizen/wearable/20151123.093303 submit/tizen/20151123.054138 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000004
Kyungwook Tak [Thu, 19 Nov 2015 09:09:44 +0000 (18:09 +0900)]
Use dlog instead of printf

Change-Id: Id18b4b333e964abf266050ae38ea18a839c27a22
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
9 years agoUpdate latest code of platform version 2.4 37/52137/1
Kyungwook Tak [Thu, 19 Nov 2015 08:55:33 +0000 (17:55 +0900)]
Update latest code of platform version 2.4

Change-Id: I7a6e538ce1ba398a4bcfc6bdd67bce5a7f6fe972
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
10 years agoAdd multi-user support 46/16446/2 accepted/tizen/generic accepted/tizen_generic accepted/tizen_ivi_panda accepted/tizen_ivi_release tizen_3.0.m14.2_ivi tizen_ivi_release accepted/tizen/generic/20140221.200649 accepted/tizen/generic/20140312.095935 accepted/tizen/ivi/20140221.215707 accepted/tizen/ivi/panda/20140312.090845 accepted/tizen/ivi/release/20140312.114550 accepted/tizen/mobile/20140227.071820 submit/tizen/20140221.200534 submit/tizen/20140312.070742 submit/tizen_ivi_release/20140312.071216 tizen_3.0.m14.2_ivi_release
Kévin THIERRY [Tue, 28 Jan 2014 14:00:08 +0000 (15:00 +0100)]
Add multi-user support

Bug-Tizen: PTREL-384
Change-Id: If6c8577398bb484f86793bd4edbb6123d22829fa
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
10 years agoUpdate Web Protection Documentation 50/14950/1 accepted/tizen/mobile accepted/tizen/generic/20140116.093334 accepted/tizen/ivi/20140117.000228 accepted/tizen/mobile/20140116.012154 submit/tizen/20140115.195818
Casey Schaufler [Tue, 14 Jan 2014 01:32:14 +0000 (17:32 -0800)]
Update Web Protection Documentation

New versions of the API and Plugin specification documents.

Change-Id: Ia1e314887cb7cb1a100f0a412f8c53b4258b67f9
Signed-off-by: Casey Schaufler <casey.schaufler@intel.com>
11 years agoUsing gcc driver instead of using ld directly to let gcc driver search the system... 96/8996/1 accepted/tizen/ivi/genivi accepted/tizen/ivi/stable tizen_ivi_genivi accepted/tizen/20130905.052101 accepted/tizen/20130905.183213 accepted/tizen/20130912.082336 accepted/tizen/20130912.085423 accepted/tizen/20130912.093439 accepted/tizen/ivi/genivi/20140131.020141 ivi_oct_m2 submit/tizen/20130905.052437 submit/tizen/20130912.075649 submit/tizen_ivi_genivi/20140131.015919
Bogon Kim [Fri, 30 Aug 2013 01:26:59 +0000 (10:26 +0900)]
Using gcc driver instead of using ld directly to let gcc driver search the system library such as libc, libgcc_s1 automatically on cross-build environment.

Signed-off-by: Bogon Kim <bogon82.kim@samsung.com>
11 years agoresetting manifest requested domain to floor 92/4692/1 accepted/tizen/20130710.220949 submit/tizen/20130710.130038
Alexandru Cornea [Fri, 28 Jun 2013 20:01:19 +0000 (23:01 +0300)]
resetting manifest requested domain to floor

11 years agoTidy up spec: change group; add description; etc. 49/3849/1 accepted/tizen/20130606.222658 submit/tizen/20130605.233034 submit/tizen/20130606.000619 submit/tizen/20130606.204728
Graydon, Tracy [Wed, 5 Jun 2013 22:51:41 +0000 (15:51 -0700)]
Tidy up spec: change group; add description; etc.

11 years agofixing install section of spec 05/2805/1 master submit/tizen/20130531.204135
Elena Reshetova [Tue, 5 Mar 2013 05:52:18 +0000 (07:52 +0200)]
fixing install section of spec

11 years agoRemoved dependency on pmake 61/2761/1
Ryan Ware [Mon, 18 Feb 2013 03:32:01 +0000 (19:32 -0800)]
Removed dependency on pmake

Change-Id: I0ffba36fd03d12a0250fd17a2f68ad2833794bbf

11 years agoRemoving the OverallMcAfeeSecure state. 54/2754/1
Ryan Ware [Fri, 15 Feb 2013 01:08:16 +0000 (17:08 -0800)]
Removing the OverallMcAfeeSecure state.

Change-Id: I297fd8b794e27ad122392153a19a145e06b77aed

11 years agoAdded default manifest and changes file. 34/2734/1 TAG_NAME v1.0.0
Ryan Ware [Mon, 11 Feb 2013 21:48:51 +0000 (13:48 -0800)]
Added default manifest and changes file.

Change-Id: I0fd3e6e2b80b345e20ae3df3dbcd210cbbc62146

11 years agoModify Makefile to build, moved it to root of project and added packaging directory. 33/2733/1
Ryan Ware [Mon, 11 Feb 2013 21:35:21 +0000 (13:35 -0800)]
Modify Makefile to build, moved it to root of project and added packaging directory.

Change-Id: I5876fd0cb474c1170df67a31349322e3e2ae49e9

11 years agoInitial commit of Content Screening and Reputation Framework. 10/2710/1
Ryan Ware [Wed, 30 Jan 2013 20:47:07 +0000 (12:47 -0800)]
Initial commit of Content Screening and Reputation Framework.