aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2016-12-20 15:54:17 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2016-12-20 15:54:17 +0900
commit6e07a5c3d5234c971549623435b18201a00fc56f (patch)
tree182ce3de4e3e7efaf843e6471fc16aeca5b26414
parent6e4d966f2ba857e542913c9c4dbd048fd9223530 (diff)
Update tizen-platform-config
from: c2b552bd395f4d28f0e369cc1ead4ff18d89a126 to : 983a697aa098c23a48c34691fa8a7ca9f117817e Change-Id: Ia2e2cb18aef1040d2b8af957fd6c42691be212bd Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc85
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb2
2 files changed, 86 insertions, 1 deletions
diff --git a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc
index 596860b..513d1af 100644
--- a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc
+++ b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc
@@ -99,6 +99,91 @@ do_install() {
}
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ ##############################################
+ # BEGIN - setting of predefined directories (also /etc/skel)
+ ##############################################
+ saveHOME="$HOME"
+ HOME="%{_sysconfdir}/skel"
+ . "%{_sysconfdir}/tizen-platform.conf"
+ cat << ENDOFCAT |
+ MODE 777
+ SMACK System::Shared true
+ $TZ_SYS_STORAGE
+ $TZ_SYS_MEDIA
+
+ MODE 700
+ SMACK User::Home true
+ $TZ_USER_HOME
+ $TZ_USER_APPROOT
+ $TZ_USER_DB
+ $TZ_USER_PACKAGES
+ $TZ_USER_ICONS
+ $TZ_USER_APP
+
+ MODE 775
+ SMACK User::Home false
+ $TZ_SYS_DB
+ $TZ_SYS_RO_PACKAGES
+ $TZ_SYS_RO_APP
+ $TZ_SYS_RW_PACKAGES
+ $TZ_SYS_RW_APP
+
+ MODE 775
+ SMACK User::Home true
+ $TZ_SYS_RW_ICONS
+ $TZ_SYS_RW_ICONS/default
+ $TZ_SYS_RW_ICONS/default/small
+
+ SMACK User::App::Shared true
+ $TZ_USER_CONTENT
+ $TZ_USER_CAMERA
+ $TZ_USER_DOCUMENTS
+ $TZ_USER_DOWNLOADS
+ $TZ_USER_GAMES
+ $TZ_USER_IMAGES
+ $TZ_USER_OTHERS
+ $TZ_USER_SOUNDS
+ $TZ_USER_MUSIC
+ $TZ_USER_VIDEOS
+ $TZ_USER_SHARE
+ $TZ_USER_CACHE
+ $TZ_USER_CONFIG
+ $TZ_USER_HOME/.pki/nssdb
+ $TZ_USER_APP/xwalk-service
+
+ SMACK System::Shared true
+ $TZ_USER_DESKTOP
+
+ SMACK System::Shared false
+ $TZ_SYS_ETC
+
+ ENDOFCAT
+ while read s1 s2 s3; do
+ case "$s1" in
+ MODE) m="$s2";;
+ SMACK) c="$s2"; t="$s3";;
+ "") ;;
+ *) echo "$s1 ${m:-700} ${c:-_} ${t:-false}";;
+ esac
+ done |
+ LANG=C sort |
+ while read dirname mode context transmute; do
+ mkdir -p -m "$mode" "$dirname"
+ if [ "$transmute" = true ]; then
+ chsmack -a "$context" -t "$dirname"
+ else
+ chsmack -a "$context" "$dirname"
+ fi >&2
+ done
+ HOME="$saveHOME"
+ ##############################################
+ # END - setting of predefined directories (also /etc/skel)
+ ##############################################
+}
+
pkg_postinst_libtzplatform-config() {
#!/bin/sh -e
diff --git a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb
index 047fd60..7a002b0 100644
--- a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb
+++ b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb
@@ -4,7 +4,7 @@ PRIORITY = "10"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/platform/core/system/tizen-platform-config;tag=c2b552bd395f4d28f0e369cc1ead4ff18d89a126;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/system/tizen-platform-config;tag=983a697aa098c23a48c34691fa8a7ca9f117817e;nobranch=1"
BBCLASSEXTEND += " native "