From fe75aa91e271408675fd71c1cd6774bfd9086c33 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 30 Sep 2014 14:12:40 +0200 Subject: [PATCH] Fix owner of /usr/share/packages directory. To allow installation for all users, we need to assign tizenglobalapp user as owner of /usr/share/packages Change-Id: I17c0897f7a321ccd633c36f39ef78ca993f16665 Signed-off-by: Baptiste DURAND --- packaging/pkgmgr.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/pkgmgr.spec b/packaging/pkgmgr.spec index 4ba1454..02dff51 100644 --- a/packaging/pkgmgr.spec +++ b/packaging/pkgmgr.spec @@ -124,6 +124,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/package-manager/server # For pkgmgr-install: # Update mime database to support package mime types update-mime-database %{_datadir}/mime +chsmack -a '*' %{TZ_SYS_RW_PACKAGES} %post -n pkgmgr-server -p /sbin/ldconfig @@ -149,8 +150,8 @@ update-mime-database %{_datadir}/mime %{_bindir}/pkg_getsize %{_bindir}/pkginfo %{_bindir}/pkgmgr-install -%dir %{_datadir}/packages -%{_datadir}/packages/org.tizen.pkgmgr-install.xml +%attr(-,tizenglobalapp,root) %dir %{TZ_SYS_RW_PACKAGES} +%attr(-,tizenglobalapp,root) %{TZ_SYS_RW_PACKAGES}/org.tizen.pkgmgr-install.xml %{_datadir}/mime/packages/mime.wac.xml %{_datadir}/mime/packages/mime.tpk.xml %exclude %{_includedir}/pkgmgr/comm_client.h -- 2.7.4