Apply the smack rule
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 11 Jan 2013 11:00:49 +0000 (20:00 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 11 Jan 2013 11:00:49 +0000 (20:00 +0900)
Change-Id: I906509816883a55ae3ab8c7f75290b903eb5bd3d

org.tizen.data-provider-master.manifest
packaging/org.tizen.data-provider-master.spec

index 3dbbaa8..9e1c2e6 100644 (file)
@@ -6,6 +6,7 @@
                        <label name="org.tizen.data-provider-master::log" />
                        <label name="org.tizen.data-provider-master::db" />
                        <label name="org.tizen.data-provider-master::data" />
+                       <label name="org.tizen.data-provider-master::share" />
                </provide>
        </define>
        <request>
                <filesystem path="/usr/share/data-provider-master" label="org.tizen.data-provider-master::data" />
                <filesystem path="/usr/share/data-provider-master/abi.ini" label="org.tizen.data-provider-master::data" />
 
+               <!-- livebox-service is able to access the resolution.ini file -->
+               <filesystem path="/usr/share/data-provider-master/resolution.ini" label="_" />
+
+               <!-- slave provider and the master provider are able to access the conf.ini file -->
+               <filesystem path="/usr/share/data-provider-master/conf.ini" label="_" />
+
                <!-- Package manager & Init script -->
                <filesystem path="/etc/rc.d/init.d/data-provider-master" label="_" />
                <filesystem path="/usr/lib/systemd/user/data-provider.service" label="_" />
index 796bfd3..902638c 100644 (file)
@@ -1,6 +1,6 @@
 Name: org.tizen.data-provider-master
 Summary: Master data provider
-Version: 0.13.31
+Version: 0.14.0
 Release: 1
 Group: main/app
 License: Flora License
@@ -61,7 +61,7 @@ mkdir -p /opt/usr/share/live_magazine
 chown 5000:5000 /opt/usr/share/live_magazine
 if [ -f %{_libdir}/rpm-plugins/msm.so ]; then
        echo "Update smack for CONTENT SHARING FOLDER"
-       chsmack -a "_" /opt/usr/share/live_magazine
+       chsmack -a "org.tizen.data-provider-master::share" /opt/usr/share/live_magazine
        chsmack -t /opt/usr/share/live_magazine
 fi
 
@@ -78,7 +78,7 @@ chown 5000:5000 /opt/usr/share/live_magazine/always
 
 # End of a list of affected folder by the transmute attribute
 
-if [ ! -f "/opt/dbspace/livebox.db" ]; then
+if [ ! -f "/opt/dbspace/.livebox.db" ]; then
        echo "Create a new livebox DB"
        touch /opt/dbspace/.livebox.db
        chown 0:5000 /opt/dbspace/.livebox.db
@@ -89,7 +89,7 @@ if [ ! -f "/opt/dbspace/livebox.db" ]; then
        fi
 fi
 
-if [ ! -f "/opt/dbspace/livebox.db-journal" ]; then
+if [ ! -f "/opt/dbspace/.livebox.db-journal" ]; then
        echo "Create a new livebox DB - journal file"
        touch /opt/dbspace/.livebox.db-journal
        chown 0:5000 /opt/dbspace/.livebox.db-journal