ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject ranger git commit: RANGER-1619 : Ranger Hive Plugin fails to check the URI when the location doesn't exist-exclude EXEC permission for IMPORT/EXPORT/LOAD
Date Mon, 29 May 2017 19:04:24 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 5cee25430 -> f604e53d1


RANGER-1619 : Ranger Hive Plugin fails to check the URI when the location doesn't exist-exclude
EXEC permission for IMPORT/EXPORT/LOAD

Signed-off-by: rmani <rmani@hortonworks.com>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/f604e53d
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/f604e53d
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/f604e53d

Branch: refs/heads/ranger-0.7
Commit: f604e53d17607e9bccf3c5819a3291874672cc57
Parents: 5cee254
Author: rmani <rmani@hortonworks.com>
Authored: Mon May 29 11:46:22 2017 -0700
Committer: rmani <rmani@hortonworks.com>
Committed: Mon May 29 12:04:15 2017 -0700

----------------------------------------------------------------------
 .../authorization/hive/authorizer/RangerHiveAuthorizer.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/f604e53d/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 ce161c8..3cce72b 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
@@ -1057,11 +1057,11 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase
{
 		switch(hiveOpType) {
 			case LOAD:
 			case IMPORT:
-				ret = FsAction.READ_EXECUTE;
+				ret = FsAction.READ;
 			break;
 
 			case EXPORT:
-				ret = FsAction.WRITE_EXECUTE;
+				ret = FsAction.WRITE;
 			break;
 
 			case CREATEDATABASE:


Mime
View raw message