Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB10E746C for ; Wed, 23 Nov 2011 04:21:55 +0000 (UTC) Received: (qmail 20201 invoked by uid 500); 23 Nov 2011 04:21:55 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 20098 invoked by uid 500); 23 Nov 2011 04:21:55 -0000 Mailing-List: contact common-commits-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-commits@hadoop.apache.org Received: (qmail 20091 invoked by uid 99); 23 Nov 2011 04:21:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 04:21:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 04:21:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1D1D32388860 for ; Wed, 23 Nov 2011 04:21:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1205281 - in /hadoop/common/branches/branch-0.20-security: CHANGES.txt src/c++/task-controller/impl/task-controller.c Date: Wed, 23 Nov 2011 04:21:30 -0000 To: common-commits@hadoop.apache.org From: eli@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111123042131.1D1D32388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: eli Date: Wed Nov 23 04:21:29 2011 New Revision: 1205281 URL: http://svn.apache.org/viewvc?rev=1205281&view=rev Log: MAPREDUCE-2103. task-controller shouldn't require o-r permissions. Contributed by Eli Collins Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt hadoop/common/branches/branch-0.20-security/src/c++/task-controller/impl/task-controller.c Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1205281&r1=1205280&r2=1205281&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original) +++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Wed Nov 23 04:21:29 2011 @@ -95,6 +95,8 @@ Release 0.20.206.0 - unreleased MAPREDUCE-3424. Some LinuxTaskController cleanup (eli) + MAPREDUCE-2103. task-controller shouldn't require o-r permissions. (eli) + Release 0.20.205.1 - unreleased NEW FEATURES Modified: hadoop/common/branches/branch-0.20-security/src/c++/task-controller/impl/task-controller.c URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/c%2B%2B/task-controller/impl/task-controller.c?rev=1205281&r1=1205280&r2=1205281&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20-security/src/c++/task-controller/impl/task-controller.c (original) +++ hadoop/common/branches/branch-0.20-security/src/c++/task-controller/impl/task-controller.c Wed Nov 23 04:21:29 2011 @@ -103,7 +103,7 @@ char* get_executable() { * promisable. For this, we need task-controller binary to * * be user-owned by root * * be group-owned by a configured special group. - * * others do not have any permissions + * * others do not have write/execute permissions * * be setuid */ int check_taskcontroller_permissions(char *executable_file) { @@ -141,12 +141,11 @@ int check_taskcontroller_permissions(cha return -1; } - // check others do not have read/write/execute permissions - if ((filestat.st_mode & S_IROTH) == S_IROTH || - (filestat.st_mode & S_IWOTH) == S_IWOTH || + // check others do not have write/execute permissions + if ((filestat.st_mode & S_IWOTH) == S_IWOTH || (filestat.st_mode & S_IXOTH) == S_IXOTH) { fprintf(LOGFILE, - "The task-controller binary should not have read or write or" + "The task-controller binary should not have write or" " execute for others.\n"); return -1; }