ranger git commit: RANGER-1737: Fixed RANGER-1181 by providing correct set of parameters to Hdfs Native Authorizer in case of fall-back

2017-08-16 Thread abhay
Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 99abbcfa9 -> 41da4514a


RANGER-1737: Fixed RANGER-1181 by providing correct set of parameters to Hdfs 
Native Authorizer in case of fall-back


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

Branch: refs/heads/ranger-0.7
Commit: 41da4514acdd434bb85305a406f3b2f5378af44d
Parents: 99abbcf
Author: Abhay Kulkarni 
Authored: Wed Aug 16 13:14:32 2017 -0700
Committer: Abhay Kulkarni 
Committed: Wed Aug 16 13:30:25 2017 -0700

--
 .../hadoop/RangerHdfsAuthorizer.java| 110 +++
 1 file changed, 65 insertions(+), 45 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ranger/blob/41da4514/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
--
diff --git 
a/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
 
b/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
index f82fd57..97fd5cd 100644
--- 
a/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
+++ 
b/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
@@ -279,7 +279,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
ancestorAccess, FsAction.NONE, FsAction.NONE, FsAction.NONE, 
ignoreEmptyDir,
+   
ancestorAccess, null, null, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -292,7 +292,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
FsAction.NONE, parentAccess, FsAction.NONE, FsAction.NONE, 
ignoreEmptyDir,
+   
null, parentAccess, null, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -305,7 +305,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
FsAction.NONE, FsAction.NONE, access, FsAction.NONE, ignoreEmptyDir,
+   
null, null, access, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -345,18 +345,12 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
}
}
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
- 

ranger git commit: RANGER-1737: Fixed RANGER-1181 by providing correct set of parameters to Hdfs Native Authorizer in case of fall-back

2017-08-16 Thread abhay
Repository: ranger
Updated Branches:
  refs/heads/master f7230f70a -> 1b4e78b0d


RANGER-1737: Fixed RANGER-1181 by providing correct set of parameters to Hdfs 
Native Authorizer in case of fall-back


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

Branch: refs/heads/master
Commit: 1b4e78b0dcfad74b7fd2baea16364b7daf32159e
Parents: f7230f7
Author: Abhay Kulkarni 
Authored: Wed Aug 16 13:14:32 2017 -0700
Committer: Abhay Kulkarni 
Committed: Wed Aug 16 13:14:32 2017 -0700

--
 .../hadoop/RangerHdfsAuthorizer.java| 110 +++
 1 file changed, 65 insertions(+), 45 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ranger/blob/1b4e78b0/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
--
diff --git 
a/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
 
b/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
index f82fd57..97fd5cd 100644
--- 
a/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
+++ 
b/hdfs-agent/src/main/java/org/apache/ranger/authorization/hadoop/RangerHdfsAuthorizer.java
@@ -279,7 +279,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
ancestorAccess, FsAction.NONE, FsAction.NONE, FsAction.NONE, 
ignoreEmptyDir,
+   
ancestorAccess, null, null, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -292,7 +292,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
FsAction.NONE, parentAccess, FsAction.NONE, FsAction.NONE, 
ignoreEmptyDir,
+   
null, parentAccess, null, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -305,7 +305,7 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
authzStatus = 
checkDefaultEnforcer(fsOwner, superGroup, ugi, inodeAttrs, inodes,

pathByNameArr, snapshotId, path, ancestorIndex, doCheckOwner,
-   
FsAction.NONE, FsAction.NONE, access, FsAction.NONE, ignoreEmptyDir,
+   
null, null, access, null, ignoreEmptyDir,

isTraverseOnlyCheck, ancestor, parent, inode, auditHandler);
}
}
@@ -345,18 +345,12 @@ public class RangerHdfsAuthorizer extends 
INodeAttributeProvider {
}
}
if (authzStatus == 
AuthzStatus.NOT_DETERMINED) {
-