From nobody Sun Feb 25 18:18:52 2024 X-Original-To: geom@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 4TjX7c51KLz5BkT0 for ; Sun, 25 Feb 2024 18:18: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TjX7c3dpjz47vB for ; Sun, 25 Feb 2024 18:18:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708885132; a=rsa-sha256; cv=none; b=OJbxsbFIbzXzwet7FiAzYbY40eeCdZNuy28bG1YKfaBWFpHHIw8KTb+SK3SWnuMaa8iPRC VoCFL61Dn4t+cejiMB5QxaegiyzvB1d+d0xk8tnay18I2HSLX9P3uOZvQgg0/nnUWsfewY FOpwJFjI0+OwanDHLIvH1UsKSDEWqfBwkfIciUhYAyvZXDHPGNYOz8E4/9HJ3jeL1Z8zT2 QCkq0iIm4sW35w6QuGOvz33UKSFW961rq9AzAraeHVeOOk6hYnlcDaYOt/kWvLl9rUf5uS tD93cOk2WKMLMB5TZymbap20JdLnrRxrkLV5Q6DU1QltMA/DmiIhXdodplOSyQ== 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=1708885132; 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=s7IpbH7E/VBYRGVVmooSWZJntR2j5OeARg317/QMnBA=; b=dcw6f47ez7qpFVJSUEec74/uHpnL199b5+WLhGYGRbZu4eqggjuxTwEohPxPwrPCQIyc+h 7A19lDHY+Rro5fBJFVHW6d9liq+sITrp8SAXeVXwibuABTPUeTucAsb4/4BxurDEu3SVBg OyfYfMrig921jGg/oQG+m9OxmTeqK4a1yc3KcJOHV5dlcz9w3yDrWISj2bGRJEfk4jFM6B Y4YRQ3Q24XQlrP1IxZo2RsI9Pqlnq9uSESgYfFvjbxgkxtvJ7MiOOlcZM+FXHk+wjz6+O2 31szV9D8c2imiSV9WwdNntlbdNNimIBcaRUTFWdMYmhkSvbBqFGnvh/OcpGW3Q== 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 4TjX7c2bMqzvRB for ; Sun, 25 Feb 2024 18:18:52 +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 41PIIqFw027720 for ; Sun, 25 Feb 2024 18:18:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41PIIqOM027719 for geom@FreeBSD.org; Sun, 25 Feb 2024 18:18:52 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: geom@FreeBSD.org Subject: [Bug 277228] Device permissions security hole with partitioning (/dev/geom.ctl) Date: Sun, 25 Feb 2024 18:18:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: security X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: imp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: GEOM-specific discussions and implementations List-Archive: https://lists.freebsd.org/archives/freebsd-geom List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-geom@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277228 Warner Losh changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imp@FreeBSD.org --- Comment #2 from Warner Losh --- On phk's message: i think devfs likely is better... otherwise there are rac= es. But there is no position data for devfs..=20 I'd just change the modes on geom.ctl to 600. Ownership is long gone by the time we get the message in geom. The only way to grant fine grained control= i think is with a daemon to proxie things. Operator can get what it needs wit= hout read access to this file... and we should change the open to requiring write perms.... but that's an incompatible change..=20 Operator is a super powerful club. Granting it means bad things can happen.= .. --=20 You are receiving this mail because: You are the assignee for the bug.=