[Buildroot] [PATCH] move random-seed from /etc to /var/lib
alex.suykov at gmail.com
Fri Mar 13 00:20:17 UTC 2015
Fri, Mar 13, 2015 at 12:01:28AM +0100, Peter Korsgaard wrote:
> >>>>> "Alex" == Alex Suykov <alex.suykov at gmail.com> writes:
> > In case / is mounted read-only, /etc is likely to be read-only
> > as well, so the seed will not be saved.
> But if rootfs is RO, so will /var/lib then?
Common (I think?) setup is to have ro / and rw /var on some
kind of persistent storage. This way /etc typically remains
a part of read-only root.
Buildroot does not support such layout at present but with /etc/mtab
and /etc/resolv.conf already out of /etc, it's one step away.
> I would rather get rid of the static random_seed file instead. Seeding
> all Buildroot based devices with a RO rootfs from the same 512 bytes of
> data can hardly be helpful for security.
Agreed. Currently the initial file is only used to check for rw filesystem.
That's not necessary, and easy to fix. Sending a patch.
More information about the buildroot