From nobody Sat Oct 12 20:36:08 2024 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 4XQwHv0Tqlz5YwvX for ; Sat, 12 Oct 2024 20:36:11 +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 4XQwHr51XMz4QgN for ; Sat, 12 Oct 2024 20:36:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728765368; 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=VLDRkTt/wsgdYXqmoEkyA44YvkNP6biWNUV/KTUYnMc=; b=KGoj8KYV7W9SKtW28EjJ6CqJPidIPwFldSGcxN1N6zx5TRg875gfFs3WvQe1iiYBWmrFYg 0ZKNyQAhQjDuVkzqcMGtUaNiB8hD8hY46dWxobjR0I3gTc0guUdbSV8YcbMewuki3xPEQR KZuyuB7wbE4npc4d1n8vHYSMHlMbriuebFXayHaRCw/63gQG9yJ+clnTwxBWAfpdf6yAXO 9pAaWaD2Uxcb1idqIky9VfeWm5ffjEiKRzvArcH0AZ4r77T/82gLXrE/L7mdz1lZv9WXJu OeKdQZdPOistrKk0Vwl/w7Ww+orPIZzcZc2o/LMHT1SILLzjQm4njOnIhn4Y4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728765368; a=rsa-sha256; cv=none; b=VYdjRPtdIY9ibw4UbAbpUPo2oOU2huLBvkKNXMWWZPz1SIep4q3T/4mxzh8bWpZR8Bwf7w NwNbI5Yw0SsmfWrCfKWwD/DTCTpd0mNV6p1TXYD6q9eZmfFY6zazKUz+X1NiSZSCSUv1R8 lr4/CRjrPfZ/gcOFA2gyHbFoGTsv2Y1IOwDc7xbAD97Iy2Tnc0NzdBZdRxlG/1U+IywWf8 9LMCnMOLq6dEZWTTblVAocJkDGgxDwvOA5IZKzbSvlNLfOLDqBQ5plkGM8nL16lxsCU+gv LZOJeKlq1nfoQ2i14Y89Ktjn/0PGn9yiBzFXRgKt/+5JVyzCpkbcnS1DfmGwTA== 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 4XQwHr4NPFzPv2 for ; Sat, 12 Oct 2024 20:36:08 +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 49CKa848046803 for ; Sat, 12 Oct 2024 20:36:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49CKa8gT046802 for bugs@FreeBSD.org; Sat, 12 Oct 2024 20:36:08 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 282041] nullfs file mount from within jail does not globalize paths Date: Sat, 12 Oct 2024 20:36:08 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: phil@krylov.eu 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 attachments.created 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282041 Bug ID: 282041 Summary: nullfs file mount from within jail does not globalize paths Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: phil@krylov.eu Created attachment 254190 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254190&action= =3Dedit A patch for the wrong nullfs mount path in jail Consider a jail with enforce_statfs=3D1, allow.mount, allow.mount.nullfs. # jexec myjail mount -t nullfs /etc/passwd /etc/rc.conf # jexec cat /etc/rc.conf .... (passwd content). The mount is working. # jexec myjail umount /etc/rc.conf # this fails! umount: /etc/rc.conf: unknown file system # jexec myjail mount -t nullfs -p | grep rc.conf # mount is not visible in jail # mount -t nullfs -p | grep rc.conf # The mount is visible in the host environment without jail prefix /etc/passwd /etc/rc.conf nullfs rw,noatime,nfsv4acls 0 0 # umount /etc/rc.conf # umount succeeds from the host environment without = jail prefix The attached patch seems to fix the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=