[Bug 272552] Fix /var/log/messages and /var/run/dmesg.boot permissions

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 Jul 2023 20:46:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272552

            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=243439&action=edit
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?

-- 
You are receiving this mail because:
You are the assignee for the bug.