diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2021-02-04 12:05:22 +0100 |
---|---|---|
committer | Mateusz Moscicki <m.moscicki2@partner.samsung.com> | 2021-02-05 12:54:43 +0100 |
commit | 6a0fa6cb25506969c4e086112658c64ef6254929 (patch) | |
tree | eebad44296d25c88af13e099bcb70935597f99fe | |
parent | b4e5a8d5aec4af8238810ccbcd3004b16af7c03f (diff) | |
download | crash-worker-6a0fa6cb25506969c4e086112658c64ef6254929.tar.gz crash-worker-6a0fa6cb25506969c4e086112658c64ef6254929.tar.bz2 crash-worker-6a0fa6cb25506969c4e086112658c64ef6254929.zip |
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
-rw-r--r-- | packaging/crash-worker.spec | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index 0d187ca..c7aec82 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 |