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 2015/05/02 07:07:34 UTC
incubator-ranger git commit: RANGER-448: HBase plugin update for the
fix in HBASE-13482
Repository: incubator-ranger
Updated Branches:
refs/heads/master b09694dea -> ea9954f4d
RANGER-448: HBase plugin update for the fix in HBASE-13482
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/ea9954f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/ea9954f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/ea9954f4
Branch: refs/heads/master
Commit: ea9954f4d17ea02c54e7ca9f8f894176846c6462
Parents: b09694d
Author: Madhan Neethiraj <ma...@apache.org>
Authored: Fri May 1 18:22:03 2015 -0700
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Fri May 1 22:07:25 2015 -0700
----------------------------------------------------------------------
.../authorization/hbase/RangerAuthorizationCoprocessor.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/ea9954f4/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 f42c15a..c1d040b 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
@@ -195,6 +195,10 @@ public class RangerAuthorizationCoprocessor extends RangerAuthorizationCoprocess
// Methods that are used within the CoProcessor
private void requireScannerOwner(InternalScanner s) throws AccessDeniedException {
+ if (!RpcServer.isInRpcCallContext()) {
+ return;
+ }
+
String requestUserName = RpcServer.getRequestUserName();
String owner = scannerOwners.get(s);
if (owner != null && !owner.equals(requestUserName)) {