platform/core/security/trust-anchor.git
7 years agoGrant System::Shared label to pakage-directory 51/157951/1
sangwan.kwon [Fri, 27 Oct 2017 02:46:39 +0000 (11:46 +0900)]
Grant System::Shared label to pakage-directory

[Background]
- App-installer is run as System label and it handles
  package-directory of trust-anchor
- Launchpad is run as User label and it reads package-directory

[Problem]
- Files of package-directory is made by app-installer as System label.
  So, Launchpad cannot read it.

[Solution]
- Grant System::Shared label.

Change-Id: I492ec4c5e4ddd2d530b88581eb2fbfc8d32a4874
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoUpgrade version to 2.1.0 38/157738/1 accepted/tizen/unified/20171027.152034 submit/tizen/20171026.071605
sangwan.kwon [Thu, 26 Oct 2017 04:57:49 +0000 (13:57 +0900)]
Upgrade version to 2.1.0

[MAJOR]
- Add error code about trust-anchor is not installed
- Fix uninstall API policy

[MINOR]
- Replace std::rewind to std::fseek
- Update documentation according to version 2.0.0

Change-Id: Ifdef2eef5b35b83c6e105c60f09a92b7fdb3943c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd error code about trust-anchor is not installed 30/157730/1
sangwan.kwon [Wed, 25 Oct 2017 08:33:51 +0000 (17:33 +0900)]
Add error code about trust-anchor is not installed

[Background]
- Launcher-pad cannot get information of the package
  which trust-anchor is installed or not.

[Solution]
- Add new error code (TRUST_ANCHOR_ERROR_NOT_INSTALLED)

Change-Id: I45543949a96bcdaac3d0b933cc87ace20866f5df
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoReplace std::rewind to std::fseek 23/150323/1
sangwan.kwon [Wed, 13 Sep 2017 04:49:02 +0000 (00:49 -0400)]
Replace std::rewind to std::fseek

std::rewind cannot handle error indicators.

Change-Id: I8c4006c5378a19c6e761708df619f1d77261d8bd
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoUpdate documentation according to version 2.0.0 74/142474/1
sangwan.kwon [Fri, 4 Aug 2017 05:16:56 +0000 (14:16 +0900)]
Update documentation according to version 2.0.0

Change-Id: I89bd8ac8c9b4659a1e7f19d83a9667e18b65a0d8
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix uninstall API policy 32/141132/1 accepted/tizen/4.0/unified/20170816.012820 accepted/tizen/4.0/unified/20170829.020430 accepted/tizen/unified/20170731.153835 submit/tizen/20170731.054223 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
sangwan.kwon [Fri, 28 Jul 2017 07:48:54 +0000 (16:48 +0900)]
Fix uninstall API policy

[AS-IS]
- If trust-anchor is never installed and uninstall API is called,
  return FAILED-status error code.

[TO-BE]
- If trust-anchor is never installed and uninstall API is called,
  notify to log as warning and process continue.

Change-Id: I2aff6aca3622dba4e7edaa811c5a735c3ffb67c4
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoUpgrade version to 2.0.0 00/139700/2 accepted/tizen/unified/20170728.195546 submit/tizen/20170720.071940 submit/tizen/20170724.061427 submit/tizen/20170724.094119 submit/tizen/20170727.084517
sangwan.kwon [Thu, 20 Jul 2017 07:06:29 +0000 (16:06 +0900)]
Upgrade version to 2.0.0

[MAJOR]
- [API Changed] Refine launch, uninstall API
- [API Changed] Unify API sets(global, usr)

[MINOR]
- Add testcase about Uninstall API
- Fix logger usage according to KLAY API changed
- Include error-header to API header explicitly

Change-Id: Id012103f98927ab7452d4f1d86ea7fccb236a184
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd testcase about Uninstall API 70/139470/1
sangwan.kwon [Wed, 19 Jul 2017 05:32:21 +0000 (14:32 +0900)]
Add testcase about Uninstall API

- Even though original package's certificates are removed
  after install API called, uninstall API should be succeed.
- This TC is related with klay patch
  (https://review.tizen.org/gerrit/#/c/138903/)

Change-Id: I71008b44d78acb91f95ac4c8e3f5ca516fcd2376
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix logger usage according to KLAY API changed 97/139197/1 accepted/tizen/unified/20170727.190710 submit/tizen/20170726.025713
sangwan.kwon [Mon, 17 Jul 2017 08:23:27 +0000 (17:23 +0900)]
Fix logger usage according to KLAY API changed

Change-Id: I60fb8056ee8866eef6d17a95dcc5d84ba7b4a5ef
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years ago[API Changed] Refine launch, uninstall API 20/138520/2 accepted/tizen/unified/20170726.013008 submit/tizen/20170725.065700 submit/tizen/20170725.091352
sangwan.kwon [Wed, 12 Jul 2017 10:50:55 +0000 (19:50 +0900)]
[API Changed] Refine launch, uninstall API

[AS-IS]
- Installer should save data(1):"package-certs-path".
- Launcher should be able to get data(1) for using launch API.
- Installer should be able to get data(1) for using uninstall API.

[TO-BE]
- Installer does not need to save and get data(1).
- Launcher does not need to get data(1).

Change-Id: Ieeec21a62830d5a02e53c592999e041feef1dc5a
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years ago[API Changed] Unify API sets(global, usr) 10/138410/1
sangwan.kwon [Wed, 12 Jul 2017 06:27:24 +0000 (15:27 +0900)]
[API Changed] Unify API sets(global, usr)

Since global package has own uid, API can be unified.

Change-Id: Iefd89f86a00fc52bf143de45b0341662651c9f42
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoInclude error-header to API header explicitly 69/138369/1
sangwan.kwon [Wed, 12 Jul 2017 02:50:40 +0000 (11:50 +0900)]
Include error-header to API header explicitly

Change-Id: I7424d6d664200d88876453e16ecb8370f71b8dee
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRelease 1.0.0 32/134232/1 accepted/tizen/unified/20170629.085837 submit/tizen/20170623.014003
sangwan.kwon [Thu, 15 Jun 2017 10:08:30 +0000 (19:08 +0900)]
Release 1.0.0

Change-Id: I6dd9bf61fa1cdb35688e935d82b2e87bf439eed8
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoUpgrade version to 1.0.0 31/134231/2
sangwan.kwon [Thu, 15 Jun 2017 08:45:45 +0000 (17:45 +0900)]
Upgrade version to 1.0.0

Change-Id: I9c45b0bfdc81534b7c3a1672e81c932163e460e6
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd class diagram 14/134214/1
sangwan.kwon [Thu, 15 Jun 2017 08:38:34 +0000 (17:38 +0900)]
Add class diagram

Change-Id: Iba30892b484c4c882d564b3489e11e4ef9bc67ca
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRefactor implementation of TrustAnchor 33/132433/3
sangwan.kwon [Fri, 2 Jun 2017 08:30:47 +0000 (17:30 +0900)]
Refactor implementation of TrustAnchor

- According to class diagram v2

Change-Id: I31c920ff155f96981e6b6ba838d7ccd07dabd459
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix typo on test-init script 75/131575/1
sangwan.kwon [Tue, 30 May 2017 05:30:37 +0000 (14:30 +0900)]
Fix typo on test-init script

Change-Id: I3bbdc294d0fbf9efa1b3f95992b63aa118d18913
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years ago[API Changed] Refine launch API 05/130605/2
sangwan.kwon [Tue, 23 May 2017 05:51:29 +0000 (14:51 +0900)]
[API Changed] Refine launch API

[AS-IS]
- Installer should save data(1):"whether app uses sysCerts or not".
- Launcher should be able to get data(1).

[TO-BE]
- Installer does not need to save data(1).
- Launcher does not need to get data(1).

Change-Id: I7f622b90d5f38dd9e52633a563f9ebcfc0dea001
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoDetach SSL testcases from internal testcases 09/128209/2
sangwan.kwon [Mon, 8 May 2017 04:34:10 +0000 (13:34 +0900)]
Detach SSL testcases from internal testcases

Change-Id: I5193a8933592a0d8d1bcbf97ee6038ed91bfe943
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd API examples about installer and launcher 44/125144/3
sangwan.kwon [Fri, 14 Apr 2017 04:07:48 +0000 (13:07 +0900)]
Add API examples about installer and launcher

Change-Id: I2a839f5b56884fc0eed1f8db156357e07595f071
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMeasure performance of API 81/124981/1
sangwan.kwon [Thu, 13 Apr 2017 08:04:48 +0000 (17:04 +0900)]
Measure performance of API

[Result - Elapsed time]
- trust-anchor install operation : 11ms, 36ms(with system certs)
- trust-anchor launch operation : 2ms, 2ms(with system certs)

Change-Id: If0b75e9142d1fc746bdf491350218bb90d5be20d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix visibility to hidden 28/124928/1
sangwan.kwon [Thu, 13 Apr 2017 05:16:20 +0000 (14:16 +0900)]
Fix visibility to hidden

Change-Id: Icf005ec5d9e35adb3a7771936df5bf1ce098e674
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd SSL communication testcase 51/124151/3
sangwan.kwon [Mon, 10 Apr 2017 10:02:12 +0000 (19:02 +0900)]
Add SSL communication testcase

Change-Id: I9936cab98398e0abb550b997ebe8026171a44739
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd documentation about doxygen and usecase 93/124093/1
sangwan.kwon [Mon, 10 Apr 2017 07:08:01 +0000 (16:08 +0900)]
Add documentation about doxygen and usecase

Change-Id: I15b98d3c72facede5b949883ef49055e93b7df20
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd smack label to test programs 87/122087/3
sangwan.kwon [Thu, 30 Mar 2017 06:59:43 +0000 (15:59 +0900)]
Add smack label to test programs

Change-Id: I4dd5cc9677b6425e629935632bf022c856c2c296
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoRefine error/exception handling logic 60/121260/6
sangwan.kwon [Mon, 27 Mar 2017 10:16:46 +0000 (19:16 +0900)]
Refine error/exception handling logic

Change-Id: Idf22a826277c872c9a180cfc9196d2193d30d6f7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd gitignore file 46/121146/1
sangwan.kwon [Mon, 27 Mar 2017 07:31:07 +0000 (16:31 +0900)]
Add gitignore file

Change-Id: I7749373ee9fec0af967b9beef13fc84fa7b19138
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoFix CAPI description 45/121145/1
sangwan.kwon [Mon, 27 Mar 2017 07:28:46 +0000 (16:28 +0900)]
Fix CAPI description

Change-Id: I877bdb595079a5f1d017b8e82da63f70cc00a381
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoChange hard-coded bundle name to parsed string 59/120759/1
sangwan.kwon [Fri, 24 Mar 2017 04:41:13 +0000 (13:41 +0900)]
Change hard-coded bundle name to parsed string

Change-Id: Ie6848d8f0a48c1b4d8bda1c866e16878779d2e14
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd testcases of trust-anchor library 05/120005/2
sangwan.kwon [Mon, 20 Mar 2017 08:24:46 +0000 (17:24 +0900)]
Add testcases of trust-anchor library

Change-Id: Ia31dedd92c33000df652a55824a95b8918e0e5b7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd implemetation of trust-anchor library 04/120004/1
sangwan.kwon [Thu, 16 Mar 2017 13:12:14 +0000 (22:12 +0900)]
Add implemetation of trust-anchor library

Change-Id: Id8ea3c9d3c18806daa310b1455064530640fd9b7
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd API headers and build/packaging system 00/119300/1
sangwan.kwon [Thu, 16 Mar 2017 08:45:49 +0000 (17:45 +0900)]
Add API headers and build/packaging system

Change-Id: I11178429164b9c60e6e0f76d8e9c5fdad1e8a918
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Tue, 14 Mar 2017 07:21:20 +0000 (00:21 -0700)]
Initial empty repository