Added security-manager API
[platform/core/security/security-server.git] / src / server / common / protocols.h
index 103bf14..9f6f9cc 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *  Contact: Bumjin Im <bj.im@samsung.com>
+ *  Contact: Bartlomiej Grzelewski <b.grzelewski@samsung.com>
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
 
 #include <cstddef>
 #include <time.h>
+#include <vector>
+#include <utility>
+#include <string>
+
+struct app_inst_req {
+    std::string appId;
+    std::string pkgId;
+    std::vector<uid_t> allowedUsers;
+    std::vector<std::string> privileges;
+    std::vector<std::pair<std::string, int>> appPaths;
+};
 
 namespace SecurityServer {
 
@@ -39,6 +50,7 @@ extern char const * const SERVICE_SOCKET_COOKIE_CHECK;
 extern char const * const SERVICE_SOCKET_PASSWD_CHECK;
 extern char const * const SERVICE_SOCKET_PASSWD_SET;
 extern char const * const SERVICE_SOCKET_PASSWD_RESET;
+extern char const * const SERVICE_SOCKET_INSTALLER;
 
 enum class AppPermissionsAction { ENABLE, DISABLE };
 
@@ -66,6 +78,12 @@ enum class PasswordHdrs
     HDR_SET_PWD_HISTORY
 };
 
+enum class SecurityModuleCall
+{
+    APP_INSTALL,
+    APP_UNINSTALL
+};
+
 extern const size_t MAX_PASSWORD_LEN;
 extern const unsigned int MAX_PASSWORD_HISTORY;
 extern const unsigned int PASSWORD_INFINITE_EXPIRATION_DAYS;