From patchwork Wed Oct 10 15:55:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 1574931 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D8BB4DFB34 for ; Wed, 10 Oct 2012 15:55:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752579Ab2JJPzo (ORCPT ); Wed, 10 Oct 2012 11:55:44 -0400 Received: from mga11.intel.com ([192.55.52.93]:43621 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426Ab2JJPzn convert rfc822-to-8bit (ORCPT ); Wed, 10 Oct 2012 11:55:43 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 10 Oct 2012 08:55:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,564,1344236400"; d="scan'208";a="233035318" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga002.fm.intel.com with ESMTP; 10 Oct 2012 08:55:43 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.223]) by ORSMSX103.amr.corp.intel.com ([169.254.2.246]) with mapi id 14.01.0355.002; Wed, 10 Oct 2012 08:55:42 -0700 From: "Hefty, Sean" To: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] [ibacm] ibacm: Remove umask(0) Thread-Topic: [PATCH] [ibacm] ibacm: Remove umask(0) Thread-Index: Ac2m/6UT1pJ2j0B7T4y6plTMC8UeLA== Date: Wed, 10 Oct 2012 15:55:41 +0000 Message-ID: <1828884A29C6694DAF28B7E6B8A8237346AA40BB@ORSMSX101.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org This causes ibacm files to be created as world writable. Problem reported by Florian Weimer Signed-off-by: Sean Hefty --- src/acm.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/acm.c b/src/acm.c index 00fc35d..725cde2 100644 --- a/src/acm.c +++ b/src/acm.c @@ -3182,8 +3182,6 @@ static void daemonize(void) if (pid) exit(pid < 0); - umask(0); - sid = setsid(); if (sid < 0) exit(1);