Hadoop Common
  1. Hadoop Common
  2. HADOOP-8130

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.23.0
    • Fix Version/s: None
    • Component/s: fs, util
    • Labels:
      None

      Description

      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:

        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);
             .
             .
        }
      

        Activity

        Ahmed Radwan created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Ahmed Radwan
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development