hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-1841) Enforce read-only permissions in FUSE open()
Date Fri, 13 Mar 2015 23:15:38 GMT

     [ https://issues.apache.org/jira/browse/HDFS-1841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe resolved HDFS-1841.
----------------------------------------
    Resolution: Duplicate

duplicate of HDFS-4139 from 2012

> Enforce read-only permissions in FUSE open()
> --------------------------------------------
>
>                 Key: HDFS-1841
>                 URL: https://issues.apache.org/jira/browse/HDFS-1841
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fuse-dfs
>    Affects Versions: 0.20.2
>         Environment: Linux 2.6.35
>            Reporter: Brian Bloniarz
>            Priority: Minor
>         Attachments: patch.fuse-dfs, patch.fuse-dfs.kernel
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message