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 "Ahmed Radwan (Created) (JIRA)" <ji...@apache.org> on 2012/03/01 21:49:59 UTC

[jira] [Created] (HADOOP-8130) FileContext.mkdir(..) causes a loss of setgid permission of directory created

FileContext.mkdir(..) causes a loss of setgid permission of directory created
-----------------------------------------------------------------------------

                 Key: HADOOP-8130
                 URL: https://issues.apache.org/jira/browse/HADOOP-8130
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs, util
    Affects Versions: 0.23.0
            Reporter: Ahmed Radwan


When FileContext.mkdir(..) is used to create a directory inside a parent directory (which has the setgid permission), the created directory loses the setgid permission. 

We have noticed that in ContainerLocalizer.java:
{code}
  private static void initDirs(Configuration conf, String user, String appId,
      FileContext lfs, List<Path> localDirs) throws IOException {
       .
       .
      // $x/usercache/$user/appcache/$appId/output
      lfs.mkdir(new Path(appBase, OUTPUTDIR), null, false);
       .
       .
  }
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira