Application requires checking its privacy privilege
status to decide wether invoking askuser popup is
required. This change allows apps to fetch its own
policy (for the same app_id and user) without any
additional privilege.
Change-Id: Ie351f002107e58ad90b71f44ec25026469e38cb5
listOfPolicies);
LogDebug("ADMIN - number of policies matched: " << listOfPolicies.size());
} else {
- if (!authenticate(creds, Config::PRIVILEGE_POLICY_USER)) {
+ if (appProcessLabel != creds.label && !authenticate(creds, Config::PRIVILEGE_POLICY_USER)) {
LogError("Not enough privilege to access user enforced policies");
return SECURITY_MANAGER_ERROR_ACCESS_DENIED;
}
* 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
*
* \param[in] p_filter Pointer to filter struct