Such errors might happen when launcher tries to launch an application that
wasn't properly setup by the installer before. This should be supported to
allow easier integration of security-manager into platform.
Ignoring these errors won't cause any privilege escalation. Actually it
might cause giving less privileges than necessary to the application.
Change-Id: Ib8ba02a28404a25c541ba6daede9f68c864583cc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
//receive response from server
Deserialization::Deserialize(recv, retval);
//receive response from server
Deserialization::Deserialize(recv, retval);
- if (retval != SECURITY_MANAGER_API_SUCCESS)
+ if (retval != SECURITY_MANAGER_API_SUCCESS) {
+ LogError("Failed to get list of groups from security-manager service. Error code: " << retval);
return SECURITY_MANAGER_ERROR_UNKNOWN;
return SECURITY_MANAGER_ERROR_UNKNOWN;
//How many new groups?
int newGroupsCnt;
//How many new groups?
int newGroupsCnt;
return ret;
ret = security_manager_set_process_groups_from_appid(app_id);
return ret;
ret = security_manager_set_process_groups_from_appid(app_id);
- if (ret != SECURITY_MANAGER_SUCCESS)
- return ret;
+ if (ret != SECURITY_MANAGER_SUCCESS) {
+ LogWarning("Unable to setup process groups for application. Privileges with direct access to resources will not work.");
+ ret = SECURITY_MANAGER_SUCCESS;
+ }
ret = security_manager_drop_process_privileges();
return ret;
ret = security_manager_drop_process_privileges();
return ret;