From nobody Thu Oct 28 15:37:33 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CEB291832A3C; Thu, 28 Oct 2021 15:37:46 +0000 (UTC) (envelope-from SRS0=oNTo=PQ=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hg8p229Srz4c8F; Thu, 28 Oct 2021 15:37:46 +0000 (UTC) (envelope-from SRS0=oNTo=PQ=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 5010928417; Thu, 28 Oct 2021 17:37:38 +0200 (CEST) Received: from illbsd.quip.test (ip-78-45-215-131.net.upcbroadband.cz [78.45.215.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 708F728411; Thu, 28 Oct 2021 17:37:36 +0200 (CEST) Subject: Re: Deprecating smbfs(5) and removing it before FreeBSD 14 To: Ed Maste , FreeBSD Current , freebsd-stable stable References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <8d25d2f4-24e2-5b19-5c81-2fe12dc937b7@quip.cz> Date: Thu, 28 Oct 2021 17:37:33 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Hg8p229Srz4c8F X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 28/10/2021 16:44, Ed Maste wrote: > The smbfs(5) filesystem supports only the obsolete SMBv1 protocol, and > I propose removing it for FreeBSD 14. I know the CHERI folks have been > using it but they plan to migrate away from it. It was broken for > months before they fixed it, so I suspect nobody is using it on > contemporary releases. > > I have review D32707 (https://reviews.freebsd.org/D32707) open to add > this deprecation notice to the man page: > The smbfs filesystem driver supports only the obsolete SMBv1 protocol. > smbfs and userspace counterparts smbutil(1) and mount_smbfs(8) are not > present in FreeBSD 14 and above. Users are advised to evaluate the > sysutils/fusefs-smbnetfs port instead. > > A similar notice would be added to the smbutil and mount_smbfs man > pages, and manu@ suggested having the userland utilities emit a > warning when they are used. > > I am interested in comments, objections, or reports that anyone is in > fact using smbfs. I am working for one company where smbfs is heavily used to connect Windows / MacOS / Linux / FreeBSD (12.2) machines and we are really sad that FreeBSD's mount_smbfs does not support SMBv2 / SMBv3 protocols (so we are using SMBv1 with all the risk). I tried fusefs alternatives from the ports tree in the past but it never worked as is needed. From our point of view smbnetfs cannot replace mount_smbfs. I cannot found any good examples of how to configure it to mount about 20 shares from /etc/fstab on boot as user root from different hosts with different login, passwords and mount options to defined mount points. Everything seems to be very differently designed to work for non-root user with configuration in users home, not system wide and mounting in some strange hierarchy. (and bad performance was cited by many on other platforms too) It was discussed in the past in some other FreeBSD mailinglist that it is not so easy to implement SMBv2 in to mount_smbfs. But is there any possibility to make it as some sponsored work? What about FreeBSD Foundation? There were some paid projects in the past. Or some other bounty program. Is there anybody who have the skill to implement it if there is good amount of $? If I am "well informed" FreeBSD is the only widely used OS not supporting SMBv2. (MacOS, Linux, Solaris have it supported) I will be really glad "if somebody can fix it" in the base. (or at least document how to use smbnetfs the way mount_smbfs is used) Kind regards Miroslav Lachman