change db file path for security 15/88715/3 accepted/tizen/common/20160921.161850 accepted/tizen/ivi/20160922.041804 accepted/tizen/mobile/20160922.041712 accepted/tizen/wearable/20160922.041643 submit/tizen/20160921.022751
authorJongkyu Koo <jk.koo@samsung.com>
Tue, 20 Sep 2016 09:49:23 +0000 (18:49 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 21 Sep 2016 02:40:27 +0000 (11:40 +0900)
Change-Id: I9ebcf71e5156a262308626ba75d008e10457b619
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
500.contacts-service.patch.sh
packaging/contacts-service.spec
server/db/ctsvc_db_schema.h

index 232d780..d73ce1b 100644 (file)
@@ -7,7 +7,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 
 # Macro
 DB_DIR_24=/opt/usr/dbspace
-DB_DIR_30=/opt/usr/home/owner/.applications/dbspace
+DB_DIR_30=/opt/usr/home/owner/.applications/dbspace/privacy
 
 DB_FILE_24=$DB_DIR_24/.contacts-svc.db
 DB_FILE_30=$DB_DIR_30/.contacts-svc.db
@@ -29,7 +29,7 @@ chown owner:users $DB_FILE_30
 chown owner:users $DATA_DIR_30
 chown -R owner:users $CTSVC_DATA_30
 
-chsmack -a User::Home $DB_FILE_30
+chsmack -a User $DB_FILE_30
 chsmack -a User::Home -t $DATA_DIR_30
 chsmack -a User::Home -t $CTSVC_DATA_30
 chsmack -a User::Home  $CTSVC_DATA_30/.*
index 3d806e6..95ce832 100644 (file)
@@ -1,6 +1,6 @@
 Name:       contacts-service
 Summary:    Contacts Service
-Version:    0.13.59
+Version:    0.13.60
 Release:    0
 Group:      Social & Content/Service
 License:    Apache-2.0
index a81175b..642e8ad 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <tzplatform_config.h>
 
-#define CTSVC_DB_PATH tzplatform_mkpath(TZ_USER_DB, "/.contacts-svc.db")
+#define CTSVC_DB_PATH tzplatform_mkpath(TZ_USER_DB, "privacy/.contacts-svc.db")
 
 /* For Security */
 #define CTS_SECURITY_FILE_GROUP 5000