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)

Reply via email to