From patchwork Sun Jan 31 13:22:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Khlebnikov X-Patchwork-Id: 8174381 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5028B9F38B for ; Sun, 31 Jan 2016 13:22:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91AA920320 for ; Sun, 31 Jan 2016 13:22:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B9D9F202FE for ; Sun, 31 Jan 2016 13:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757497AbcAaNWJ (ORCPT ); Sun, 31 Jan 2016 08:22:09 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:33890 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757430AbcAaNWI (ORCPT ); Sun, 31 Jan 2016 08:22:08 -0500 Received: by mail-lb0-f173.google.com with SMTP id cl12so61783155lbc.1; Sun, 31 Jan 2016 05:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=dIs/0psgvgR8C/Dfd9P5hHcR0IcXe/adN/JoESpg5C4=; b=Cn/Ffq9x7McTdXpctcDHiDAZVlx/Kj7wVStW6QfmG+kH5HCRzC/5IIAWrI+qOHeMB1 4TrzYTBsMU26mFWfiJbJhUiwTOHbmn5VKoOGpPlkIXDmysWEJXXzDhfu2DYFHgsvKpT1 i8hIb57TBZ0fyckKZeJL4WQshLfICrm+dbuIiCez1mor5AdBRrMkUZrTXTW8h7/2J1ev Be2HlIASIz5vwcKisK1+68tgcuFMVX0M4v/DdtDxxoaE7K7HYPDhPFtgdBUWJMuZIc8f qVtk4K00Sxrv9DZGecl6vpip7P5lzLGx/DyUTMKlbZjtZEcHBaU8TrzRTV4VuvF3tK8I 5H2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:from:to:cc:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=dIs/0psgvgR8C/Dfd9P5hHcR0IcXe/adN/JoESpg5C4=; b=fxsj+ZrE+BtiSHF5bv9vprkNCaVUGSYESu7WZBIfmuoOsfcoO749tpjZjLZtM6G5b7 0os8tp7EWMBxFNvWf3TlYMWL31nd5+feX0f0aSQqUuxpZHInwJUcdtt/uePFL73LvObu BkOzyayvcpplIQ6f8iQzlTVsPvTf3GZIlePYsK2AdAEtKY2jSQ9QzSMcMQRCi5D7ey3C ar477xf9j/qEbAxuTsxFiVYoqmRj3rNY6Jzh03OuBUDPs8yxjCVIQ1LwrJ3FAtAet+p+ 3DAO0k5L8sqalxLWCuNFtD6hLFx8Nfat9terZDYlr+wad5yYc4NQj8/wc1UC4KVbShcY n7JQ== X-Gm-Message-State: AG10YOSNOOeFqqSECsczKoC/xMDVFfhVpxEkBlwpaAMN+ijUc+VNkfxYfC3b3gW7TxFf5w== X-Received: by 10.112.156.6 with SMTP id wa6mr6485912lbb.66.1454246526550; Sun, 31 Jan 2016 05:22:06 -0800 (PST) Received: from localhost (ppp79-139-147-94.pppoe.spdop.ru. [79.139.147.94]) by smtp.gmail.com with ESMTPSA id ac10sm3323423lbc.44.2016.01.31.05.22.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2016 05:22:05 -0800 (PST) Subject: [PATCH] ovl: copy MS_POSIXACL flag from upper layer From: Konstantin Khlebnikov To: linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, Miklos Szeredi Cc: linux-kernel@vger.kernel.org, Alexander Viro Date: Sun, 31 Jan 2016 16:22:01 +0300 Message-ID: <145424652170.10770.5085971283841936983.stgit@zurg> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Catched by xfstests generic/319 Signed-off-by: Konstantin Khlebnikov --- fs/overlayfs/super.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" 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/fs/overlayfs/super.c b/fs/overlayfs/super.c index ba28b007005e..e6ae59c7119c 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -972,6 +972,10 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) goto out_put_workpath; } sb->s_stack_depth = upperpath.mnt->mnt_sb->s_stack_depth; + + /* Copy MS_POSIXACL flag from upper layer */ + sb->s_flags &= ~MS_POSIXACL; + sb->s_flags |= upperpath.mnt->mnt_sb->s_flags & MS_POSIXACL; } err = -ENOMEM; lowertmp = kstrdup(ufs->config.lowerdir, GFP_KERNEL);