New structure of application file paths
[platform/core/security/security-manager.git] / src / common / include / smack-labels.h
index 3089462..ce48a28 100644 (file)
@@ -36,14 +36,14 @@ namespace SecurityManager {
 /**
  * Sets Smack labels on a directory and its contents, recursively.
  *
- * @param pkgId[in] application's package identifier
+ * @param appId[in] application's identifier
  * @param path[in] path to a file or directory to setup
  * @param pathType[in] type of path to setup. See description of
  *         app_install_path_type in security-manager.h for details
  *
  * @return true on success, false on error.
  */
-bool setupPath(const std::string &pkgId, const std::string &path,
+bool setupPath(const std::string &appId, const std::string &path,
     app_install_path_type pathType);
 
 /**
@@ -55,6 +55,17 @@ bool setupPath(const std::string &pkgId, const std::string &path,
 std::string generateAppNameFromLabel(const std::string &label);
 
 /**
+ * Sets Smack labels on a <ROOT_APP>/<pkg_id> and <ROOT_APP>/<pkg_id>/<app_id>
+ * non-recursively
+ *
+ * @param pkgID[in] package identifier
+ * @param appID[in] application's identifier
+ * @param path[in] <ROOT_APP> path
+ */
+bool setupCorrectPath(const std::string &pkgID, const std::string &appID,
+        const std::string &path);
+
+/**
  * Generates label for an application with a specific application ID
  * read from @ref appId and assigns it to @ref label.
  *