[
https://issues.apache.org/jira/browse/HDFS-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000266#comment-14000266
]
Charles Lamb commented on HDFS-6375:
------------------------------------
[~andrew.wang] and I had an offline discussion. He is concerned that
permissions fallback does not provide any distinction between true null values
(i.e. no value was set for the xattr when it was created) and "you don't have
permission" null values. He proposes that we add a new xattr method in the api
which will allow for scanning values, similar to
http://linux.die.net/man/2/listxattr. If there are xattrs with null values then
it will return those as long as the caller had access. If you only have scan
access then the method would not even return the name.
[~cnauroth], [~hitliuyi], what are your thoughts?
> Listing extended attributes with the search permission
> ------------------------------------------------------
>
> Key: HDFS-6375
> URL: https://issues.apache.org/jira/browse/HDFS-6375
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Affects Versions: HDFS XAttrs (HDFS-2006)
> Reporter: Andrew Wang
> Assignee: Charles Lamb
> Attachments: HDFS-6375.1.patch, HDFS-6375.2.patch, HDFS-6375.3.patch,
> HDFS-6375.4.patch
>
>
> From the attr(5) manpage:
> {noformat}
> Users with search access to a file or directory may retrieve a list of
> attribute names defined for that file or directory.
> {noformat}
> This is like doing {{getfattr}} without the {{-d}} flag, which we currently
> don't support.
--
This message was sent by Atlassian JIRA
(v6.2#6252)