changed the smack rule of .privacy-guard.db-journal to System AND added PKGMGR Plugin... 77/71377/2 accepted/tizen/common/20160525.160213 accepted/tizen/mobile/20160526.094948 submit/tizen/20160525.073003
authorKyoungyong Lee <bluevox@naver.com>
Wed, 25 May 2016 07:23:12 +0000 (16:23 +0900)
committerKyoungyong Lee <bluevox@naver.com>
Wed, 25 May 2016 07:27:00 +0000 (16:27 +0900)
Change-Id: Id60304c07e0f41fc0186f3770246ec05061ec18c

packaging/privacy-guard.spec
pkgmgr_plugin/privileges.cpp

index 879923b..6745c47 100755 (executable)
@@ -97,6 +97,7 @@ then
        %{_bindir}/privacy_guard_create_clean_db.sh
 fi
 chsmack -a System %{TZ_SYS_DB}/.privacy_guard.db
+chsmack -a System %{TZ_SYS_DB}/.privacy_guard.db-journal
 
 %postun -p /sbin/ldconfig
 
index 3810651..22faba3 100755 (executable)
@@ -45,6 +45,20 @@ void destroy_char_list(char** ppList, int size)
 
 extern "C"
 __attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_PRE_INSTALL(const char *packageId)
+{
+       if (packageId == NULL) {
+               LOGE("Package ID is NULL");
+               return -EINVAL;
+       }
+
+       LOGD("PKGMGR_PARSER_PLUGIN_PRE_INSTALL() called with [%s].", packageId);
+
+       return 0;
+}
+
+extern "C"
+__attribute__ ((visibility("default")))
 int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
 {
        if (packageId == NULL) {
@@ -121,6 +135,35 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
 
 extern "C"
 __attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_POST_INSTALL(const char *packageId)
+{
+       if (packageId == NULL) {
+               LOGE("Package ID is NULL");
+               return -EINVAL;
+       }
+
+       LOGD("PKGMGR_PARSER_PLUGIN_POST_INSTALL() called with [%s].", packageId);
+
+       return 0;
+
+}
+
+extern "C"
+__attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL(const char *packageId)
+{
+       if (packageId == NULL) {
+               LOGE("Package ID is NULL");
+               return -EINVAL;
+       }
+
+       LOGD("PKGMGR_PARSER_PLUGIN_PRE_UNINSTALL() called with [%s].", packageId);
+
+       return 0;
+}
+
+extern "C"
+__attribute__ ((visibility("default")))
 int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
 {
        if (packageId == NULL) {
@@ -151,6 +194,20 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
 
 extern "C"
 __attribute__ ((visibility("default")))
+int PKGMGR_PARSER_PLUGIN_POST_UNINSTALL(const char *packageId)
+{
+       if (packageId == NULL) {
+               LOGE("Package ID is NULL");
+               return -EINVAL;
+       }
+
+       LOGD("PKGMGR_PARSER_PLUGIN_POST_UNINSTALL() called with [%s].", packageId);
+
+       return 0;
+}
+
+extern "C"
+__attribute__ ((visibility("default")))
 int PKGMGR_PARSER_PLUGIN_UPGRADE(xmlDocPtr docPtr, const char* packageId)
 {
        if (packageId == NULL) {