You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2016/02/12 18:43:18 UTC

[jira] [Commented] (HADOOP-12796) FsPermission#applyUMask drops the sticky bit

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

Chris Nauroth commented on HADOOP-12796:
----------------------------------------

Nice find!

I just reviewed the HDFS ACLs code to see if we've got the same bug there, but it looks fine.  ACLs do preserve the sticky bit as necessary.  (Relevant code is in {{org.apache.hadoop.hdfs.server.namenode.AclStorage}}.

> FsPermission#applyUMask drops the sticky bit
> --------------------------------------------
>
>                 Key: HADOOP-12796
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12796
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Kazuho Fujii
>
> The sticky bit has no effect specified at create and mkdirs. 
> The sticky bit is dropped when umask is applied. {{applyUMask}} method does not take over the sticky bit from the original {{FsPermission}} class.
> In contrast, the sticky bit specified in POSIX' create or mkdir system call is always reflected.



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