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-1355:Ranger HiveAuthorizer should check for ALTER permission for MSCK command while authorizing
Date Fri, 10 Feb 2017 22:41:09 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 46c446f23 -> ca2d2f9d7


RANGER-1355:Ranger HiveAuthorizer should check for ALTER permission for MSCK command while
authorizing


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

Branch: refs/heads/ranger-0.7
Commit: ca2d2f9d7c338637f81878b902cf8955cb692a9e
Parents: 46c446f
Author: rmani <rmani@hortonworks.com>
Authored: Thu Feb 9 22:29:35 2017 -0800
Committer: rmani <rmani@hortonworks.com>
Committed: Fri Feb 10 14:40:55 2017 -0800

----------------------------------------------------------------------
 .../ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/ca2d2f9d/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 c107b4b..d468aeb 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
@@ -902,6 +902,7 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase {
 				case ALTERVIEW_PROPERTIES:
 				case ALTERVIEW_RENAME:
 				case DROPVIEW_PROPERTIES:
+				case MSCK:
 					accessType = HiveAccessType.ALTER;
 				break;
 
@@ -1001,7 +1002,6 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase {
 				case DROPROLE:
 				case EXPLAIN:
 				case GRANT_ROLE:
-				case MSCK:
 				case REVOKE_ROLE:
 				case RESET:
 				case SET:


Mime
View raw message