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

Enforce read-only permissions in FUSE open()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.20.2
    • None
    • fuse-dfs
    • None
    • Linux 2.6.35

    Description

      fuse-dfs currently allows files to be created on a read-only filesystem:

      $ fuse_dfs_wrapper.sh dfs://example.com:8020 ro ~/hdfs
      $ touch ~/hdfs/foobar

      Attached is a simple patch, which does two things:
      1) Checks the read_only flag inside dfs_open().
      2) Passes the read-only mount option to FUSE when ro is specified on the commandline. This is probably a better long-term solution; the kernel will enforce the read-only operations without it being necessary inside the client.

      Attachments

        1. patch.fuse-dfs.kernel
          0.6 kB
          Brian Bloniarz
        2. patch.fuse-dfs
          1 kB
          Brian Bloniarz

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brianbloniarz Brian Bloniarz
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: