return ret;
}
- SLOG(LOG_ERROR, TAG_VCM, "[DEBUG] success to initialize cynara");
return ret == CYNARA_API_SUCCESS;
}
pid_t pid = getpid();
char *session = cynara_session_from_pid(pid);
int ret = cynara_check(p_cynara, smack_label, session, uid, privilege);
- SLOG(LOG_INFO, TAG_VCM, "[Client]cynara_check returned %d(%s), p_cynara(%p), label(%s), session(%s), uid(%s), priv(%s)", ret, (CYNARA_API_ACCESS_ALLOWED == ret) ? "Allowed" : "Denied", p_cynara, smack_label, session, uid, privilege);
if (session)
free(session);
+ session = NULL;
if (ret != CYNARA_API_ACCESS_ALLOWED) {
+ SLOG(LOG_INFO, TAG_VCM, "[Client]cynara_check returned %d(Denied), p_cynara(%p), label(%s), session(%s), uid(%s), priv(%s)", ret, p_cynara, smack_label, session, uid, privilege);
return false;
}