From nobody Fri Aug 23 22:54:57 2024 X-Original-To: fs@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 4WrFl60y6Gz5Tcpn for ; Fri, 23 Aug 2024 22:54:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WrFl5589Mz4hhr for ; Fri, 23 Aug 2024 22:54:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724453697; a=rsa-sha256; cv=none; b=fT7knr5eOuctC7Bg4XJ38o87rpIlOJsgznEJbhccuaiRduiQY4paS529rY3EfAz2b2Beq7 ADCuEWEy4z2B/M9hNZYEeP3BsSTa0MSs5hrmYSXrwdjIkP+6emN1cSIQzCQeTj7CLN3mRX AhcFxi70dOnxFQNXvkZdK2e/SzMdtJUT7W5LatqDi6gPpKJaE8KcYVBxHUE9127xZ+YLER SIY/aEboScmHFRnlVZeC20ggfcrPQh9UGC7YKQB6AKiNh/x5DWjr0mE5iyqtFMimD/e2Lw cW784fy5qPjLuizZAFLYDlmJ6cl/gyZ/aIoRNwl0QW3woVBEtNSs6YzuApjcMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724453697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZfS2hQhRBZVbY37ghb2Ac01LGQViYCXcaz3eXXP5d/M=; b=rnLe5uCeRzLuO5jwMpkb+udSkOPCrlf8rdst9KcfnTH05o4cYUay1mzh/FK3cH0LyxcOqH cnIRTWpNZ2bfq8gcLfSYlIvufq9vycIlw7BvB+sopq2Aaee1aMu4sccq/zb+zc9872c70q mdazOCemvouRcUFQnjJctWKv5QB/gnn52TdOurMxoCM0y08zifokJXHTHhcrHZKGuAO12u 0YYfmA6Z3uAMr5ThFiSMmc78qlzrnnIbejvKhd3dVKT2oVpg9DnlAVnkLY+YvwXyz+FL1a tJX/x/fbYQ9KbR4wbumZUvtfwtbRov74VQ/0g48mbWc5+KpN74O1NqVKltoTeg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WrFl54f3DzTD6 for ; Fri, 23 Aug 2024 22:54:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47NMsvNa045345 for ; Fri, 23 Aug 2024 22:54:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47NMsvJb045340 for fs@FreeBSD.org; Fri, 23 Aug 2024 22:54:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 281003] NFS client can open the server on ZFS with sharenfs dataset Date: Fri, 23 Aug 2024 22:54:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rmacklem@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component cc assigned_to version product Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281003 Rick Macklem changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Individual Port(s) |bin CC| |rmacklem@FreeBSD.org Assignee|fs@FreeBSD.org |rmacklem@FreeBSD.org Version|Latest |Unspecified Product|Ports & Packages |Base System --- Comment #1 from Rick Macklem --- This appears to be a bug in mountd. -ro=3D192.168.1.56 is bogus, but mountd does not spot it as an error. Btw, both of your sharenfs settings are bogus, since -ro is not supposed to have "=3D192.168.1.56" after it. All the sharenfs property does is autogenerate an exports line. It can be found in /etc/zfs/exports and should obey the same syntax as "man 5 exports" describes. (Althougn the sharenfs parser in OpenZFS should be improved, the bogus case should not get past mountd.) I'll take a look at mountd.c and try to come up with a patch. I am not sure what you were trying to do by specifying one IP address followed by ro=3Danther-ip, but you cannot mix read/write and read-only exports on the same line. --> Until you have the very recent patch in PR#147881, you cannot generate multiple lines via sharenfs. --> To do multiple lines, you need to create them manually in /etc/exports and not use the sharenfs property. Thanks for reporting it, rick ps: And never put a "=3DXXX" after "ro" for an exports option. --=20 You are receiving this mail because: You are the assignee for the bug.=