change smack rule "_" to "System::Shared" 84/113484/1 accepted/tizen/common/20170210.170606 accepted/tizen/ivi/20170210.083259 accepted/tizen/mobile/20170210.083216 accepted/tizen/tv/20170210.083232 accepted/tizen/unified/20170309.032532 accepted/tizen/wearable/20170210.083243 submit/tizen/20170210.075118 submit/tizen_unified/20170308.100406
authorMyoungJune Park <mj2004.park@samsung.com>
Wed, 8 Feb 2017 01:48:54 +0000 (10:48 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Wed, 8 Feb 2017 01:51:42 +0000 (10:51 +0900)
Change-Id: Ib7f0fe4fc227423a9c07b0793c5665ba6e7f6098

packaging/tzdata-update-parser.spec
tzdata-parser/src/worker.sh

index 40b0601..58fff24 100644 (file)
@@ -46,6 +46,12 @@ mkdir -p %{buildroot}%{_tmpfilesdir}
 %post
 mkdir -p /opt/usr/share/zoneinfo
 chmod 777 /opt/usr/share/zoneinfo
+chsmack -a "System::Shared" -t /opt/usr/share/zoneinfo
+mkdir -p /opt/usr/share/icu_tzdata
+chmod 777 /opt/usr/share/icu_tzdata
+chsmack -a "System::Shared" -t /opt/usr/share/icu_tzdata
+
+chmod 777 /opt/usr/share/zoneinfo
 chmod +x /etc/package-manager/parserlib/worker.sh
 chown owner:users /etc/package-manager/parserlib/worker.sh
 
index a51cda5..31df21a 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/bash
 PATH="/usr/bin:/bin:/usr/sbin:/sbin"
 
-#mkdir -p /opt/usr/share/zoneinfo
 tar -xvzf /opt/usr/home/owner/apps_rw/org.example.tzresources/res/zoneinfo.tar.gz -C /opt/usr/share/zoneinfo
-chsmack -a "_" /opt/usr/share/zoneinfo/* -r
+tar -xvzf /opt/usr/home/owner/apps_rw/org.example.tzresources/res/icu_data_tzdata.tar.gz -C /opt/usr/share/icu_tzdata
 touch /opt/usr/share/zoneinfo/UPDATED.txt