Dariusz Michaluk [Fri, 14 Jun 2019 11:37:53 +0000 (13:37 +0200)]
Fix tef-simulator dependency to openssl
tef-simulator-devkit has TA_PackageBuilder.sh which requires openssl binary
tef-simulator-devkit doesn't require openssl-devel
Change-Id: If5ad50d7dbd83b25963794ff104dbef49611b74e
Konrad Lipinski [Wed, 29 May 2019 16:08:32 +0000 (18:08 +0200)]
Make spec compliant with gbs --incremental
According to [1], %prep section of the spec file should contain a single
%setup macro, nothing else. According to [2], manifest %files are best
copied to %{buildroot}%{_datadir} in the %install section.
Moved manifest copy operations from %prep to %install accordingly.
References
[1] https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-build
[2] https://wiki.tizen.org/Security/Application_installation_and_Manifest
Change-Id: Ie9b683d8bee96528407aefc04b6bf1981166f559
Krzysztof Jackiewicz [Fri, 17 May 2019 12:23:00 +0000 (14:23 +0200)]
Don't pass public key for RSA decryption
Change-Id: Id90f67c03fb1f3f83d06e66bf86e48b3f50cc98c
Krzysztof Jackiewicz [Fri, 5 Apr 2019 15:15:17 +0000 (17:15 +0200)]
Enable support for DSA and RSA 4096
- Allow creation of DSA operation (sw_crypto_open)
- Extract DSA attributes from TEE object and transfer them to crypto
core (TEE_AsymmetricSignDigest, TEE_AsymmetricVerifyDigest) reusing
RSA key representation (crypto_internal_keystruct). To be
refactored.
- Properly initialize DSA operation using DSA key
parameters (sw_crypto_ioctl_init)
- In case of RSA 4096 the buffer size for key attributes is too
small. Take attribute size from key size due to lack of length
probing in TEE_GetObjectBufferAttribute().
Change-Id: If2b536ea3b5a5cee6d347e36c2be2febcc9db622
Krzysztof Jackiewicz [Mon, 25 Mar 2019 09:15:06 +0000 (10:15 +0100)]
Implement CTR using openssl
Crypto core implementation of CTR requires the output buffer to be a
multiplicity of the block size. CTR is a stream cipher and as such it should
produce the output of the length equal to the input.
Switch to openssl implementation.
Change-Id: I15471aaaf887c08020c4e472e8b28df7937bd898
Krzysztof Jackiewicz [Thu, 21 Mar 2019 10:36:28 +0000 (11:36 +0100)]
Don't panic when padding is wrong in asymmetric decryption
According to GP Internal API 1.1.2 TEE_AsymmetricDecrypt() should not panic but
return TEE_BAD_PARAMETERS in case of incorrect ciphertext padding.
Return TEE_BAD_PARAMETERS if crypto_internal_final() fails with
CRYPTO_INVALID_ARGUMENT instead of panicking.
Update related code.
Change-Id: I576c1699cf284d501e13d7367f936c708d924ec5
Lukasz Kostyra [Mon, 18 Feb 2019 08:56:46 +0000 (09:56 +0100)]
ssf_crypto: Assign proper key object type in AllocateOperation
Change-Id: I3229f0d5922804ce0c0d56aa2c44b61f3f679fd4
Lukasz Kostyra [Thu, 14 Feb 2019 11:30:12 +0000 (12:30 +0100)]
ssf_storage: Add missing objectSize copy in TEE_CopyObjectAttributes
Change-Id: Ibe2e33a3c6386b41bcb3ee0e483d1bc309fa9a7f
Konrad Lipinski [Tue, 30 Apr 2019 06:34:35 +0000 (08:34 +0200)]
Fix c++test defects (strncpy usage)
Change-Id: I1b8ded2654b0e7ef76669479783459acaf084421
Krzysztof Dynowski [Mon, 11 Feb 2019 15:28:41 +0000 (16:28 +0100)]
Fix setting of identity property
Change-Id: If72f72a7122f9405ecb83e35f8c1f4d9ea27961b
Igor Kotrasinski [Tue, 27 Nov 2018 10:56:59 +0000 (11:56 +0100)]
Rework some ternaries for readability
Change-Id: I4916a11b2500a41858a1011ce54676b9a4286435
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 10:48:30 +0000 (11:48 +0100)]
Split up prechecks for readability
Change-Id: I19d400d3d8db3915c12b5f9f93bdb767a8c5dc0c
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 10:37:53 +0000 (11:37 +0100)]
Add some necessary virtual destructors
Change-Id: I647fc1c8183b8479667de832a73ab3e5ec05eaf2
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 10:28:28 +0000 (11:28 +0100)]
Rewrite some read/write loops for readability
Change-Id: I2f26120a82c51f0a285f96cb16b0f9f2499c2c77
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 10:13:04 +0000 (11:13 +0100)]
Remove failure check for function promised not to fail
Change-Id: Ib4a0d56c59c913f5fb2b707f435d7fef5b0cb422
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 09:11:38 +0000 (10:11 +0100)]
Prettify a strncpy
Change-Id: Ieb75766f5412ed620ff169f14a0a2e8c0baa8690
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 27 Nov 2018 08:57:26 +0000 (09:57 +0100)]
Catch leftover boost exceptions in simdaemonctl
Change-Id: Ife030baba09cee90f7bfe1e9648c02f55aaf98a3
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Konrad Lipinski [Thu, 8 Nov 2018 14:44:28 +0000 (15:44 +0100)]
Disable boost coroutine deprecation warning
Boost coroutines is now deprecated and replace by coroutines2 which is
not in the repo yet.
Change-Id: I6096d1129fd7e8aaedbbadf6f1e7f5ad347b2ae4
Krzysztof Jackiewicz [Thu, 4 Oct 2018 08:53:52 +0000 (10:53 +0200)]
Set custom IV length in AES GCM
Current implementation assumed the default IV length (12B) silently ignoring
longer IVs. As a result the encryption output did not match the expected one.
This commit modifies the implementation to always set the actual IV length in
the encryption context.
Change-Id: I82f9bc916f108563a4a940d340945279c661bbaa
Tomasz Swierczek [Mon, 17 Sep 2018 07:39:06 +0000 (09:39 +0200)]
Revert "Revert "Modifying cmake TA devkit to be more similar to other TEF backends.""
This reverts commit
a5c8ea2d4c5fd04a1ae02995724e5b0d79a19c21.
Tomasz Swierczek [Thu, 13 Sep 2018 12:54:12 +0000 (14:54 +0200)]
Revert "Modifying cmake TA devkit to be more similar to other TEF backends."
This reverts commit
49a434ec5a77aafcf84b085e8bb19709085ae6dd.
Change-Id: I73fb8e59fd6e6c6755914919804b6129e08582eb
r.tyminski [Mon, 9 Apr 2018 12:59:14 +0000 (14:59 +0200)]
Modifying cmake TA devkit to be more similar to other TEF backends.
Change-Id: If6930c90e575345c80f7f7a3f5201dfd5e7955f5
Igor Kotrasinski [Mon, 27 Aug 2018 12:16:49 +0000 (14:16 +0200)]
Release 0.0.3
* New version of TA Package Manager
* tee_internal_api.h fixes to bring it back in line with existing code
* Fixes to logging system
* Turn tef-simulator-log to a shared library
* Split TEEStub to a static stub and a shared implementation
* Fixes to TEE::System label usage, add a debug proxy daemon for TA debugging
* Bugfixes
Change-Id: I6cb5d252541ce70223961907284cb4216a3aa4fd
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 2 Aug 2018 10:25:26 +0000 (12:25 +0200)]
Rework port listening timeout
Apparently passing in lambda with automatic storage duration to boost::spawn
causes UB. Use a static method instead and make sure to cancel it properly
after we're done listening.
Change-Id: Ia3817a82fba6150690879d6839b8466e4072a3bb
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 2 Aug 2018 08:19:49 +0000 (10:19 +0200)]
Improve logging for socket forwarding
Change-Id: I993d089b924ef71b91c604ff730d2621fbc31c32
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 21 Jun 2018 09:21:03 +0000 (11:21 +0200)]
Add shell env var to gdbserver invocation
Change-Id: I5506244a2c3e77561fa5a26d3c92d79d75191ee1
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 20 Jun 2018 10:47:00 +0000 (12:47 +0200)]
Add status to TA exit log
Change-Id: I67dad3dec4aed2ab6038c4e85cab891216df706c
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 1 Aug 2018 10:02:34 +0000 (12:02 +0200)]
Improve debug logging at debug TA launch
Change-Id: Idd0ea10a0e795c56c93fe4cc3139c6e340ede2e2
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 1 Aug 2018 07:38:53 +0000 (09:38 +0200)]
Make simdaemon use the new debugproxy
Instead of running gdbserver to listen on a port, we run it in stdin/out mode
and replace the descriptor with the debugproxy socket fd.
Change-Id: Ifa06dd42d008a1efb4628061a0dee05cbc51ada9
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 20 Jul 2018 13:49:46 +0000 (15:49 +0200)]
Take local debugproxy socket from systemd
Change-Id: I468c80dcecd977afd762f103a27cedd00cec7621
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 20 Jul 2018 12:30:26 +0000 (14:30 +0200)]
Gracefully shutdown debugproxy when sent SIGTERM
Change-Id: Idfb58076028d9c78e2ac297927d99c2da75217b2
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 20 Jul 2018 07:59:58 +0000 (09:59 +0200)]
Add boost runtime deps to spec
Change-Id: I132571ae35c0afba3b982c8ffebcc36647523a29
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 19 Jul 2018 12:48:24 +0000 (14:48 +0200)]
Move launching gdbserver to separate function
Change-Id: Ic8adfc816b895ffbffb86eebe960fc80c73deb96
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 20 Jul 2018 09:05:28 +0000 (11:05 +0200)]
Add logging to debugproxy
Change-Id: I2086948c9784c18d452c281372c221ee119ab2c4
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 17 Jul 2018 11:53:47 +0000 (13:53 +0200)]
Initial debugproxy version
Change-Id: I0f426de44f5856fd082ea9685bdad17bd11a1d52
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 10 Jul 2018 09:50:11 +0000 (11:50 +0200)]
Put debugproxy in a systemd service
Change-Id: I3813e9a2727333d3d7f8bd8f025bf262f1eda28f
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 10 Jul 2018 08:29:58 +0000 (10:29 +0200)]
Add debugproxy stub
Change-Id: Ifb3f5b0cee73f9d19cbdd08b8436de9c5d2e4bb1
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 19 Jun 2018 13:15:55 +0000 (15:15 +0200)]
Move tef-simulator-helloworld to "System" domain
As shared memory is still allocated client-side, CAs should be in System domain
so that the TA can read it.
Change-Id: Ie869082afe439fb7f2dd695a9644a649e72c0dac
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Zofia Grzelewska [Wed, 25 Apr 2018 16:58:24 +0000 (18:58 +0200)]
Fix BSD license name
Change BSD to BSD-3-Clause
Change-Id: If9f3ac03a8b367ba9d48596daf3d02f36ab67d49
Igor Kotrasinski [Fri, 8 Jun 2018 13:28:31 +0000 (15:28 +0200)]
Use correct enum types in log.h
Change-Id: If14013829c7ce55fc53e669b11475e977aef6be3
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 6 Jun 2018 11:44:48 +0000 (13:44 +0200)]
Rewrite conversion from UUID to string
Fixes an issue with strtol not specifying base and makes all conversions use
std functions.
Change-Id: I3e525f3a58ab40d768357ebb6cca77224885cdab
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 6 Jun 2018 08:09:41 +0000 (10:09 +0200)]
Fix copying read commands via cast to string
Change-Id: Ie4dff5affd95bcd59694924922d1b01f3123a3de
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 30 May 2018 07:47:53 +0000 (09:47 +0200)]
Give helloworld TA a System::TEF label
Fixes tef-simulator not able to run the helloworld TA after assigning it a
System::TEF label.
Change-Id: Ib87d6bb4a8c77e48d19a08826d212e9d46d477f2
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 10 May 2018 08:41:33 +0000 (10:41 +0200)]
Split TEEStub into a stub and an implementation
In order to avoid tying a TA to specific client versions, split TEEStub into a
minimal stub with an entry point and a shared implementation.
Change-Id: Iefa4b91fc72df07abe117271d75d56a76df49b11
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 10 May 2018 07:59:19 +0000 (09:59 +0200)]
Change tef-simulator-log to shared library
Change-Id: Iac5753b956d8498d28db492a7a721c008ba5c0dd
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 9 May 2018 08:46:39 +0000 (10:46 +0200)]
Remove unused log macros
Change-Id: I78eb5905670033eff493cc300570cc085443393a
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 8 May 2018 12:43:16 +0000 (14:43 +0200)]
Return logged length in TA logger function
Change-Id: I93f93761298adc2791d9ac3c3cf6bd41040e8e26
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 8 May 2018 12:01:43 +0000 (14:01 +0200)]
Restore support for TA logging and debug.h header
Change-Id: I796839c17203b4898a9f82595d656b573916b715
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 8 May 2018 11:48:38 +0000 (13:48 +0200)]
Add tag argument to PrintLog
Change-Id: Iaeb628d2457a1e54a7636c7b7527de39a6eadf57
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 8 May 2018 10:17:35 +0000 (12:17 +0200)]
Rename module enum elements to avoid conflicts
Change-Id: Ie65e88f0956ce133e3cfcf6ac9d6fde65fcae628
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 8 May 2018 08:23:35 +0000 (10:23 +0200)]
Clean up simulator logging levels
Share log levels with log_level.h, refactor logging function.
Change-Id: I5b05b6e37bb631609794ed05082aac13a4707a39
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Mon, 30 Apr 2018 09:42:17 +0000 (11:42 +0200)]
Unconditionally compile main log function
The log function will be used by TAs as well, so we want to conditionally
compile only the part for simulator logging. Add a proxy method to logging that
evaluates depending on _LOGGING macro and always compile the logging function
underneath.
Change-Id: I468c932b697fc2a4064928ca2518992c9ab4e298
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Mon, 23 Apr 2018 09:51:29 +0000 (11:51 +0200)]
Port padding sanity checks from suprem
Change-Id: Icee3e0f1e04ee874fd931ec0079a28f606ad9638
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Mon, 23 Apr 2018 08:34:09 +0000 (10:34 +0200)]
Remove test printing code in CC_API.c
Change-Id: Ib97d136c6dae0803cb3de91587d1322024a1ee68
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 18 Apr 2018 13:13:39 +0000 (15:13 +0200)]
Consistently check for null TAFactory
Change-Id: Iffd615ba77c2291b553153273dce57198347e370
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 17 Apr 2018 11:58:53 +0000 (13:58 +0200)]
Restore GPD_TEE_PROP file
Change-Id: I2d1dea281d417f3e4ac474c88deaf445d37cb01f
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 17 Apr 2018 09:55:05 +0000 (11:55 +0200)]
Fix hardcoded group name
Change-Id: I840f350c82ecc29623e69fbbeddd4e132a23754e
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Tue, 17 Apr 2018 09:46:11 +0000 (11:46 +0200)]
Restore tee_internal_api.h constness
The specification uses a [ctx] specifier, which should, but is not required to
use const. Revert to using const to match existing code use cases.
Change-Id: Ied65fb18e0e5f7fd32cd5a5219fb5ccaf2895e21
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Mon, 16 Apr 2018 13:29:30 +0000 (15:29 +0200)]
Fix test to use (and cleanup at) single exit
Change-Id: I9d49f17879c744c5d99a219d6825ef081b3f0e36
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Mon, 7 May 2018 12:05:39 +0000 (14:05 +0200)]
Fix order of linked libraries
Fixes broken build when debug is enabled.
Change-Id: Ibb84ae714a49d91baa2317d56c8a18e1f6649ea1
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
r.tyminski [Tue, 17 Apr 2018 06:39:38 +0000 (06:39 +0000)]
Merge "Upload new version of TAPackageManager" into tizen
r.tyminski [Thu, 12 Apr 2018 08:22:34 +0000 (10:22 +0200)]
Upload new version of TAPackageManager
Change-Id: Idb92f039a132dca75e0ef9ef161f27c1e1cf2d56
Tomasz Swierczek [Thu, 12 Apr 2018 07:58:36 +0000 (09:58 +0200)]
Release 0.0.2
* access control change: use DAC (priv_tee_client) & System::TEF Smack domain for daemon
* make tef-simulator cynara-/security-manager- independent
* fixes to socket activation
* refactoring of big parts of the code, bug fixes
Change-Id: I2b36ce395dd82c02b61b2c33a3c47cffc6bd55e4
Zofia Grzelewska [Tue, 27 Mar 2018 11:54:18 +0000 (13:54 +0200)]
Return access denied when connect to socket fails with EACCES
When client cannot connect to simulator socket with error EACCES,
propagate this error to client using TEEC_ACCESS_DENIED.
Change-Id: I62d678a451f2d099ce314d6a059f8ec91f20d4af
Zofia Grzelewska [Tue, 6 Mar 2018 16:50:23 +0000 (17:50 +0100)]
Make tef-simulator independent from Tizen : remove cynara
Remove cynara usage and dependencies. As access control will
be done by outside DAC group and Smack label, there is no
more need of SecurityContext structure.
Change-Id: I6cc47903d4c844a880bf6786f245b2811fc9e946
Zofia Grzelewska [Wed, 7 Mar 2018 15:02:58 +0000 (16:02 +0100)]
Change group and Smack label on socket and service
Tef-simulator socket should have group connected with
tee.client privilege : priv_tee_client.
Also service process needs assigned additional label
System::TEF with socket using System IPIn label.
Change-Id: Ia5c85aaabdc221a84a8c47f8c5629b7491c7438c
Igor Kotrasinski [Fri, 16 Mar 2018 10:16:57 +0000 (11:16 +0100)]
Set LibTEEC shm file group to the TEE group
Change-Id: Ic7ff46edb8662e955aa032c0a3a9d96fc88eca82
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 16 Mar 2018 09:33:44 +0000 (10:33 +0100)]
Refactor allocateSharedMemory logic flow for readability
Change-Id: If1f55c38d883370d7c6c35a3f3d9856b57809561
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Inho Kim [Mon, 20 Nov 2017 10:48:42 +0000 (19:48 +0900)]
Replace pre/postprocess_operation as a function
Change-Id: If651518a71bbaf7b6945e50b78e6b77c118d3462
Igor Kotrasinski [Mon, 19 Mar 2018 10:14:20 +0000 (11:14 +0100)]
Restore tee_client_api.h
The header was originally deleted in favour of one in tef-libteec. This makes
tef-libteec a build dependency of the simulator, and not everyone uses that.
Restore and use the header so that tef-libteec is only an install dependency.
Change-Id: I253fdf15c257fe5f2a92a719ac215b94d77e224b
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 15 Dec 2017 13:33:59 +0000 (14:33 +0100)]
Add query functionality to daemonctl
Change-Id: I61455821bfdd5b83ecd1c61895320d36d3fa0f57
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 15 Dec 2017 12:38:30 +0000 (13:38 +0100)]
Add port clearing support to daemonctl
Change-Id: I09d10fe9287db9a7ffca5685f6353726e682ff9a
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 14 Dec 2017 10:40:42 +0000 (11:40 +0100)]
Use new config manager to keep track of debug ports
Change-Id: Ic3054aa0e83c47f25e3aa01556ffe5e69513d923
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 14 Dec 2017 10:04:08 +0000 (11:04 +0100)]
Use TEEC_UUID instead of string for map keys
Change-Id: I9328ba8b6cf7ad4fca5acef839b77e1f3644d6c9
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Fri, 15 Dec 2017 14:43:55 +0000 (15:43 +0100)]
Add a simulator control client
Change-Id: I8ef2c5543f9e5723b614fd0d191b58894c2e4478
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 14 Dec 2017 11:22:40 +0000 (12:22 +0100)]
Move UUID conversion to string outside binary manager
Change-Id: I2e87b716d07e87341bdd753a2e3e3267258fe9ec
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 13 Dec 2017 10:40:57 +0000 (11:40 +0100)]
Add a UUID-specific config manager class
Change-Id: Iaceb3eb09ddba6e8e4d933b7074350db4fde36ac
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 7 Dec 2017 13:13:08 +0000 (14:13 +0100)]
Add handle socket for simulator control
The control daemon will be used to change some simulator behaviours with regard
to e.g. launching TAs; for now it will be used to toggle TA remote debugging
and their remote debugging ports.
Change-Id: I5c82c6082d07ffd378914db42d3c9d0383f1b5a3
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 7 Dec 2017 13:04:57 +0000 (14:04 +0100)]
Add control socket message handling classes
Change-Id: Ia97a02e550b93f250be1ebc5ba14159dd6b3baa9
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Thu, 7 Dec 2017 10:57:01 +0000 (11:57 +0100)]
Add port setting to TABinaryManager
Change-Id: I713b7015f86a12b704209c64e7cda135d50f9153
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Igor Kotrasinski [Wed, 6 Dec 2017 10:07:00 +0000 (11:07 +0100)]
Split handling command off of ConnectionSession
Split ConnectionSession into the part that handles socket I/O and
the part that handles actual commands. This way the socket I/O part can
be reused for control commands.
Change-Id: I4454c6b225505acf9b86120c22369c390068194b
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Krzysztof Dynowski [Tue, 27 Mar 2018 10:28:19 +0000 (12:28 +0200)]
Check TEE name again
Change-Id: I4dfb4511da9ec8dc8bf496e32b22dcbc9ee62c76
Krzysztof Jackiewicz [Tue, 27 Mar 2018 09:37:24 +0000 (11:37 +0200)]
Recreate the link to tastore during rpm update
The link to tastore was only created during rpm installation. However, the path
to tastore has changed since the last release and the link should be recreated
during rpm update as well.
This commit makes the rpm update recreate the link so that it points to the
valid tastore directory.
Change-Id: I545461b058eb966e2c24a4f1752b241948e5134c
Krzysztof Dynowski [Tue, 27 Mar 2018 11:36:17 +0000 (11:36 +0000)]
Merge "Use cond to wait for new command and not waste 100% CPU" into tizen
Lukasz Kostyra [Wed, 7 Mar 2018 14:51:39 +0000 (15:51 +0100)]
Start TEF simulator on install
Change-Id: Iab1da43900b7077921c77d2852a0f4354e17b39d
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
Krzysztof Dynowski [Wed, 21 Mar 2018 13:00:18 +0000 (14:00 +0100)]
Use cond to wait for new command and not waste 100% CPU
Change-Id: I0e263861c83a6feeef203c14576dc4793aede87b
Inho Kim [Fri, 3 Nov 2017 02:43:37 +0000 (11:43 +0900)]
ADD RPMB define
Change-Id: I86227f03fe16e6ec603f8e4731829264cc782879
Inho Kim [Mon, 23 Oct 2017 02:56:23 +0000 (11:56 +0900)]
Remove TEEName check for compatibility with target
Change-Id: Ia624b138683ec4c3f8f8116ca6ac765abf015bb0
Krzysztof Jackiewicz [Wed, 7 Mar 2018 14:45:50 +0000 (15:45 +0100)]
Fix socket activation
Both the service and the socket were bound to each other (BindsTo) making it
impossible to stop only one of them.
This change removes the BindsTo entries to allow socket to run when the service
is down.
Change-Id: I9c22acca4c8730729f332e4f3b1f8fb6d7a0cfc7
Krzysztof Jackiewicz [Fri, 16 Feb 2018 11:09:52 +0000 (12:09 +0100)]
Fix bits/bytes error in TEE_InitRefAttribute
According to TEE spec TEE_InitRefAttribute() should treat the length argument
as a length in bytes not bits.
This commit adjusts all TEE_InitRefAttribute() invocations and
TEE_Attribute::content.ref.length referencese to use length in bytes.
Change-Id: I84f7cce90987c69453b2dda5071dfd9c1ee3f3b4
Radoslaw Bartosiak [Fri, 9 Feb 2018 13:23:37 +0000 (14:23 +0100)]
fix: Remove memory leak in TEE_Realloc
When a not NULL buffer's size was changed to 0
Change-Id: Icee13f84e82bc91c6ed9a321e94631747fcc703e
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Inho Kim [Thu, 26 Oct 2017 06:40:34 +0000 (15:40 +0900)]
Fix Manifest parse error
Change-Id: Ieea75c888b06806b7999381d79086aacad896c76
Krzysztof Dynowski [Mon, 26 Feb 2018 11:05:04 +0000 (12:05 +0100)]
Fix TEE_GetPropertyName
Change-Id: I9e6695059b312124cb25cf96e6e7ee731dbf3759
Krzysztof Dynowski [Thu, 15 Feb 2018 12:13:27 +0000 (13:13 +0100)]
Downloadable TA support
Change-Id: Ic80740993dd815b6acffd42241046f934249ae03
Krzysztof Dynowski [Thu, 22 Feb 2018 14:47:20 +0000 (15:47 +0100)]
Fix return origin in open command
Change-Id: Iddc7ede6fe28fee099a0e33bb2e786461266fffc
inho1220.kim [Wed, 26 Jul 2017 07:34:00 +0000 (16:34 +0900)]
Fix bug in checkTADomain function
- TC TEE_core/4 is failed. (OpenSession with Invalid UUID)
need to check NULL.
Change-Id: I61f2996ec3443703afdafdeeb712ea8dc20fa35f
leejungkyuen [Thu, 26 Oct 2017 03:49:13 +0000 (12:49 +0900)]
fix simuldaemon crash
Change-Id: Ia1dcdfcefc0285b3104119c94429dcac95095ccb
Krzysztof Dynowski [Thu, 22 Feb 2018 11:22:18 +0000 (12:22 +0100)]
Fix reset property
Change-Id: I027f13e452663fe6fd1547bb64fd88026c6f42c7
Krzysztof Dynowski [Wed, 14 Feb 2018 13:07:58 +0000 (14:07 +0100)]
Embedded path configuration
Change-Id: I7ae530892a878a5009cab75e0610056c42f4ce59
Krzysztof Dynowski [Tue, 13 Feb 2018 09:17:13 +0000 (10:17 +0100)]
Fix return origin in invoke command
Change-Id: If392e598ff6f3accec83c639a868eb3ba895c09c