From nobody Thu Feb 24 23:15:24 2022 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 0857819E7A8D for ; Thu, 24 Feb 2022 23:15:25 +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 4K4TK85NRkz5217 for ; Thu, 24 Feb 2022 23:15:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 98BD61510E for ; Thu, 24 Feb 2022 23:15:24 +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 21ONFONq043563 for ; Thu, 24 Feb 2022 23:15:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21ONFOoI043562 for bugs@FreeBSD.org; Thu, 24 Feb 2022 23:15:24 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 262179] Prevent jail escaping via shared nullfs; option to disable UNIX domain socket binding Date: Thu, 24 Feb 2022 23:15:24 +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.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: firk@cantconnect.ru X-Bugzilla-Status: New 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645744524; 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=1AsM2OJWfa2LtogQYAJSJnNOaQnpAc1T2EVSDv+HBw8=; b=wQ1HhEsxCahRT/UTeFW+qyo/DbjpJs1UwPG8u0pLj3sEFO7I7/Cva01lsulUKy+qBHJsOM +9KQub7u/43366GSvxfuOTpn7uOC+Uqg8phFH/u6AbNozNUVUDVsFaSgijP/8wOG58cDAT 4VaMdCMu2BD/m0gBKNBsukYbYZwyUMlpBAuFKcOS0q4Yuiia5AOm8RodiHDjfN/0tdAU8g JpElUpjMclx9gaprHfc+d09wJkqhjFWsx4iZv85H4rKK/VLa3VYX6iin2detQs8RJ8YP5c JK0XB9iZ1JVq9TLHUV+++iYi4clrS8CIlUFUA2/rXR+iTu/7hazRy/TyI7BiJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645744524; a=rsa-sha256; cv=none; b=Fm2OIvQyzrQxSN3GBEgX1QfimELuTmbkwV0xw8FjpgNum9r9/EXK37HZYukKH2d1H7OffJ qVuifZWTFLVqJNJ0SHZFhea42JZCISiyQZdt53avQS/f5xrKOTD9dWP7yxR5fzHSk1NZoS WcGLkbXplsTPNe2hxCDl6zav1cJW4dhQCPulpAw8GpnOaXniAMpuJXxSMLI5Aj8yUR0cRH CusihIwo22s+J/6aGI06vTB3SInXzM3n8RUDQGPs/drGpedfCzH879twHJ4T2dAs1/5dg7 9baxYhzSO1fhtvApufYVQ/YrZ0c5ogyd32j+JOUwgDuvm/erzp1R3QdHFt/94Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262179 --- Comment #6 from firk@cantconnect.ru --- It should be noted, that there are another ways to escape jail via shared nullfs when it is done badly. I did not tried to fix them in any way, the p= atch is to fix jail-escaping only for properly configured nullfs: 1) both shared mounts have exactly same underlying base directory 2) underlying base directory for nullfs is placed on a separate filesystem, otherwise invisible to the jails. --=20 You are receiving this mail because: You are the assignee for the bug.=