Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8130

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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);
             .
             .
        }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ahmed.radwan Ahmed Radwan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: