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-1960: Take snapshot's table name into consideration for deletion
Date Tue, 23 Jan 2018 01:13:40 GMT
Repository: ranger
Updated Branches:
  refs/heads/master 533f8dae6 -> c57afe812


RANGER-1960: Take snapshot's table name into consideration for deletion

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/c57afe81
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/c57afe81
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/c57afe81

Branch: refs/heads/master
Commit: c57afe81289a458a8ba122c0e2f88b8ef88f0f43
Parents: 533f8da
Author: tsokorai <tsokorai@gmail.com>
Authored: Mon Jan 22 09:04:57 2018 -0300
Committer: rmani <rmani@hortonworks.com>
Committed: Mon Jan 22 17:13:25 2018 -0800

----------------------------------------------------------------------
 .../ranger/authorization/hbase/RangerAuthorizationCoprocessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/c57afe81/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
----------------------------------------------------------------------
diff --git a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
index 3b38d02..e30f795 100644
--- a/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
+++ b/hbase-agent/src/main/java/org/apache/ranger/authorization/hbase/RangerAuthorizationCoprocessor.java
@@ -806,7 +806,7 @@ public class RangerAuthorizationCoprocessor extends RangerAuthorizationCoprocess
 	}
 	@Override
 	public void preDeleteSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx, SnapshotDescription
snapshot) throws IOException {
-		requirePermission("deleteSnapshot", Permission.Action.ADMIN);
+		requirePermission("deleteSnapshot", snapshot.getTableBytes().toByteArray(), Permission.Action.ADMIN);
 	}
 	@Override
 	public void preDeleteTable(ObserverContext<MasterCoprocessorEnvironment> c, TableName
tableName) throws IOException {


Mime
View raw message