Re-create crash_path for compatibilities. 54/253954/1
authorKunhoon Baik <knhoon.baik@samsung.com>
Sun, 21 Feb 2021 03:39:22 +0000 (12:39 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Sun, 21 Feb 2021 03:39:22 +0000 (12:39 +0900)
The crash_path should be installed at image creation time for several Tizen testing infras.
Until Tizen testing infras will be modified, the crash_path should be remained.

Change-Id: Iea7166e87a2dbd3b55bb95f8d8a492d17dec50a0

packaging/crash-worker.spec

index 79d27bd..8298166 100644 (file)
@@ -161,9 +161,12 @@ make doc
 rm -rf %{buildroot}
 %make_install
 mkdir -p %{buildroot}%{crash_root_path}
+mkdir -p %{buildroot}%{crash_path}
 
 %post
 chsmack -a "System" -t %{crash_root_path}
+chsmack -a "System" -t %{crash_path}
+
 if [ $1 -eq 2 ] ; then
        # All directories are created with appropriate permissions by
        # crash-manager/service (0775) and with correct label (System)
@@ -172,7 +175,6 @@ if [ $1 -eq 2 ] ; then
        #
        # 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
 
@@ -181,6 +183,7 @@ fi
 %manifest crash-worker.manifest
 %defattr(-,crash_worker,crash_worker,-)
 %dir %{crash_root_path}
+%attr(0775,crash_worker,crash_worker) %{crash_path}
 %{_sysconfdir}/crash-manager.conf
 %{_sysconfdir}/crash-manager.conf.d/crash-manager.conf.example
 %attr(-,root,root) %{_prefix}/lib/sysctl.d/70-crash-manager.conf