From commits-return-12749-archive-asf-public=cust-asf.ponee.io@sentry.apache.org Tue Jun 19 20:16:34 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AD26F180634 for ; Tue, 19 Jun 2018 20:16:33 +0200 (CEST) Received: (qmail 14891 invoked by uid 500); 19 Jun 2018 18:16:32 -0000 Mailing-List: contact commits-help@sentry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.apache.org Delivered-To: mailing list commits@sentry.apache.org Received: (qmail 14882 invoked by uid 99); 19 Jun 2018 18:16:32 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2018 18:16:32 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5E714DFA09; Tue, 19 Jun 2018 18:16:32 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: spena@apache.org To: commits@sentry.apache.org Message-Id: <58bbbedd0fe542a197008ba73e9a5641@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: sentry git commit: SENTRY-2265: Translate owner privilege in sentry binding for authorization (Sergio Pena, reviewed by kalyan kumar kalvagadda) Date: Tue, 19 Jun 2018 18:16:32 +0000 (UTC) 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 Authored: Tue Jun 19 13:16:04 2018 -0500 Committer: Sergio Pena 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;