Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5D5DD20049C for ; Fri, 11 Aug 2017 15:33:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5BCDF16D3CB; Fri, 11 Aug 2017 13:33:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A17B416D3C9 for ; Fri, 11 Aug 2017 15:33:05 +0200 (CEST) Received: (qmail 4936 invoked by uid 500); 11 Aug 2017 13:33:04 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 4539 invoked by uid 99); 11 Aug 2017 13:33:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 13:33:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 71880C3B0D for ; Fri, 11 Aug 2017 13:33:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3e_Nwkc8gqNK for ; Fri, 11 Aug 2017 13:33:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C93D260D44 for ; Fri, 11 Aug 2017 13:33:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 02595E0E14 for ; Fri, 11 Aug 2017 13:33:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6207324199 for ; Fri, 11 Aug 2017 13:33:00 +0000 (UTC) Date: Fri, 11 Aug 2017 13:33:00 +0000 (UTC) From: "Zsombor Gegesy (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-11924) FSPermissionChecker.checkTraverse doesn't pass FsAction access properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 11 Aug 2017 13:33:06 -0000 [ https://issues.apache.org/jira/browse/HDFS-11924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zsombor Gegesy resolved HDFS-11924. ----------------------------------- Resolution: Invalid You are right, the problem is that Ranger doesn't implement properly the traversal checks, which is enough to work with hadoop 2.7.3. Hopefully, after [RANGER-1707|https://issues.apache.org/jira/browse/RANGER-1707] is merged, it will become a compliant service > FSPermissionChecker.checkTraverse doesn't pass FsAction access properly > ----------------------------------------------------------------------- > > Key: HDFS-11924 > URL: https://issues.apache.org/jira/browse/HDFS-11924 > Project: Hadoop HDFS > Issue Type: Bug > Components: security > Affects Versions: 2.8.0 > Reporter: Zsombor Gegesy > Labels: hdfs, hdfspermission > Attachments: 0001-HDFS-11924-Pass-FsAction-to-the-external-AccessContr.patch > > > In 2.7.1, during file access check, the AccessControlEnforcer is called with the access parameter filled with FsAction values. > A thread dump in this case: > {code} > FSPermissionChecker.checkPermission(INodesInPath, boolean, FsAction, FsAction, FsAction, FsAction, boolean) line: 189 > FSDirectory.checkPermission(FSPermissionChecker, INodesInPath, boolean, FsAction, FsAction, FsAction, FsAction, boolean) line: 1698 > FSDirectory.checkPermission(FSPermissionChecker, INodesInPath, boolean, FsAction, FsAction, FsAction, FsAction) line: 1682 > FSDirectory.checkPathAccess(FSPermissionChecker, INodesInPath, FsAction) line: 1656 > FSNamesystem.appendFileInternal(FSPermissionChecker, INodesInPath, String, String, boolean, boolean) line: 2668 > FSNamesystem.appendFileInt(String, String, String, boolean, boolean) line: 2985 > FSNamesystem.appendFile(String, String, String, EnumSet, boolean) line: 2952 > NameNodeRpcServer.append(String, String, EnumSetWritable) line: 653 > ClientNamenodeProtocolServerSideTranslatorPB.append(RpcController, ClientNamenodeProtocolProtos$AppendRequestProto) line: 421 > ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(Descriptors$MethodDescriptor, RpcController, Message) line: not available > ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(RPC$Server, String, Writable, long) line: 616 > ProtobufRpcEngine$Server(RPC$Server).call(RPC$RpcKind, String, Writable, long) line: 969 > Server$Handler$1.run() line: 2049 > Server$Handler$1.run() line: 2045 > AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method] > Subject.doAs(Subject, PrivilegedExceptionAction) line: 422 > UserGroupInformation.doAs(PrivilegedExceptionAction) line: 1657 > {code} > However, in 2.8.0 this value is changed to null, because in FSPermissionChecker.checkTraverse(FSPermissionChecker pc, INodesInPath iip, boolean resolveLink) couldn't pass the required information, so it's simply use 'null'. > This is a regression between 2.7.1 and 2.8.0, because external AccessControlEnforcer couldn't work properly -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org