From: jiehwan Date: Thu, 17 Sep 2020 09:02:25 +0000 (+0900) Subject: fix file access error by permission. X-Git-Tag: submit/tizen/20200918.052452^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;p=platform%2Fcore%2Fsystem%2Fsetup-adaptor.git fix file access error by permission. setup-adaptor service daemon was changed root to system_fw user. but /opt/etc/setup-adaptor is created as root in ism. so can't be deleted by setup-adaptor. the problem is that setup adaptor is activated every booting time. to resolve this, add script to make setup-adaptor directory in spec file. Change-Id: I636860441775ac6ef2fbfecf5264535ceae35a79 Signed-off-by: jiehwan.park --- diff --git a/packaging/setup-adaptor.spec b/packaging/setup-adaptor.spec index 86d1ad1..2dd379c 100755 --- a/packaging/setup-adaptor.spec +++ b/packaging/setup-adaptor.spec @@ -1,6 +1,6 @@ Name: setup-adaptor Summary: Provide network and system data setting daemon -Version: 0.3.0 +Version: 0.3.1 Release: 0 Group: System & System Tools ExclusiveArch: %{arm} aarch64 @@ -43,6 +43,7 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants install -m 0644 %SOURCE2 %{buildroot}%{_unitdir}/%{name}.service %install_service multi-user.target.wants %{name}.service +mkdir -p %{buildroot}/opt/etc/setup-adaptor %post @@ -51,6 +52,7 @@ install -m 0644 %SOURCE2 %{buildroot}%{_unitdir}/%{name}.service %postun %files +%attr(0755,system_fw,system_fw) %dir /opt/etc/setup-adaptor %manifest %{name}.manifest %defattr(-,root,root,-) %license LICENSE.Apache-2.0