From ca549614e741b7a3f3d1c95b7b075269f61bb325 Mon Sep 17 00:00:00 2001 From: ilho kim Date: Thu, 5 Jan 2023 16:22:59 +0900 Subject: [PATCH] Give an exec label,capability to the smoke test tool The installer is executed with System::Privileged label and mac_override Give an exec label and capability so that the smoke test tool is executed with the same label Change-Id: I6e756f231c7b93c21b884ca944ead46d324cf83f Signed-off-by: ilho kim --- packaging/wgt-backend.spec | 5 +++-- packaging/wgt-installer-tests.manifest | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index 7ab44d9..958c74b 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -73,8 +73,9 @@ mkdir -p %{buildroot}/etc/package-manager/backend ln -s %{_bindir}/wgt-backend %{buildroot}%{_sysconfdir}/package-manager/backend/wgt %post -n wgt-installer-tests -/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-installer-ut/smoke-test -/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner=eip %{_bindir}/wgt-installer-ut/smoke-test-helper +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/smoke-test-helper +/usr/sbin/setcap cap_chown,cap_dac_override,cap_fowner,cap_mac_override=eip %{_bindir}/wgt-installer-ut/extensive-smoke-test %files %manifest wgt-backend.manifest diff --git a/packaging/wgt-installer-tests.manifest b/packaging/wgt-installer-tests.manifest index f5159f3..e0632fd 100644 --- a/packaging/wgt-installer-tests.manifest +++ b/packaging/wgt-installer-tests.manifest @@ -3,8 +3,8 @@ - - - + + + -- 2.7.4