From patchwork Sat Jan 28 17:38:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 9543413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42F33604A0 for ; Sat, 28 Jan 2017 17:38:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34A352808F for ; Sat, 28 Jan 2017 17:38:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2974028358; Sat, 28 Jan 2017 17:38:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B80B22808F for ; Sat, 28 Jan 2017 17:38:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751279AbdA1RiZ (ORCPT ); Sat, 28 Jan 2017 12:38:25 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:41319 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751171AbdA1RiY (ORCPT ); Sat, 28 Jan 2017 12:38:24 -0500 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v0SHcMlf029089 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 Jan 2017 17:38:22 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v0SHcMgp027260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 28 Jan 2017 17:38:22 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v0SHcKKP026754; Sat, 28 Jan 2017 17:38:21 GMT Received: from localhost (/24.21.211.40) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 28 Jan 2017 09:38:20 -0800 Subject: [PATCH 2/3] xfs/299: don't chmod the underlying mountpoints prior to mounting From: "Darrick J. Wong" To: eguan@redhat.com, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org Date: Sat, 28 Jan 2017 09:38:19 -0800 Message-ID: <148562509908.30594.7838088688242443797.stgit@birch.djwong.org> In-Reply-To: <148562509264.30594.7506967863745489318.stgit@birch.djwong.org> References: <148562509264.30594.7506967863745489318.stgit@birch.djwong.org> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong It's silly to make $SCRATCH_MNT world writable just prior to mounting the scratch device; instead, do it after the mount. Signed-off-by: Darrick J. Wong --- tests/xfs/299 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe fstests" 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/tests/xfs/299 b/tests/xfs/299 index d2670f8..997c5dc 100755 --- a/tests/xfs/299 +++ b/tests/xfs/299 @@ -203,9 +203,6 @@ cat $tmp.mkfs >>$seqres.full # keep the blocksize and data size for dd later . $tmp.mkfs -# non-root users need to be able to write to this filesystem -chmod 777 $SCRATCH_MNT - cat >$tmp.projects <