From nobody Tue Jun 18 09:03:09 2024 X-Original-To: jail@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 4W3LPp6DNTz5NfQW for ; Tue, 18 Jun 2024 09:03:10 +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 4W3LPp4hSyz4slp for ; Tue, 18 Jun 2024 09:03:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718701390; a=rsa-sha256; cv=none; b=oFDHyfEVGW/WW/2hpdzH9/A/pjhNunxpGYG/3BmvhvwqU2l5m4LhQ5ITtPwBISPspavAQn 7+ZIXBG8nhgkUv5NDsdXr0u9w2e6VFNHRx/tLRaBk/kuBr/Wf+g2dd9g2BcRm8KiTjaYQP bua/4SP0ZRg2ViL9fBJ1zxJzPZIeLa+RnnPnAWoXgrEGUWypJ+RGraTb7jBsLaeVve95Tf YQuNzWa3PN41Oyix+sHvrJZGn/cn92d4LWQMQnqoTJ3A7NUoaanR3jqcYJLNU17bcpq023 BTeDvKGhd3qJf+2yWEbkTURluUx1LIwVT3hMtE27hJAsSJxHxX/PKxGFJRjgxw== 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=1718701390; 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=YZNmEuhS2ArvwrjgJub9g3kbr6mRwAUwhuPk1x7UeEk=; b=hzAihJcIeHopdZ7OqnPoPfdXF+Boz+tps5vfei/7ZRgLfzxxcAb8TGjccuj6hvFq+0OpwK +YA0iRBkz0V4eqXr0rwwuMlRUryTd/ciKENChtTH4TLGZkJeqDw9WWN9XgtLPIyKtLU27V luHgn1oQ8dRikBXgtlkmXU7+hkT9BBqq917WUkNcdqCfAm+wuieKiJRRgsOfMkGTBDIK2P 0TzjQQgJ2NT6EIYW0ac627tZcb8uoPez76fuF+8idh/nhG/vWD2jkPFbELpgs3CdhAWPp9 54HedrB22Op7/m+NU4zyeW6mjzuZDUND7rs4gEgEwHMoj4ncXxkR6kyrwQsp1g== 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 4W3LPp4GsNzsQj for ; Tue, 18 Jun 2024 09:03:10 +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 45I93Ag6047811 for ; Tue, 18 Jun 2024 09:03:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45I93AvM047810 for jail@FreeBSD.org; Tue, 18 Jun 2024 09:03:10 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: jail@FreeBSD.org Subject: [Bug 274263] Access to zfs snapshots within a jail return EPERM after a while of operation Date: Tue, 18 Jun 2024 09:03:09 +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: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: andrew.hotlab@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@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: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274263 --- Comment #6 from Andrew --- I just managed to find the solution while I was asking for help in this Mat= rix room: #lobby:matrix-dev.freebsd.org @dch pointed me to looking at jails parameters, and I discovered "zfs.mount_snapshot", which was introduced by this upstream commit: https://github.com/openzfs/zfs/pull/13758/files, and ported to FreeBSD by t= his one: https://cgit.freebsd.org/src/commit/sys/contrib/openzfs/module/os/freebsd/z= fs/zfs_vfsops.c?id=3Ddbd5678dc You can find more info about this in Bug 260160, which I think this one can= be set the duplicate of. Personally, I think that "zfs.mount_snapshot" deserves to be referenced in jail(8), or maybe it should have been set to "1" by default, in order to preserve the behavior of jails in pre-OpenZFS FreeBSD versions. Such a PR w= ould never have been created in both of cases. --=20 You are receiving this mail because: You are the assignee for the bug.=