You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2014/09/27 01:21:55 UTC
[2/2] git commit: ARGUS-86: update per review comments
ARGUS-86: update per review comments
Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/8bc6a08a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/8bc6a08a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/8bc6a08a
Branch: refs/heads/master
Commit: 8bc6a08abc57aa4cc84d7feb435350a84a0c4c96
Parents: f154dfe
Author: mneethiraj <mn...@hortonworks.com>
Authored: Fri Sep 26 16:21:46 2014 -0700
Committer: mneethiraj <mn...@hortonworks.com>
Committed: Fri Sep 26 16:21:46 2014 -0700
----------------------------------------------------------------------
.../hive/authorizer/XaSecureHiveAuthorizer.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/8bc6a08a/hive-agent/src/main/java/com/xasecure/authorization/hive/authorizer/XaSecureHiveAuthorizer.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/main/java/com/xasecure/authorization/hive/authorizer/XaSecureHiveAuthorizer.java b/hive-agent/src/main/java/com/xasecure/authorization/hive/authorizer/XaSecureHiveAuthorizer.java
index 13eec11..2c2dd80 100644
--- a/hive-agent/src/main/java/com/xasecure/authorization/hive/authorizer/XaSecureHiveAuthorizer.java
+++ b/hive-agent/src/main/java/com/xasecure/authorization/hive/authorizer/XaSecureHiveAuthorizer.java
@@ -430,6 +430,8 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
case ALTERDATABASE:
case ALTERDATABASE_OWNER:
+ case ALTERINDEX_PROPS:
+ case ALTERINDEX_REBUILD:
case ALTERPARTITION_BUCKETNUM:
case ALTERPARTITION_FILEFORMAT:
case ALTERPARTITION_LOCATION:
@@ -438,10 +440,12 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
case ALTERPARTITION_SERDEPROPERTIES:
case ALTERPARTITION_SERIALIZER:
case ALTERTABLE_ADDCOLS:
+ case ALTERTABLE_ADDPARTS:
case ALTERTABLE_ARCHIVE:
case ALTERTABLE_BUCKETNUM:
case ALTERTABLE_CLUSTER_SORT:
case ALTERTABLE_COMPACT:
+ case ALTERTABLE_DROPPARTS:
case ALTERTABLE_FILEFORMAT:
case ALTERTABLE_LOCATION:
case ALTERTABLE_MERGEFILES:
@@ -468,6 +472,7 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
break;
case DROPFUNCTION:
+ case DROPINDEX:
case DROPTABLE:
case DROPVIEW:
case DROPDATABASE:
@@ -475,9 +480,6 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
break;
case CREATEINDEX:
- case ALTERINDEX_PROPS:
- case ALTERINDEX_REBUILD:
- case DROPINDEX:
accessType = HiveAccessType.INDEX;
break;
@@ -511,8 +513,6 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
accessType = HiveAccessType.USE;
break;
- case ALTERTABLE_ADDPARTS:
- case ALTERTABLE_DROPPARTS:
case TRUNCATETABLE:
accessType = HiveAccessType.UPDATE;
break;
@@ -526,10 +526,10 @@ public class XaSecureHiveAuthorizer extends XaSecureHiveAuthorizerBase {
case DELETE:
case COMPILE:
case CREATEMACRO:
- case DROPMACRO:
case CREATEROLE:
case DESCFUNCTION:
case DFS:
+ case DROPMACRO:
case DROPROLE:
case EXPLAIN:
case GRANT_ROLE: