From nobody Sat Jul 13 12:02:52 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 4WLnCg10FKz5QfDj for ; Sat, 13 Jul 2024 12:02:55 +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 4WLnCf6NCyz4Fq9 for ; Sat, 13 Jul 2024 12:02:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720872174; a=rsa-sha256; cv=none; b=IkVKwSQ9LTJWAL1TDO8gudJH8c5Wxd9jbUjhnM5FxWa4ttVJLNQ1bzbxuePCA7Hk+sRnGN 7VddaQ/8jHWVtHsBHdLykhuRIdNnzlxNFba6vYnwHKgKtTeIIabbtpdSbygcryU3ofYeub zan/aqMpOTE6fP7cyMOiP9/Dy7nVJigAT+OOlBIpZ2qCJroXf+8IM5a9ukmZHqES19ja+/ dDdK1WKCNOnD2/QUlsT08P8CjNWYvZ5oK1DNqe2ARv1j2/SNlpNql0c+7OsCM86/HmJlnV qdDwnBTV3U4rEw9tl42frrqL3tRxGjN93qrE0KPdxRxzLNMz4JpbMa9u2kDOqw== 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=1720872174; 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=G9oJMS8ap4ZTf2YwMsr1roMyX/hmZ39Yai9m7UjG3sk=; b=TdzSGVG0XDDpxW1rJ/kiso2Dt1WyvQbBf1Sia/kfoPCDGwlYqmh8DpS7zN1Wqs7OorJfZ7 dpwMX1R/a3g4OqlLL4GwlkVqRTCD4Q+XxyuDZDh66OvMPnTgLCvuYP9WiMCqbgBQzyx7m5 S2JZ2LgSoaFKXi08ZXYPX2gv0YBmx+S3EC5YiD84mMTX3JQz0gmjI5GZ1W2/dKQWkBBHwQ dHTwmxKPvZ58Dd/LolA2u+QK5cD2Tkcuwh9uQrwdbBRU8OeTV9Asw7IoS3ZazvIPaCPWuY G7jABaForNG2+7EfksBGYOryB5YOONb/bqiUyldS8qQcJMdE3XkXiqIEDARIWQ== 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 4WLnCf5zgHzQcQ for ; Sat, 13 Jul 2024 12:02:54 +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 46DC2sG2073440 for ; Sat, 13 Jul 2024 12:02:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46DC2sbi073439 for bugs@FreeBSD.org; Sat, 13 Jul 2024 12:02:54 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 262180] jail escaping via jail-friendly nullfs Date: Sat, 13 Jul 2024 12:02:52 +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: 12.3-RELEASE X-Bugzilla-Keywords: needs-qa, security X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: monwarez@mailoo.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: 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=3D262180 --- Comment #6 from Thibault Payet --- (In reply to Thibault Payet from comment #5) Note that this does not work on ZFS if each jail are in separate datasets. = See the result when using a dataset for /j zfs create zroot/j zfs set mountpoint=3D/j zroot/j mkdir /j/1 mkdir -p /tmp/a /tmp/a/b/c /tmp/a/b/c/test /tmp/a/d mount -t nullfs /tmp/a/b/c /tmp/a/d cd /tmp/a/d/test/ mv /tmp/a/b/c/test /tmp/a/b/test ls -al ../../../../.. Return ls: ..: No such file or directory total 2 drwxr-xr-x 3 0 0 3 Jul 13 11:54 . drwxr-xr-x 7 0 0 7 Jul 13 11:54 1 And ls -al ../../../../../.. Return ls: ../../../../../..: No such file or directory --=20 You are receiving this mail because: You are the assignee for the bug.=