vectorRemoveDuplicates(privileges);
for (auto &privilege : privileges) {
- if (m_cynara.check(appProcessLabel, privilege, uidStr, "")) {
+ int result = CYNARA_ADMIN_DENY;
+ std::string resultExtra;
+ m_cynaraAdmin.check(appProcessLabel, uidStr, privilege, CynaraAdmin::Buckets[Bucket::PRIVACY_MANAGER], result, resultExtra, true);
+ if (result == CYNARA_ADMIN_ALLOW) {
+ LogDebug("Application " << appProcessLabel << " has " << privilege << " allowed");
allowedPrivileges.push_back(privilege);
}
}