Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D857C433DF for ; Tue, 7 Jul 2020 15:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FD5F20663 for ; Tue, 7 Jul 2020 15:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594134646; bh=o6oqzbWykaCvSyO5x3PsxFUX8tWn7wsUwpk/xakbM3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GRLywB4hSTg79u9j4y5ej8bMLU63+H+pPLE9rR2lyy9+z76pdyrMdFZI8okOEao+R twH0/+mz33AfQWDE/S4BfjeTXT5yACjX5a83fVrDYhcrSegthNk+6uDECeXiZXML45 DN8MOBzWL76VzESyfTdmAyLNnUCcD2+hiB2VAH8A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728392AbgGGPKp (ORCPT ); Tue, 7 Jul 2020 11:10:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:51496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728449AbgGGPKm (ORCPT ); Tue, 7 Jul 2020 11:10:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E5CDC20674; Tue, 7 Jul 2020 15:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594134642; bh=o6oqzbWykaCvSyO5x3PsxFUX8tWn7wsUwpk/xakbM3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vx0mv+YswWi0tPrXrRbZd6oU3tbsWDz34Op7I9DrWOVji4TYtOQKO+XWWghh20MPV LrQdXTk2g0FD6AWVlkxuCRDWRqS5cwxf7t4jdqrjK74dq5r76ynw1F1HzPlS4hJEsY 0Jr+1xVphYBJCMZ4aLfS4eSi3hQNMd3o2DlXEaqU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Aurich , Steve French , Aurelien Aptel Subject: [PATCH 4.4 15/19] SMB3: Honor seal flag for multiuser mounts Date: Tue, 7 Jul 2020 17:10:18 +0200 Message-Id: <20200707145748.264215044@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200707145747.493710555@linuxfoundation.org> References: <20200707145747.493710555@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Paul Aurich commit cc15461c73d7d044d56c47e869a215e49bd429c8 upstream. Ensure multiuser SMB3 mounts use encryption for all users' tcons if the mount options are configured to require encryption. Without this, only the primary tcon and IPC tcons are guaranteed to be encrypted. Per-user tcons would only be encrypted if the server was configured to require encryption. Signed-off-by: Paul Aurich CC: Stable Signed-off-by: Steve French Reviewed-by: Aurelien Aptel Signed-off-by: Greg Kroah-Hartman --- fs/cifs/connect.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4206,6 +4206,7 @@ cifs_construct_tcon(struct cifs_sb_info vol_info->no_linux_ext = !master_tcon->unix_ext; vol_info->sectype = master_tcon->ses->sectype; vol_info->sign = master_tcon->ses->sign; + vol_info->seal = master_tcon->seal; rc = cifs_set_vol_auth(vol_info, master_tcon->ses); if (rc) {