sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lsk...@apache.org
Subject incubator-sentry git commit: SENTRY-994: SentryAuthorizationInfoX should override isSentryManaged (Sravya Tirukkovalur via Lenni Kuff)
Date Wed, 06 Jan 2016 19:38:50 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master 0adfc7384 -> 3ee3e9320


SENTRY-994: SentryAuthorizationInfoX should override isSentryManaged (Sravya Tirukkovalur
via Lenni Kuff)

Change-Id: Idf57ab092b74dce3a4972c6aaacef528ecb5a2bd


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

Branch: refs/heads/master
Commit: 3ee3e9320457a2df7cdd807183fb2700617de23c
Parents: 0adfc73
Author: Lenni Kuff <lskuff@cloudera.com>
Authored: Wed Jan 6 11:38:32 2016 -0800
Committer: Lenni Kuff <lskuff@cloudera.com>
Committed: Wed Jan 6 11:38:32 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/3ee3e932/sentry-hdfs/sentry-hdfs-namenode-plugin/src/test/java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-namenode-plugin/src/test/java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java
b/sentry-hdfs/sentry-hdfs-namenode-plugin/src/test/java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java
index a81f7ab..b31a1cc 100644
--- a/sentry-hdfs/sentry-hdfs-namenode-plugin/src/test/java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java
+++ b/sentry-hdfs/sentry-hdfs-namenode-plugin/src/test/java/org/apache/sentry/hdfs/SentryAuthorizationInfoX.java
@@ -77,6 +77,11 @@ public class SentryAuthorizationInfoX extends SentryAuthorizationInfo {
   }
 
   @Override
+  public boolean isSentryManaged(final String[] pathElements) {
+    return isUnderPrefix(pathElements) && doesBelongToAuthzObject(pathElements);
+  }
+
+  @Override
   public List<AclEntry> getAclEntries(String[] pathElements) {
     AclEntry acl = new AclEntry.Builder().setType(AclEntryType.USER).
         setPermission(FsAction.ALL).setName("user-authz").


Mime
View raw message