From nobody Thu Aug 04 09:22:18 2022 X-Original-To: bugs@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 4Lz3Cb1DMMz4YWGC for ; Thu, 4 Aug 2022 09:22:19 +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 4Lz3CZ6bhHz3mZn for ; Thu, 4 Aug 2022 09:22:18 +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 4Lz3CZ5gRDz1PFb for ; Thu, 4 Aug 2022 09:22:18 +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 2749MItM073888 for ; Thu, 4 Aug 2022 09:22:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2749MIgM073881 for bugs@FreeBSD.org; Thu, 4 Aug 2022 09:22:18 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: bugs@FreeBSD.org Subject: [Bug 265625] .zfs/snapshot directory is always readable (also by non-privileged users) Date: Thu, 04 Aug 2022 09:22:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jbe@magnetkern.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659604938; 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; bh=CAOrWz3eF0x0Y76OjbOdxBhtGSLxaeeR2MXLtKldBoc=; b=aC95KUXHp7ME0qXYeXk8AAmmaen4Of91SEOnEuEgc6jVMM89vr19iTM5I/mt/a1RwjoaDU 10GVZTQRH+lv+HlFpHPnsYFLI0jjvziPDCGuz524CceWt0gnxUYwKjy9mJ27UKVKhrzQNE 4LK1c+cRriB02ZGc6/wSSo82+te0NIw/6BrgE3n4gMhupTL4OJCsAKv5oYgeVzuzIUevSg yLVr08/KJlR1928PICqbGNavM5kY0PxPH9C5fOh80QBM/oYbkWoK9s/UaN4eyPTimKFjzh +5UATl43QfVYFmnulHYTX0vp/pXff94VOyOQ7NRq1OLOKsTGNIUy/swwpU0YRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659604938; a=rsa-sha256; cv=none; b=USk64sAH67HLin1QijdyxqIPsFBBjr70pqX7Tx2uMDjjFN9yxzPh8zM0DA39eKrd9w3LVh RbYCuRR5zDbvXP7ZoNdKAdw6monhUDYYSdfuvTlEAETWK7z+N/ZqDyj92jWVmN1R3oUcv5 iEhvfOs4vCF9MZznxxtg6rsZKcO0dt+5uIYYbTzYNYv9/SirgqHjT4Ft2ZrcGNb2138GVz zkyqAXBbg57/uO/onyxM8crpSEq36tExK0WY0DX0nZz3yTRjlwl0INm+8e/TB/GqOlIbiC vWI2X1+tn7cnj5bNPyzK3giTCKuanoAWPCALX4fIfoieV4Ckf99dBWUPUCCAbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265625 Bug ID: 265625 Summary: .zfs/snapshot directory is always readable (also by non-privileged users) Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jbe@magnetkern.de The .zfs/snapshot directory of ZFS filesystems is always readable, also by non-privileged users. Since it is impossible to change ownership or file mo= des in a snapshot (it is read-only), this can be a security issue (only way to = fix a misconfiguration is to destroy all snapshots). Moreover, the behavior may be unexpected to users since the .zfs directory = is hidden by default (but readable!). There doesn't seem to be any way to disable access to snapshots (not even globally for everyone). The only workaround I know is to use mount_nullfs to shadow the directory. But that doesn't seem to be a clean solution and is e= rror prone. --=20 You are receiving this mail because: You are the assignee for the bug.=