Repository: ranger Updated Branches: refs/heads/ranger-1.0 e3cdec010 -> 3afc35f38
RANGER-2105:Ranger HiveAuthorization for INSERT OVERWRITE DIRECTORY Signed-off-by: rmani <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/3afc35f3 Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/3afc35f3 Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/3afc35f3 Branch: refs/heads/ranger-1.0 Commit: 3afc35f3886fc0674080016696ac7beeecfd2c18 Parents: e3cdec0 Author: rmani <[email protected]> Authored: Thu May 17 23:00:52 2018 -0700 Committer: rmani <[email protected]> Committed: Mon May 21 10:38:12 2018 -0700 ---------------------------------------------------------------------- .../ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ranger/blob/3afc35f3/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java ---------------------------------------------------------------------- diff --git a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java index 2c2a518..3ed79df 100644 --- a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java +++ b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java @@ -1142,6 +1142,7 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase { case ALTERPARTITION_LOCATION: case ALTERPARTITION_MERGEFILES: case ALTERTBLPART_SKEWED_LOCATION: + case QUERY: ret = FsAction.ALL; break; @@ -1193,7 +1194,6 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase { case SHOW_ROLE_GRANT: case SHOW_ROLE_PRINCIPALS: case TRUNCATETABLE: - case QUERY: case DESCDATABASE: case ALTERVIEW_RENAME: case ALTERVIEW_AS:
