From nobody Mon Oct 20 16:10:19 2025 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 4cr0kz5zgWz6CgRN for ; Mon, 20 Oct 2025 16:10:19 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cr0kz5696z3SZH for ; Mon, 20 Oct 2025 16:10:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976619; 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=q5ctfLbtVV9qCduLb9cU8FaOeuSSRhPP6wLsPO3/U6s=; b=tFVFFHRTj88DGiXCdYm34OF/VfCZge1JPPn/zwYx9NKpx89dA0Ajlm3gmD8Qwp4eAHywIw yaPDWlU4pEMXZTw6ykW0lg5ts0M0aPiHPHfG5YLw+xEY6mDHf1H3ZhjnnNlMdINGQQQp9f IU3o2ROOX9cRLaPiW0y/F0IenkahYSk1YM80MzP2iU9bG78Xe/XTOgRP0sURKzQSaAMOCx sZ49d4wq8QqSzrcbyYUVcYgZsqMLtkYtXJYVOUmwRz46nn9yex/CVni3idAoRYIiWYRuzL tAC/01ewkYcBMG5if1dZ33eVzQZubchl3fMveyPWBhup3qz+fAEvN+jK9vWwVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976619; 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=q5ctfLbtVV9qCduLb9cU8FaOeuSSRhPP6wLsPO3/U6s=; b=QpgxMyc+EMhOsBy/Gt/Xk4HXAdob48V7YdxyKEy4oEK3OOOhnrjHlTMA319u8YshUTYwVd tdpSbMd5+uK1cxojaDJmb7E5lyie2BE2sRlhtNY/Y7YdNpbnbmWw1+oLfpKTWPvmeErEPY Xz7UISJiB+1V22K3+mwJ0EmyWIlmmnq7o4w469Fzpsq5p2kzkfXmFiKRk2nIvFXnoJY6Oo LIn69g/FP+6TDE7UeaDAU4nUYs81HSJEDDdr/XNXs1ETIIWGlR/VnB8h5nqv1kLR7dMcdO WRRuZi7YFU4IY/QZyiuMG3YXamk267hnJ5DG2nIS3FeBDY6nFNmPhFGhVVASug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760976619; a=rsa-sha256; cv=none; b=tuefjekhPggPOE7ODve9VE2j8qVKIa4zAqtjVXcMRRvZAZCH9+/85/jO+C2QjU4hkuf9h3 JmBhGI1RWzKR0o7Zn98CdiF5J/m1rLdfgHcszfRfUxxqA+ssJsL9XEhdcOK8N2/yZoySsr TQoMb39bInMiKUy3tvb2Wj+DOllPRqq5XAuw7TC1w8KATSB9I7Gjj58w+4/XXUWmJMbHGB FFAOHknVKa19fzag36nAetOtmRybEQ4YD+m3X16N9egPD8f4Dqxyl+Ce3eaxAO8az0wOmV 8q38yEvQXOP4NPz2pYSahuQkv+ronZ9gYJsWZiZpydNCcY3wcOF9fEmBSgubMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cr0kz4jy6z4xs for ; Mon, 20 Oct 2025 16:10:19 +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 59KGAJDv035431 for ; Mon, 20 Oct 2025 16:10:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59KGAJpk035430 for bugs@FreeBSD.org; Mon, 20 Oct 2025 16:10:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 272552] Fix /var/log/messages and /var/run/dmesg.boot permissions when disabling read_msgbuf in the installer's hardening menu Date: Mon, 20 Oct 2025 16:10:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D272552 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd8ddea0d4b0ad316000970987d26307e8= 4ce1efc commit d8ddea0d4b0ad316000970987d26307e84ce1efc Author: Jose Luis Duran AuthorDate: 2025-10-17 14:34:55 +0000 Commit: Jose Luis Duran CommitDate: 2025-10-20 16:09:30 +0000 rc: dmesg: Allow umask to be configurable Allow umask to be configurable. Being able to set the umask via an rc variable is useful when setting: security.bsd.unprivileged_read_msgbuf=3D0 As it allows a user to configure: dmesg_umask=3D"066" Without modifying the rc script, and preventing the contents of the $dmesg_file (/var/run/dmesg.boot) from being publicly readable. PR: 272552 Reviewed by: netchild MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D53169 (cherry picked from commit edadbc6ee95570627679f3bc14a1d5476d0ce339) libexec/rc/rc.conf | 1 + libexec/rc/rc.d/dmesg | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=