hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunling Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1237) Insert statement need "select" privilege in ranger check
Date Tue, 27 Dec 2016 02:03:58 GMT
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)

Mime
View raw message