On 2026-01-06 16:07:36, Manfred wrote:
> I have been switched from Free- to OBSD since a few weeks.
>
> I get the daily insecurity output
>
> Running security(8):
>
> Block device changes:
> brw------- 1 root wheel 4, 64 Jan 6 14:27:32 2026 /dev/rootdisk
> brw------- 1 root wheel 4, 64 Jan 6 15:15:26 2026 /dev/rootdisk
>
> I haven't changed anything conscious at the permissions.
>
> Can you help?

This is an issue with the 7.8 Release.
The problem is in /etc/rc.
rootdisk_nodes() (re)creates those files every boot.
There is no technical issue, only the annoying emails.

You have two options for solving this.

1) Download the fixed /etc/rc script from
   https://cvsweb.openbsd.org/src/etc/rc
   Look for Revision 1.587 and click download

   Use "diff" to compare your download to the
   installed /etc/rc, the only differences should
   be version line at the top and lines within
   the rootdisk_nodes() function.

   There is a newer rc version available but it
   has changes IMO not needed/wanted for 7.8.

2) Without touching /etc/rc you can add a line
   to /etc/rc.local to reset the date on these
   files so the daily script doesn't report them
   unless they really do change.

   touch -r /dev/sd0a /dev/rrootdisk /dev/rootdisk

   But as Stuart replied to my original message
   "replacing rc might be better than an rc.local addition that you'll
    forget about later.."

Reply via email to