You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by "Chunling Wang (JIRA)" <ji...@apache.org> on 2016/12/27 02:03:58 UTC
[jira] [Created] (HAWQ-1237) Insert statement need "select"
privilege in ranger check
Chunling Wang created HAWQ-1237:
-----------------------------------
Summary: Insert statement need "select" privilege in ranger check
Key: HAWQ-1237
URL: https://issues.apache.org/jira/browse/HAWQ-1237
Project: Apache HAWQ
Issue Type: Bug
Components: Security
Reporter: Chunling Wang
Assignee: Ed Espino
The code in create_ranger_request_json_batch() in rangerrest.c is hard code and make all statements need "select" privilege in ranger check.
{code}
//ListCell *cell;
//foreach(cell, arg_ptr->actions)
//{
char tmp[7] = "select";
json_object* jaction = json_object_new_string((char *)tmp);
//json_object* jaction = json_object_new_string((char *)cell->data.ptr_value);
json_object_array_add(jactions, jaction);
//}
json_object_object_add(jelement, "privileges", jactions);
json_object_array_add(jaccess, jelement);
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)