hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12796) FsPermission#applyUMask drops the sticky bit
Date Fri, 12 Feb 2016 17:43:18 GMT

    [ 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)

Mime
View raw message