From nobody Mon Jan 03 04:03:00 2022 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 C0A4F192EA1D for ; Mon, 3 Jan 2022 04:03:00 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JS2CS3mXlz3N5Z for ; Mon, 3 Jan 2022 04:03:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 628E61EC85 for ; Mon, 3 Jan 2022 04:03:00 +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 203430R4061194 for ; Mon, 3 Jan 2022 04:03:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 203430Jg061193 for fs@FreeBSD.org; Mon, 3 Jan 2022 04:03:00 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 260894] Nonexportable file systems are usable over NFSv4 Date: Mon, 03 Jan 2022 04:03:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641182580; 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=tZJEK5RcDmh6KOjpyjkkvxqovXWVfX+F/UU5TfHBpu8=; b=Y2laTnbyz84IcUF+5DRQqkM2RBU6FQAsizFzXDWG69ul5vaE9KGQViLpktAY+9Lvdq/IWE ubxjA3w+977H4NmMuBrPWFNzUeeuqIN7LXerE2+tu0rVN3lrRD092LQQpBqVl+iRQQfY1i P2qQuCgxhdAMoatGapNacL0Es5BCMdUYcslF6CLMjsKTf3ycpYYT6Ax5DsiNa8Vhme4dkC OAUVtaTlHatkj0QkEQqg/t46Q4OwOz8wOB1G+EJux0sBwUHrzRr3JvD+QsZxYbV0Ahj/od p09dF9pz3AkpO8HFZbqvGYrARTz3PHPPnUu/V33IqNIR4RKCidaghI9WmPC2uQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641182580; a=rsa-sha256; cv=none; b=NEsmSKGrN0NF4/RzAobRMeVQmTZuNJ+iNpS1R/GUJommGreD2tsJ5Tb6vZM83bGGxlwqlX eacFy+W/EsH/3u4OHkJHh2HyGVJ9Ruyfr/W1vFfpvC8KqjFbeDroAfwnYG0JqaLTCrNDpi k5pQ66U9I8gapepvCW+IXAeNWbavJXlH0RR7OxKKVTpZuA8n4pPIhng+ztALA6BigJNHNY k1wj0VjSn72DwrgRMbZugyM5187Dtf1kGcnK+odN10cVhrs1cyyTu9PNRGOKPztWdvfI6k APxXuDQfHFN3nFuqRwKMyI8AP+xT3CB2WJWh2gw1fUVISdTR0ontgPQeo6Eq8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260894 --- Comment #1 from Rick Macklem --- Hmm. There is a hack that allows certain NFSv4 operations to be done on file systems that are not exported. This was done so that the tree (which, unlike NFSv3 can be multiple file systems) could be traversed to get to the exported file systems. (Lookup is allowed. I can't remember if Readdir is also allowed.) Try doing something like writing to a file in /mnt and see if that is allowed. Also, try making /mnt the root in the V4: line on /etc/exports and see how that works? (If you haven't looked, vfs_export() is only called after VFS_MOUNT() returns 0 in vfs_domount_update(), so the kernel exports should not be on /mnt.) --=20 You are receiving this mail because: You are the assignee for the bug.=