Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEB3917676 for ; Thu, 19 Mar 2015 21:31:38 +0000 (UTC) Received: (qmail 4779 invoked by uid 500); 19 Mar 2015 21:31:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 4716 invoked by uid 500); 19 Mar 2015 21:31:38 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 4704 invoked by uid 99); 19 Mar 2015 21:31:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 21:31:38 +0000 Date: Thu, 19 Mar 2015 21:31:38 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7942) NFS: support regexp grouping in nfs.exports.allowed.hosts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370157#comment-14370157 ] Haohui Mai commented on HDFS-7942: ---------------------------------- {code} } else if (host.contains("*") || host.contains("?") || host.contains("[") - || host.contains("]")) { + || host.contains("]") || host.contains("(") || host.contains(")")) { {code} Does it need to include other escape characters, such as +, -, etc.? > NFS: support regexp grouping in nfs.exports.allowed.hosts > --------------------------------------------------------- > > Key: HDFS-7942 > URL: https://issues.apache.org/jira/browse/HDFS-7942 > Project: Hadoop HDFS > Issue Type: Bug > Components: nfs > Affects Versions: 2.6.0 > Reporter: Brandon Li > Assignee: Brandon Li > Attachments: HDFS-7942.001.patch > > > Thanks, [~yeshavora], for reporting this problem. > Set regex value in nfs.exports.allowed.hosts property. > {noformat} > nfs.exports.allowed.hosts206.190.52.[26|23] rw > {noformat} > With this value, neither 206.190.52.26 nor 206.190.52.23 can mount nfs and act as nfs client. In conclusion, no host can mount nfs with this regex value due to access denied error. > {noformat} > >$ sudo su - -c "mount -o soft,proto=tcp,vers=3,rsize=1048576,wsize=1048576,nolock 206.190.52.23:/ /tmp/tmp_mnt" root > mount.nfs: access denied by server while mounting 206.190.52.23:/ > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)