From nobody Mon Oct 20 16:10:18 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 4cr0ky68dlz6Cg51 for ; Mon, 20 Oct 2025 16:10:18 +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 4cr0ky5Sp5z3ShL for ; Mon, 20 Oct 2025 16:10:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976618; 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=w30HN+k0FpoPJJMzgTMPJSfOwG3xhYKBIKTTiev3Qr4=; b=ehHYlv+OMTstSHdcEqX9XtBCc/DyHpjEuXB00h9ZnHMheom7NFNCft2dVgISyJ2XnekD8M n4mxXdz49htKiRoSRO3yiOcBsgyirs0Ykyy/HFlU0rdMzK4LvkUbFiuQlAE+eMBJkgpeK8 yoSiBJEKVhIOzjprviT0Cg7CQ9lWvifXRuPxm47maVV4mYvbSm0RWjA0SMUIR4RebIpsbp bukRTYBGnsjqCzORofGfhrgLIbXr/zpffWaMp6iRvjwV7Ac3brBr3HqCXKcE74Uo2RzsS1 Ry5QO8NYob94/cTGmp89mD2wOsimOqmmqKk1BFEiPweIRoUx6W7Hn+5ZKx9ppw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976618; 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=w30HN+k0FpoPJJMzgTMPJSfOwG3xhYKBIKTTiev3Qr4=; b=LY6UB459Rbojsk09I0xgJrSwHSW3/VHixm1lEzfxzAewQ/x11LEUzcKSSkQ6NereOQECg4 JDRnXNb9RzW0/eYdYJOVOuV24Mtk+vrkZtHmWV1Zjd4HgBPRSA2dimwxYTCO/3OOp3RK6I ZKJmbtBfwh7gV2UBXd12Gn+bm0c2H69KtQMtoY3oZaYijAHYqF9gsjaHZQGX/CkMoZX0Nj xx/YRIOjwVY78CWPp0f2PGNFqLFun/ap90qNtD/tlLyYLCIphq8bYm8f4P097j3MUGiRcD CjoFoqqZla3ioMMhxQOaHCYESBkpq/mUJjTnFtVRYF9o7L5NaInFDbZyBPHTUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760976618; a=rsa-sha256; cv=none; b=bba/XYnuHZvjrjkpbnbSYC1DPG0b9k+Xk/0N2MxQ3p91r6I7RPHy8dnmm2X9UtSOdeUJ4B 0Bzj0lEWE2upRxC27MtDkVEK2J7PNNIHTTJJfZ1mD9YlCHvhOg1OLqRKuuUaO27qTlDKmU RPVVTbbi0XD0A4aDA1Q61G3ta/6WgjJqH8tVh/jqlHGBkMCdSPi4Ndt1QGpiAl4XEnEsH4 oTUkzn1boOvRCrQD+UEMovIFZ0vHYou7b3matc0FXvVcOnsw3tT9NYVPY1djthNQurT/AE 52UrelvAAXhOAkQ3qV+lzchBuj+aRXlqtLJx3G9Ck+UTXWH/sRJbdL+uJkPRJg== 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 4cr0ky4rsRz4JR for ; Mon, 20 Oct 2025 16:10:18 +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 59KGAInZ035407 for ; Mon, 20 Oct 2025 16:10:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59KGAIo8035406 for bugs@FreeBSD.org; Mon, 20 Oct 2025 16:10:18 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:18 +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 #8 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfa2e886206f41b4ce652377a6da163103= ef25351 commit fa2e886206f41b4ce652377a6da163103ef25351 Author: Jose Luis Duran AuthorDate: 2025-10-17 14:34:55 +0000 Commit: Jose Luis Duran CommitDate: 2025-10-20 16:04:35 +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.=