[ 
https://issues.apache.org/jira/browse/HADOOP-11415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14249663#comment-14249663
 ] 

Steve Loughran commented on HADOOP-11415:
-----------------------------------------

can we switch to the java7 {{java.nio.file}} code now, that does let us set 
permissions on file creation?

> Local file system on Linux may create files and directories initially with 
> wider permissions than intended.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11415
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11415
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Chris Nauroth
>              Labels: security
>
> As discussed in HADOOP-11321, the local file system implements file and 
> directory creation as a two-step process: create followed by chmod to set the 
> caller's requested permissions.  This causes a brief window in which the new 
> file or directory may have wider permissions than what the caller requested.  
> HADOOP-11321 fixed this specifically for Windows as a side effect of fixing a 
> bug in writing to an SMB share.  This issue tracks fixing it specifically for 
> Linux.



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

Reply via email to