From common-dev-return-77891-apmail-hadoop-common-dev-archive=hadoop.apache.org@hadoop.apache.org Thu Mar 1 20:50:24 2012 Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC47190D2 for ; Thu, 1 Mar 2012 20:50:23 +0000 (UTC) Received: (qmail 20096 invoked by uid 500); 1 Mar 2012 20:50:22 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 20011 invoked by uid 500); 1 Mar 2012 20:50:22 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 20003 invoked by uid 99); 1 Mar 2012 20:50:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 20:50:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 20:50:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D09373C34 for ; Thu, 1 Mar 2012 20:49:58 +0000 (UTC) Date: Thu, 1 Mar 2012 20:49:58 +0000 (UTC) From: "Ahmed Radwan (Created) (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <1196232606.8739.1330634998855.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HADOOP-8130) FileContext.mkdir(..) causes a loss of setgid permission of directory created MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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 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