Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 223E4C433FE for ; Fri, 1 Apr 2022 15:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344925AbiDAP4R (ORCPT ); Fri, 1 Apr 2022 11:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354313AbiDAPux (ORCPT ); Fri, 1 Apr 2022 11:50:53 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7832D1D833E for ; Fri, 1 Apr 2022 08:25:12 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 24CE41FD01; Fri, 1 Apr 2022 15:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1648826711; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RUHcQAJtktCENB0eECRS1RQy+FYsu6YNo4v3teg3Cr0=; b=SEVycTwMo6oQfLYQ3+fTnP8FqFeTB7S12myisl0jyQQE7Rd7q1VPbH9Uz9/E9q6eYZA3KE De7NNTj9d6TT//NHPvjkVkGubDCxa4YJyylh9XqbKDowEeAOI9GxAXF2aoy0ZYWQOFi6jq mdXOp3hLsYkjIIHvZvI9tY8bucMvHbI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1648826711; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RUHcQAJtktCENB0eECRS1RQy+FYsu6YNo4v3teg3Cr0=; b=X4UYNnEZXn3kTjYPJJSSJ4uEzuKC4Dsam9+kOgoNo6l/CMSt4ysyeDioFQ43+NZkXZR1h5 bWuRytrwUAO1zjAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A78B6132C1; Fri, 1 Apr 2022 15:25:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id XVFOHFYZR2JtGAAAMHmgww (envelope-from ); Fri, 01 Apr 2022 15:25:10 +0000 Date: Fri, 1 Apr 2022 12:25:08 -0300 From: Enzo Matsumiya To: Tom Talpey Cc: linux-cifs@vger.kernel.org, pshilovsky@samba.org, smfrench@gmail.com, pc@cjr.nz Subject: Re: [PATCH] mount.cifs.rst: add FIPS information Message-ID: <20220401152508.edovgwz5pxn6gnhn@cyberdelia> References: <20220331235251.4753-1-ematsumiya@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org On 04/01, Tom Talpey wrote: >Is SMB2 really FIPS compliant? Even if it is, a server that doesn't >support anything higher is obviously far out of date. It's more that the crypto stuff used by SMB1 is *not* compliant. If SMB2 keeps using FIPS-approved hashing/crypto algorightms, I guess it makes it FIPS compliant, and the burden is on their end to disqualify older algorithms for their certification. > I think it >would be better to recommend, or maybe even require, SMB3 here. So, I've added a bit in the SECURITY section saying that mount.cifs doesn't enforce anything, and all crypto blocking/allowing is made on the kernel. Do you think we should? An informed user, with particular requirements, might want to use SMB2 *and* still be FIPS compliant, but we would be enforcing something (non-SMB3) that's not quite right. And if the kernel is not in FIPS mode, we should only inform the user, because we don't actually use/do any crypto computation in mount.cifs. Cheers, Enzo