Change pkgmgr db label to "User::Home" 31/48131/2 accepted/tizen/mobile/20150920.232327 accepted/tizen/tv/20150920.232335 accepted/tizen/wearable/20150920.232353 submit/tizen/20150918.062932
authorSangyoon Jang <s89.jang@samsung.com>
Tue, 15 Sep 2015 01:28:27 +0000 (10:28 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Tue, 15 Sep 2015 01:33:48 +0000 (10:33 +0900)
Change-Id: Id6fb407e4fe8065fb9fd550f270cc89391ed38ed
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
parser/pkgmgr_parser_db.c

index 0532a88..8846545 100644 (file)
 #define BUFSIZE 4096
 #define OWNER_ROOT 0
 
+#define DB_LABEL "User::Home"
 #define SET_SMACK_LABEL(x) \
 do { \
-       if (smack_setlabel((x), "System::Shared", SMACK_LABEL_ACCESS)) \
-               _LOGE("failed chsmack -a \"System::Shared\" %s", x); \
+       if (smack_setlabel((x), DB_LABEL, SMACK_LABEL_ACCESS)) \
+               _LOGE("failed chsmack -a %s %s", DB_LABEL, x); \
        else \
-               _LOGD("chsmack -a \"System::Shared\" %s", x); \
+               _LOGD("chsmack -a %s %s", DB_LABEL, x); \
 } while (0)
 
 sqlite3 *pkgmgr_parser_db;