Give helloworld TA a System::TEF label 17/180517/2
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Wed, 30 May 2018 07:47:53 +0000 (09:47 +0200)
committerIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Mon, 4 Jun 2018 10:21:22 +0000 (12:21 +0200)
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>
packaging/tef-simulator-helloworld.manifest [new file with mode: 0644]
packaging/tef-simulator-helloworld.spec

diff --git a/packaging/tef-simulator-helloworld.manifest b/packaging/tef-simulator-helloworld.manifest
new file mode 100644 (file)
index 0000000..7055a26
--- /dev/null
@@ -0,0 +1,8 @@
+<manifest>
+       <assign>
+               <filesystem path="/usr/lib/tastore/00000000000000000000112233445566" label="System::TEF"/>
+       </assign>
+       <request>
+               <domain name="_" />
+       </request>
+</manifest>
index eaf83c578262b40553ae299378e547db4c5459fb..7a84c541b300736cd581b8305d02dadb8f9e27d5 100644 (file)
@@ -5,6 +5,7 @@ Release:    1
 Group:      Security
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
+Source1:    %{name}.manifest
 ExcludeArch: armv6l armv7hl armv7l aarch64
 BuildRequires: cmake
 BuildRequires: boost-devel
@@ -27,6 +28,7 @@ testing purposes.
 
 %prep
 %setup -q
+cp %{SOURCE1} .
 
 %build
 cd helloworld
@@ -50,5 +52,6 @@ make install
 
 %files -n %{name}
 %license LICENSE
+%manifest tef-simulator-helloworld.manifest
 %attr(111,security_fw,security_fw) %{bin_dir}/tef-simulator-helloworld
 %attr(444,security_fw,security_fw) %{tastore_dir}/00000000000000000000112233445566