> From: Theo de Raadt <dera...@cvs.openbsd.org>
> Date: Sat, 13 Jan 2024 07:39:34 -0700 (MST)
> 
> Blocking the timeupdate in ffs_sbupdate() will be difficult.
> 
> It is probably easier to have the BOOT kernel learn the time (from the
> true root filesystem), so that ffs_sbupdate() writes back the same
> value.
> 
> That means either an ugly way to reach inittodr() or the userland code
> in the bootblock could read the superblock and settimeofday().
> 
> But it might slide a bit..

I'd say it would be better (and easier) to have BOOT kernels not
update the time in the superblock.  That would closely resemble
whathappens if we write to the filesystem in our normal bootloaders.

Reply via email to