You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by sp...@apache.org on 2018/06/19 18:16:32 UTC

sentry git commit: SENTRY-2265: Translate owner privilege in sentry binding for authorization (Sergio Pena, reviewed by kalyan kumar kalvagadda)

Repository: sentry
Updated Branches:
  refs/heads/master 9c3614bce -> 6d2ad5fa5


SENTRY-2265: Translate owner privilege in sentry binding for authorization (Sergio Pena, reviewed by kalyan kumar kalvagadda)


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

Branch: refs/heads/master
Commit: 6d2ad5fa59810038f1649c7216741082c4e3171b
Parents: 9c3614b
Author: Sergio Pena <se...@cloudera.com>
Authored: Tue Jun 19 13:16:04 2018 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Tue Jun 19 13:16:04 2018 -0500

----------------------------------------------------------------------
 .../java/org/apache/sentry/core/model/db/HiveActionFactory.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/6d2ad5fa/sentry-core/sentry-core-model-db/src/main/java/org/apache/sentry/core/model/db/HiveActionFactory.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-db/src/main/java/org/apache/sentry/core/model/db/HiveActionFactory.java b/sentry-core/sentry-core-model-db/src/main/java/org/apache/sentry/core/model/db/HiveActionFactory.java
index ad7e1c9..0a0a215 100644
--- a/sentry-core/sentry-core-model-db/src/main/java/org/apache/sentry/core/model/db/HiveActionFactory.java
+++ b/sentry-core/sentry-core-model-db/src/main/java/org/apache/sentry/core/model/db/HiveActionFactory.java
@@ -38,7 +38,10 @@ public class HiveActionFactory extends BitFieldActionFactory {
     ALL(AccessConstants.ACTION_ALL, SELECT.getCode() | INSERT.getCode() | ALTER.getCode() | CREATE.getCode() |
             DROP.getCode() | INDEX.getCode() | LOCK.getCode()),   // binary: 01111111
     ALL_STAR(AccessConstants.ALL, ALL.getCode()),                 // binary: 01111111
-    SOME(AccessConstants.SOME, ALL.getCode());                    // binary: 01111111
+    SOME(AccessConstants.SOME, ALL.getCode()),                    // binary: 01111111
+
+    // OWNER is a special privilege that behaves like the ALL or ALL_STAR privilege.
+    OWNER(AccessConstants.OWNER, ALL.getCode());                  // binary: 01111111
 
     private String name;
     private int code;