ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject [2/2] incubator-ranger git commit: Revert "BUG-31949: In hive plugin TABLE policy restriction for all tables {{*}} fails when UDF policy for all functions {{*}} is maintained for a database"
Date Sat, 21 Feb 2015 01:49:50 GMT
Revert "BUG-31949: In hive plugin TABLE policy restriction for all tables {{*}} fails when
UDF policy for all functions {{*}} is maintained for a database"

This reverts commit 9c0c5d953d4821c5311c2d6389c8c3f3f98e8927.


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

Branch: refs/heads/ranger-0.4
Commit: c5c4d335ee68e5b563eb385e3f9664640073c810
Parents: 88dead2
Author: rmani <rmani@hortonworks.com>
Authored: Fri Feb 20 17:48:12 2015 -0800
Committer: rmani <rmani@hortonworks.com>
Committed: Fri Feb 20 17:48:12 2015 -0800

----------------------------------------------------------------------
 .../src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java      | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/c5c4d335/agents-impl/src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java
----------------------------------------------------------------------
diff --git a/agents-impl/src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java b/agents-impl/src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java
index 5550183..e64c3e9 100644
--- a/agents-impl/src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java
+++ b/agents-impl/src/main/java/com/xasecure/pdp/hive/HiveAuthDB.java
@@ -218,10 +218,6 @@ public class HiveAuthDB {
 		boolean ret = false;
 
 		for (HiveAuthRule rule : allRuleList) {
-			if(rule.isUdf()) {
-				continue;
-			}
-
 			ret = rule.isMatched(database, ugi.getShortUserName(), ugi.getGroupNames(), accessType);
 
 			if(ret) {
@@ -240,10 +236,6 @@ public class HiveAuthDB {
 		boolean ret = false;
 
 		for (HiveAuthRule rule : tblRuleList) {
-			if(rule.isUdf()) {
-				continue;
-			}
-
 			ret = rule.isMatched(database, tableOrView, ugi.getShortUserName(), ugi.getGroupNames(),
accessType);
 
 			if(ret) {


Mime
View raw message