Fix documentation headers with required privilege descriptions 53/193153/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 15 Nov 2018 09:22:19 +0000 (10:22 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 21 Nov 2018 12:17:13 +0000 (12:17 +0000)
Change-Id: I51a92ec289cdd82cbb8ca5caeaad7ef8bd29f50f

src/include/policy-manager.h

index b5888bc999a66b8bd2cdcc4f137a5781e3413ce6..9abbaed73d1b12846e338b747867db894d66517c 100644 (file)
@@ -352,7 +352,9 @@ int security_manager_policy_update_send(policy_update_req *p_req);
  *            for freeing allocated resources.
  *
  * Required privileges:
- * - http://tizen.org/privilege/internal/usermanagement
+ * - application can fetch its policy without any privilege (providing that filters'
+ *   application name and user is the same as applications)
+ * - http://tizen.org/privilege/internal/usermanagement or http://tizen.org/privilege/permission.check
  *
  * \param[in]  p_filter        Pointer to filter struct
  * \param[out] ppp_privs_policy Pointer handling allocated policy_entry structures array
@@ -371,11 +373,11 @@ int security_manager_get_configured_policy_for_admin(
  *
  * \attention Developer is responsible for calling security_manager_policy_entries_free()
  *            for freeing allocated resources.
-
+ *
  * Required privileges:
  * - application can fetch its policy without any privilege (providing that filters'
    application name and user is the same as applications)
- * - http://tizen.org/privilege/notexist
*   application name and user is the same as applications)
+ * - http://tizen.org/privilege/notexist or http://tizen.org/privilege/permission.check
  *
  * \param[in]  p_filter        Pointer to filter struct
  * \param[out] ppp_privs_policy Pointer handling allocated policy_entry structures array
@@ -395,8 +397,10 @@ int security_manager_get_configured_policy_for_self(
  *            for freeing allocated resources.
  *
  * Required privileges:
- * - http://tizen.org/privilege/notexist (for fetching own policy)
- * - http://tizen.org/privilege/internal/usermanagement (for fetching policy for other or all)
+ * - http://tizen.org/privilege/notexist or
+ *       http://tizen.org/privilege/permission.check  (for fetching own policy)
+ * - http://tizen.org/privilege/internal/usermanagement or
+ *       http://tizen.org/privilege/permission.check (for fetching policy for other or all)
  *
  * \param[in]  p_filter        Pointer to filter struct
  * \param[out] ppp_privs_policy Pointer handling allocated policy_entry structures array
@@ -416,7 +420,10 @@ int security_manager_get_policy(
  *            to free allocated resources.
  *
  * Required privileges:
- * - http://tizen.org/privilege/internal/usermanagement
+ * for checking own manifest policy:
+ * - none
+ * for checking other app process manifest:
+ * - http://tizen.org/privilege/internal/usermanagement or http://tizen.org/privilege/permission.check
  *
  * \param[in]  app_name       Application identifier
  * \param[in]  uid            Identifier of user under which the application is/can be running