hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Andreina (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9219) Even if permission is enabled in an environment, while resolving reserved paths there is no check on permission.
Date Thu, 29 Oct 2015 06:21:27 GMT

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

J.Andreina updated HDFS-9219:
-----------------------------
    Attachment: HDFS-9219.2.patch

Updated the patch , including a testcase.
Please review.

> Even if permission is enabled in an environment, while resolving reserved paths there
is no check on permission.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-9219
>                 URL: https://issues.apache.org/jira/browse/HDFS-9219
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: J.Andreina
>            Assignee: J.Andreina
>         Attachments: HDFS-9219.1.patch, HDFS-9219.2.patch
>
>
> Currently at few instances , reserved paths are resolved without checking for permission,
even if "dfs.permissions.enabled" is set to true.
> {code}
>     FSPermissionChecker pc = fsd.getPermissionChecker();
>     byte[][] pathComponents = FSDirectory.getPathComponentsForReservedPath(src);
>     INodesInPath iip;
>     fsd.writeLock();
>     try {
>       src = *FSDirectory.resolvePath(src, pathComponents, fsd);*
> {code}



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

Mime
View raw message