From nobody Mon Jul 17 20:46:23 2023 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 4R4Yyl59Myz4myJN for ; Mon, 17 Jul 2023 20:46:23 +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 4R4Yyl2zWbz4K1W for ; Mon, 17 Jul 2023 20:46:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689626783; 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; bh=oIaaF06xoZGddtDXg1WR1IWXKTPCTEP37icWVQje6sY=; b=nu3m409g0n8eNf7u+qHPV4gY6VJjwieUlDWKpqjigf5X7MVRjxc0/H5uwzX6z/6RmDYy5A 3dLGSN79OSIQ3ekZplHnznYHEgLzkeoaK9TGdGjLziA6c9FeTN+lCZkWvnahe7QN+JBxzf Lc9klrzYazP7PhGnDFAFxv/1HMY2nGxMeg4UoC7jqZrpvzKLKiTyeObbgT3aCkJsDXKxlq GgxKh1QDFACJj+YrUfnnGbRck/EFO9atZwc6GQB090CVYG2NJwY153QR69Jj7DtFLdlcAk 8kv4xV1pMKe63rR0d/4bGOBQGAbIqR6smqna9Z/7jnsaaWCMTfL8G51h1OIO+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689626783; a=rsa-sha256; cv=none; b=BPMo7+BEsaHmFMt+8DZ0m4LDEkVvktMSgOUxGrRsulsAEjKrkJUCcbyVcLkYijcZOs/5km eJ9a3mA3bq8Tm1BarMIAjJ2ANiif9gAakyZ48h2GhWyr/v7gCc5G2gunpeeAlAC89wcmGW MCciNcL+qAXvWaodyLTu8LvaCvIAl6qDcwS+NElV9PamgbcV/6QEfr+5msVqXEiANdbk4f MwjC66pMzNQ/cVsdHxSynAHsQWVsAroHamadBuy+JqbsP98lp5w4gd2JTBWfe698w3+d1P qEh5+t5M0rvv1xR3D3eGab5wJJauExo+Jh+HHL8XCbwCfjKOLrhXppRjO1pBvg== 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 4R4Yyl23CkzdNr for ; Mon, 17 Jul 2023 20:46:23 +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 36HKkNH6096531 for ; Mon, 17 Jul 2023 20:46:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36HKkNAB096530 for bugs@FreeBSD.org; Mon, 17 Jul 2023 20:46:23 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 272552] Fix /var/log/messages and /var/run/dmesg.boot permissions Date: Mon, 17 Jul 2023 20:46:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: jlduran@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272552 Bug ID: 272552 Summary: Fix /var/log/messages and /var/run/dmesg.boot permissions Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: jlduran@gmail.com Created attachment 243439 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243439&action= =3Dedit Fix /var/log/messages and /var/run/dmesg.boot permissions If a regular user that does not belong to to the wheel group issues: % dmesg -a dmesg: sysctl kern.msgbuf: Operation not permitted However, a user may circumvent this restriction by either: % cat /var/log/messages Or % cat /var/run/dmesg.boot Set the proper permissions to both files. Fix relevant manual pages. Given that this has been the normal behavior since the beginning, maybe the= fix should be the other way around? --=20 You are receiving this mail because: You are the assignee for the bug.=