Fix owner of /usr/share/packages directory. 20/28220/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20141002.100327 accepted/tizen/ivi/20141007.214540 submit/tizen_common/20141001.093953 submit/tizen_ivi/20141007.111111 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
authorBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Tue, 30 Sep 2014 12:30:15 +0000 (14:30 +0200)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Tue, 30 Sep 2014 12:30:15 +0000 (14:30 +0200)
To allow installation for all users, we need to assign tizenglobalapp user as owner of
/usr/share/packages

Change-Id: I3b05bc77e65185783a769f13e04c8870b7e00b87
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
packaging/pkgmgr-info.spec

index 1118e48..b9e6c07 100755 (executable)
@@ -56,7 +56,9 @@ make %{?jobs:-j%jobs}
 # create the directory for hosting Read-Write application manifest files
 mkdir -p %{buildroot}%{TZ_SYS_RW_PACKAGES}
 
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+chsmack -a '*' %{TZ_SYS_RW_PACKAGES}
 
 %postun -p /sbin/ldconfig
 
@@ -68,7 +70,7 @@ mkdir -p %{buildroot}%{TZ_SYS_RW_PACKAGES}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libpkgmgr-info.so.*
-%dir %{TZ_SYS_RW_PACKAGES}
+%attr(-,tizenglobalapp,root) %dir %{TZ_SYS_RW_PACKAGES}
 
 %files devel
 %manifest %{name}.manifest