Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01C2BC17A for ; Wed, 18 Apr 2012 19:21:04 +0000 (UTC) Received: (qmail 41708 invoked by uid 500); 18 Apr 2012 19:21:04 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 41674 invoked by uid 500); 18 Apr 2012 19:21:04 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 41657 invoked by uid 99); 18 Apr 2012 19:21:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 19:21:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 19:21:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1E4373A1FDA for ; Wed, 18 Apr 2012 19:20:40 +0000 (UTC) Date: Wed, 18 Apr 2012 19:20:40 +0000 (UTC) From: "Zhihong Yu (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1409486052.2250.1334776840125.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <282789172.24244.1334357357806.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5787) Table owner can't disable/delete its own table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256862#comment-13256862 ] Zhihong Yu commented on HBASE-5787: ----------------------------------- I applied latest patch to 0.92 and was able to run the test: {code} Running org.apache.hadoop.hbase.security.access.TestAccessController Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 45.115 sec Results : Tests run: 21, Failures: 0, Errors: 0, Skipped: 0 {code} > Table owner can't disable/delete its own table > ---------------------------------------------- > > Key: HBASE-5787 > URL: https://issues.apache.org/jira/browse/HBASE-5787 > Project: HBase > Issue Type: Bug > Components: security > Affects Versions: 0.92.1, 0.94.0, 0.96.0 > Reporter: Matteo Bertozzi > Assignee: Matteo Bertozzi > Priority: Minor > Labels: acl, security > Fix For: 0.92.2, 0.94.0, 0.96.0 > > Attachments: HBASE-5787-tests-wrong-names.patch, HBASE-5787-v0.patch, HBASE-5787-v1.patch > > > An user with CREATE privileges can create a table, but can not disable it, because disable operation require ADMIN privileges. Also if a table is already disabled, anyone can remove it. > {code} > public void preDeleteTable(ObserverContext c, > byte[] tableName) throws IOException { > requirePermission(Permission.Action.CREATE); > } > public void preDisableTable(ObserverContext c, > byte[] tableName) throws IOException { > /* TODO: Allow for users with global CREATE permission and the table owner */ > requirePermission(Permission.Action.ADMIN); > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira