From nobody Wed Sep 18 17:21:23 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 4X856C2WvBz5X6J4 for ; Wed, 18 Sep 2024 17:21:23 +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 4X856C1NgLz4bVv for ; Wed, 18 Sep 2024 17:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726680083; a=rsa-sha256; cv=none; b=VJ6wehvn5HCbZUhiDLY5eZgp+v/6GHDQLhJr+vUJV8kJua7IpQbPGQlfqMN1WVRKOXL7rd pEQG/LZnYVOThRsydwwOCYnmrUhrYDJqTWYxwF5DP31It75QEc43IzDc4r2b4LoNb+9ygK L68vXBelHLumQoqNLbqq4eEsJkX4rCQZMR5j7zsZnLegm6aBEeHiycaHVBZCIOp4tkBcqY 7jW177aILmLaMFu8gX6Ghvfl4yytnz8TcAaWaA5QRk3hi5ossMzCieV6gtHx+4bCCJdHW+ GmmAYeP+gePFXARARb8MTwp0eWH+xespQ9NT/9zPbhjW6+hUZPnhIo9VwgCoEg== 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=1726680083; 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=6F7cjcnxqMJhbLK1OD4HvfqLWXaPV1sNtqLfLmWOTiM=; b=IKosoSofOEdrAVpWZLugfT4uVzYFprpZUlG8YSBl81EUwT/ghTMZqjakZkQzqFuWDYKh4L bupcArCZ3aVX+AlLQ2VCjGGaR5vU72LkYYSnaAXJ55b7UJ8Lyh9dLqeW9gTa+uPSbcfYQN KUGCdmzSmR1nKFyi85xBhGrm8dTX4VTH76lWsdrzOkRJ7iMvdLKAzVbDjSKyKnt5XvMHqs A0RTQiJJIQG1pErYEGaPGnBbE/ghXzJ2/2mcOeOLQ1QoFJLOXsDBcxnfXHUjSbxqo0jbZI I0n/S6Vb3l6a4hHZwZhSu3nyS3tijYF4DqQu7reArZp3g6pnM4GYnhG69UBuRw== 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 4X856C0sSxzWjJ for ; Wed, 18 Sep 2024 17:21:23 +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 48IHLNvN031653 for ; Wed, 18 Sep 2024 17:21:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48IHLNm8031652 for jail@FreeBSD.org; Wed, 18 Sep 2024 17:21:23 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: Wed, 18 Sep 2024 17:21:23 +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: Closed X-Bugzilla-Resolution: FIXED 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 #14 from Andrew --- Sorry to disturb again, but I've just upgraded my fist server from releng/1= 3.3 to 13.4 and all jails which I configured with the parameter "zfs.mount_snapshot" failed to start! If I start them without it and then I try to set it on a running jail, I receive this error: # jail -m jid=3D12 zfs.mount_snapshot=3D1 jail: jail_set: Invalid argument I guessed that this parameter was no longer needed in this new release, hop= ing the classical behavior was restored, but all snapshot are no longer accessi= ble from the jail! :( --=20 You are receiving this mail because: You are the assignee for the bug.= 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.=