#include <dpl/exception.h>
#include <string>
#include <vector>
+#include <map>
namespace SecurityManager {
+enum class Bucket
+{
+ PRIVACY_MANAGER,
+ MAIN,
+ USER_TYPE_ADMIN,
+ USER_TYPE_NORMAL,
+ USER_TYPE_GUEST,
+ USER_TYPE_SYSTEM,
+ ADMIN,
+ MANIFESTS
+};
+
class CynaraException
{
public:
class CynaraAdmin
{
public:
+
+ typedef std::map<Bucket, const std::string > BucketsMap;
+ static BucketsMap Buckets;
+
virtual ~CynaraAdmin();
static CynaraAdmin &getInstance();
* TODO: drop oldPrivileges argument and get them directly from Cynara.
* Appropriate Cynara interface is needed first.
*/
- static void UpdateAppPolicy(const std::string &label, const std::string &user,
+ void UpdateAppPolicy(const std::string &label, const std::string &user,
const std::vector<std::string> &oldPrivileges,
const std::vector<std::string> &newPrivileges);