/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
case SecurityModuleCall::GET_PRIVILEGES_MAPPING:
processPrivilegesMappings(buffer, send);
break;
+ case SecurityModuleCall::GROUPS_GET:
+ processGroupsGet(send);
+ break;
default:
LogError("Invalid call: " << call_type_int);
Throw(ServiceException::InvalidAction);
Serialization::Serialize(send, mappings);
}
+void Service::processGroupsGet(MessageBuffer &send)
+{
+ std::vector<std::string> groups;
+ int ret = ServiceImpl::policyGetGroups(groups);
+
+ Serialization::Serialize(send, ret);
+ if (ret == SECURITY_MANAGER_API_SUCCESS) {
+ Serialization::Serialize(send, groups);
+ }
+}
+
} // namespace SecurityManager