Edit capability and smack label of smoke test 67/283267/1
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 12 Oct 2022 04:48:27 +0000 (13:48 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 17 Oct 2022 07:41:41 +0000 (16:41 +0900)
The capability of backend is assigned to the execute test file
From 7.0 installer is executed with System::Privileged label

Change-Id: Ib7d92f3b13bec9e59ec86726aae66d96cd5c8390
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
packaging/tpk-backend.spec
packaging/tpk-installer-tests.manifest

index 28f1d88a18e9585dd2f1f6919faf8a6350bd3f78..7f8bd4ef0e46a36cdcc99eca7cee69e7e586d70e 100644 (file)
@@ -82,6 +82,7 @@ ln -s %{_bindir}/tpk-backend %{buildroot}%{_sysconfdir}/package-manager/backend/
 /usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/smoke-test
 /usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/smoke-test-helper
 /usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/recovery-test
+/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/tpk-installer-ut/extensive-smoke-test
 
 %files
 %{_sysconfdir}/package-manager/backend/tpk
index aa268fb35a31ae95a2b790f2dc5aec6f96f8fa8e..196079e514763b4f02591fd7ca3a967a5fdca61f 100644 (file)
@@ -3,9 +3,9 @@
                 <domain name="_" />
         </request>
         <assign>
-                <filesystem path="/usr/bin/tpk-installer-ut/smoke-test" exec_label="System" />
-                <filesystem path="/usr/bin/tpk-installer-ut/extensive-smoke-test" exec_label="System" />
-                <filesystem path="/usr/bin/tpk-installer-ut/smoke-test-helper" exec_label="System" />
-                <filesystem path="/usr/bin/tpk-installer-ut/recovery-test" exec_label="System" />
+                <filesystem path="/usr/bin/tpk-installer-ut/smoke-test" exec_label="System::Privileged" />
+                <filesystem path="/usr/bin/tpk-installer-ut/extensive-smoke-test" exec_label="System::Privileged" />
+                <filesystem path="/usr/bin/tpk-installer-ut/smoke-test-helper" exec_label="System::Privileged" />
+                <filesystem path="/usr/bin/tpk-installer-ut/recovery-test" exec_label="System::Privileged" />
         </assign>
 </manifest>