Add missing information about APP_PATH_ANY_LABEL in header
authorLukasz Kostyra <l.kostyra@partner.samsung.com>
Tue, 27 Aug 2013 13:56:48 +0000 (15:56 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 11 Sep 2013 12:43:30 +0000 (12:43 +0000)
[Issue#]        SSDWSSP-481
[Bug]           Information about perm_app_setup_path in privilege-control.h didn't cover
                APP_PATH_ANY_LABEL app_path_type.
[Cause]         N/A
[Solution]      N/A
[Verification]  N/A

Change-Id: I40d4292b880bc007dfa5ce3d78430b3e64940a9f

include/privilege-control.h

index d8576cc..5e8d064 100644 (file)
@@ -310,6 +310,10 @@ int add_shared_dir_readers(const char* shared_label, const char** app_list) DEPR
  *       everything and enable transmute on directories. Give full access to the label to
  *       pkg_id and RWX access to all appsetting apps.
  *
+ *     - APP_PATH_ANY_LABEL: label with given shared_label. Set access label on
+ *       everything and execute label on executable files and symlinks to
+ *       executable files.
+ *
  * This function should be called during app installation.
  * Results will be persistent on the file system.
  * It must be called by privileged user.
@@ -317,7 +321,8 @@ int add_shared_dir_readers(const char* shared_label, const char** app_list) DEPR
  * @param pkg_id
  * @param path
  * @param app_path_type
- * @param shared_label (optional argument for APP_PATH_GROUP_RW path type)
+ * @param shared_label (optional argument for APP_PATH_GROUP_RW and
+ *        APP_PATH_ANY_LABEL path type; type is const char*)
  * @return PC_OPERATION_SUCCESS on success, PC_ERR_* on error
  */
 int perm_app_setup_path(const char* pkg_id, const char* path, app_path_type_t app_path_type, ...);