You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by xi...@apache.org on 2015/01/23 03:47:33 UTC

incubator-sentry git commit: SENTRY-594: Alter database should check output privilege instead of input (Reviewed by Lenni Kuff)

Repository: incubator-sentry
Updated Branches:
  refs/heads/master 382a93318 -> 86e18a10f


SENTRY-594: Alter database should check output privilege instead of input (Reviewed by Lenni Kuff)


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

Branch: refs/heads/master
Commit: 86e18a10f3ddd29fde7f05afa9c0096775ec8240
Parents: 382a933
Author: Huang Xiaomeng <xi...@intel.com>
Authored: Fri Jan 23 10:24:54 2015 +0800
Committer: Huang Xiaomeng <xi...@intel.com>
Committed: Fri Jan 23 10:24:54 2015 +0800

----------------------------------------------------------------------
 .../apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/86e18a10/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java
----------------------------------------------------------------------
diff --git a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java
index 99f1eb0..e767ac8 100644
--- a/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java
+++ b/sentry-binding/sentry-binding-hive/src/main/java/org/apache/sentry/binding/hive/authz/HiveAuthzPrivilegesMap.java
@@ -54,7 +54,7 @@ public class HiveAuthzPrivilegesMap {
         setOperationType(HiveOperationType.DDL).
         build();
     HiveAuthzPrivileges alterDbPrivilege = new HiveAuthzPrivileges.AuthzPrivilegeBuilder().
-        addInputObjectPriviledge(AuthorizableType.Db, EnumSet.of(DBModelAction.ALTER)).
+        addOutputObjectPriviledge(AuthorizableType.Db, EnumSet.of(DBModelAction.ALTER)).
         setOperationScope(HiveOperationScope.DATABASE).
         setOperationType(HiveOperationType.DDL).
         build();