From nobody Thu Sep 19 17:52:51 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 4X8jm40Mzsz5WjJ1 for ; Thu, 19 Sep 2024 17:52:52 +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 4X8jm35d4cz46hn for ; Thu, 19 Sep 2024 17:52:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726768371; a=rsa-sha256; cv=none; b=SmiHWu4BWRQ/V7I0BSl3sp7czzkFIIMovzW54IvPJRUyP5Rz7y6NytCySFqjmgar6k0iTS Mw/CXG2BoXYYI3diIMmKpS7gvynacEliR3hBhcAlysLCCpXDKNDPuHM7U5FGReB49vpWoB iJX0Ld6AC8TudrQdFcfkjQjpFaPZcCmo5MrJp8cc2WR51BrOFv7KPJ1Gnp85XIBuL+Y2DR X+ST/7x/N1ikhZzGuSZSxrvPg9miqZ/ftU0pJ7A8FJoBxWJ50ETfwFLTi+IXfNnVetwcco UDpZvi624JJHrWgIKZ4TDErUxt//tGgd5gQ8w8qUr8hcbzHdoVx3pnAC6MuV5A== 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=1726768371; 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=Pahg6nrtGjN/8a/eyVkoHaMUIh/ensDjJAanKsGZz2I=; b=HFGPKPJ69Rmy2w2BGFCNPs2z/fUPEhIBIUp3KHSJ9o3qqFe0lXET/nbnXLE9nT1KH/otZq AXP9cilT3+xDpfH0DhZ4kKmOeLnc69tcXao2nRGLPXGELUl+ZaZJjhgSy558ZQN25/t03g ourUnS0ycMZEbo9N6jlMgpHksYwX05SXqoImt6M/+YD0Fht0d6c3XI6953Em9il/dBdCh5 GuTl44jvImgL7HJvZQbYPwaE5wvwC7AOC4PpJGqooNwdReuVUUfkxR7QX+FlhtGsNBE+OR +h1CXIje6A8ukn91JCiUa1zGNdBWd/q5RR+uNKSDOFfLeNvrxu/4sd5p6jWHmg== 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 4X8jm35FDDzFx5 for ; Thu, 19 Sep 2024 17:52:51 +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 48JHqpnI084725 for ; Thu, 19 Sep 2024 17:52:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48JHqpXt084724 for jail@FreeBSD.org; Thu, 19 Sep 2024 17:52:51 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: Thu, 19 Sep 2024 17:52:51 +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: jamie@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jamie@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution assigned_to attachments.created 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 Jamie Gritton changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Closed |In Progress Resolution|FIXED |--- Assignee|jail@FreeBSD.org |jamie@FreeBSD.org --- Comment #15 from Jamie Gritton --- Created attachment 253669 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D253669&action= =3Dedit Hack to set the zfs.mount_snapshot parameter It looks like I implemented half a solution, which was worse than no soluti= on at all. I change the description of the parameter to boolean, without realizing that continuing to expect an integer made the kernel reject jail(= 8)'s attempts to set it. I must have tested my fix on a mismatched kernel and userspace, or something. All is not lost, as there's a hack available to work around this. jail_set= (2) can still send an integer, even though jail(8) and libjail(3) will try not = to.=20 I've attached a small hack program than can do the job. You'll need to run= it after the jail is created, e.g. with the following in jail.conf: exec.created +=3D "/path/to/setzfsmount $name"; Unfortunately, this workaround will remain necessary until the kernel is fixed, probably on the next release. --=20 You are receiving this mail because: You are the assignee for the bug.=