- missing cynara check
Change-Id: I3bb6de4babadfd17f45b0b99f2b957942c05cb95
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
{
retvm_if(cynara_env == NULL, false, "Cynara not initialized");
+ int ret;
int pid = -1;
char *client = NULL;
char *session = NULL;
return false;
}
- return true;
+ ret = cynara_check(cynara_env, client, session, user, perm.c_str());
+
+ free(client);
+ free(session);
+ free(user);
+
+ return (ret == CYNARA_API_ACCESS_ALLOWED);
}
bool permission_checker::has_permission(int sock_fd, std::string &perm)