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 A0B14C4EF for ; Thu, 24 May 2012 04:55:42 +0000 (UTC) Received: (qmail 81721 invoked by uid 500); 24 May 2012 04:55:42 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 81657 invoked by uid 500); 24 May 2012 04:55:42 -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 81469 invoked by uid 99); 24 May 2012 04:55:41 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 04:55:41 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B3891141887 for ; Thu, 24 May 2012 04:55:41 +0000 (UTC) Date: Thu, 24 May 2012 04:55:41 +0000 (UTC) From: "Laxman (JIRA)" To: issues@hbase.apache.org Message-ID: <1723453550.14974.1337835341737.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (HBASE-6086) Admin operations on a table should be authorized against table permissions instead of global permissions. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Laxman created HBASE-6086: ----------------------------- Summary: Admin operations on a table should be authorized against table permissions instead of global permissions. Key: HBASE-6086 URL: https://issues.apache.org/jira/browse/HBASE-6086 Project: HBase Issue Type: Sub-task Components: security Affects Versions: 0.94.0 Reporter: Laxman Assignee: Laxman Still some inconsistency exists after HBASE-6061. We actually need to authorize against table permissions instead of global permissions here. {code} + private void requireTableAdminPermission(MasterCoprocessorEnvironment e, + byte[] tableName) throws IOException { + if (isActiveUserTableOwner(e, tableName)) { + requirePermission(Permission.Action.CREATE); + } else { + 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