Merge "Modification about smack label of db file belong to process." into tizen accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen_3.0 tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi tizen_3.0_tv tizen_4.0 accepted/tizen/3.0.m2/mobile/20170104.100154 accepted/tizen/3.0.m2/tv/20170104.100422 accepted/tizen/3.0.m2/wearable/20170104.101021 accepted/tizen/3.0/common/20161114.105208 accepted/tizen/3.0/ivi/20161011.044030 accepted/tizen/3.0/mobile/20161015.032649 accepted/tizen/3.0/tv/20161016.004004 accepted/tizen/3.0/wearable/20161015.081907 accepted/tizen/4.0/unified/20170816.013404 accepted/tizen/4.0/unified/20170816.015913 accepted/tizen/4.0/unified/20170828.223831 accepted/tizen/common/20140519.225327 accepted/tizen/ivi/20140521.165012 accepted/tizen/ivi/20160218.022831 accepted/tizen/mobile/20140602.131918 accepted/tizen/unified/20170309.031605 submit/tizen/20140516.091842 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000002 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522 submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001 submit/tizen_mobile/20141120.000000 submit/tizen_unified/20170308.100404 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release tizen_4.0.m1_release
authorGyuyoung Kim <gyuyoung.kim@webkit.org>
Fri, 16 May 2014 08:36:38 +0000 (01:36 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 16 May 2014 08:36:38 +0000 (01:36 -0700)
1  2 
packaging/capi-web-favorites.spec

@@@ -40,10 -39,80 +40,13 @@@ make %{?jobs:-j%jobs
  
  %post
  /sbin/ldconfig
 -mkdir -p /opt/usr/dbspace/
 -##### History ######
 -if [ ! -f /opt/usr/dbspace/.browser-history.db ];
 -then
 -      sqlite3 /opt/usr/dbspace/.browser-history.db 'PRAGMA journal_mode=PERSIST;
 -      CREATE TABLE history(
 -              id INTEGER PRIMARY KEY AUTOINCREMENT
 -              , address
 -              , title
 -              , counter INTEGER
 -              , visitdate DATETIME
 -              , favicon BLOB
 -              , favicon_length INTEGER
 -              , favicon_w INTEGER
 -              , favicon_h INTEGER
 -              , snapshot BLOB
 -              , snapshot_stride INTEGER
 -              , snapshot_w INTEGER
 -              , snapshot_h INTEGER);'
 -fi
  
 -### Bookmark ###
 -if [ ! -f /opt/usr/dbspace/.internet_bookmark.db ];
 -then
 -      sqlite3 /opt/usr/dbspace/.internet_bookmark.db 'PRAGMA journal_mode=PERSIST;
 -      CREATE TABLE bookmarks(
 -              id INTEGER PRIMARY KEY AUTOINCREMENT
 -              ,type INTEGER
 -              ,parent INTEGER
 -              ,address
 -              ,title
 -              ,creationdate
 -              ,sequence INTEGER
 -              ,updatedate
 -              ,visitdate
 -              ,editable INTEGER
 -              ,accesscount INTEGER
 -              ,favicon BLOB
 -              ,favicon_length INTEGER
 -              ,favicon_w INTEGER
 -              ,favicon_h INTEGER
 -              ,created_date
 -              ,account_name
 -              ,account_type
 -              ,thumbnail BLOB
 -              ,thumbnail_length INTEGER
 -              ,thumbnail_w INTEGER
 -              ,thumbnail_h INTEGER
 -              ,version INTEGER
 -              ,sync
 -              ,tag1
 -              ,tag2
 -              ,tag3
 -              ,tag4
 -      );
 -      create index idx_bookmarks_on_parent_type on bookmarks(parent, type);
 -
 -      CREATE TABLE tags(
 -              tag
 -      );'
 -fi
 -# Change db file owner & permission
 -chown :5000 /opt/usr/dbspace/.browser-history.db
 -chown :5000 /opt/usr/dbspace/.browser-history.db-journal
 -chown :5000 /opt/usr/dbspace/.internet_bookmark.db
 -chown :5000 /opt/usr/dbspace/.internet_bookmark.db-journal
 -chmod 666 /opt/usr/dbspace/.browser-history.db
 -chmod 666 /opt/usr/dbspace/.browser-history.db-journal
 -chmod 666 /opt/usr/dbspace/.internet_bookmark.db
 -chmod 666 /opt/usr/dbspace/.internet_bookmark.db-journal
 +source /etc/tizen-platform.conf
 +users_gid=$(getent group $TZ_SYS_USER_GROUP | cut -f3 -d':')
  
+ chsmack -a 'User' /opt/usr/dbspace/.browser-history.db*
+ chsmack -a 'User' /opt/usr/dbspace/.internet_bookmark.db*
  # set default vconf values
  ##################################################
  #internal keys