Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7942

NFS: support regexp grouping in nfs.exports.allowed.hosts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • nfs
    • None
    • Reviewed

    Description

      Thanks, yeshavora, for reporting this problem.

      Set regex value in nfs.exports.allowed.hosts property.

      <property><name>nfs.exports.allowed.hosts</name><value>206.190.52.[26|23] rw</value></property>
      

      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.

      >$ 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:/
      

      Attachments

        1. HDFS-7942.001.patch
          2 kB
          Brandon Li
        2. HDFS-7942.002.patch
          4 kB
          Brandon Li

        Activity

          People

            brandonli Brandon Li
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: