From: Karol Lewandowski Date: Thu, 4 Feb 2021 11:05:22 +0000 (+0100) Subject: packaging: Drop redundant directories X-Git-Tag: submit/tizen/20210205.125131~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96a11f21e013e1de3d02ee438c4291d55de56e9e;p=platform%2Fcore%2Fsystem%2Fcrash-worker.git packaging: Drop redundant directories These directories are created on-demand by crash-manager/service. There is no need to main correct permission/label set in multiple places. Change-Id: Ie81cd358d9e17d4249bbdc0a2ed791b5097fa583 --- diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index a7fea2f6..1741a5bc 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -161,20 +161,26 @@ make doc rm -rf %{buildroot} %make_install mkdir -p %{buildroot}%{crash_root_path} -mkdir -p %{buildroot}%{crash_path} -mkdir -p %{buildroot}%{crash_temp} %post -/usr/bin/chsmack -a "System" -t %{crash_path} -/usr/bin/chsmack -a "System" -t %{crash_temp} +chsmack -a "System" -t %{crash_root_path} +if [ $1 -eq 2 ] ; then + # All directories are created with appropriate permissions by + # crash-manager/service (0775) and with correct label (System) + # due to smack execute being set to System on /usr/bin/crash-manager + # binary. + # + # Following is only for package-based upgrade in Tizen 6.5 + # Drop this in Tizen 7.0 + chsmack -a "System" -t %{crash_path} + chsmack -a "System" -t %{crash_temp} +fi %files %license LICENSE LICENSE.BSD LICENSE.MIT %manifest crash-worker.manifest %defattr(-,crash_worker,crash_worker,-) %dir %{crash_root_path} -%dir %{crash_path} -%dir %{crash_temp} %{_sysconfdir}/crash-manager.conf %{_sysconfdir}/crash-manager.conf.d/crash-manager.conf.example %attr(-,root,root) %{_prefix}/lib/sysctl.d/70-crash-manager.conf