[systemd-devel] should random seeds go into /var/cache?

Jason A. Donenfeld Jason at zx2c4.com
Mon May 2 15:31:53 UTC 2022


Hey Lennart,

On Mon, May 2, 2022 at 11:19 AM Lennart Poettering
<lennart at poettering.net> wrote:
> I think /var/cache/ is not the right place, because of the weak
> persistency guarantees on it. i.e. /var/cache/ much like /var/tmp/
> means "hey, please keep this, but it's OK if you don't". I think
> that's too little though for the random seed, because if the random
> seed is not kept it's entirely useless. There is no need to keep a
> random seed in the file system if it would be flushed out on each
> boot...
>
> /var/lib/ otoh sounds much more appropriate as it means "please keep
> this", and that's exactly the persistance requirement we want here.

Alright, thanks a lot for the clarification. Seems like a reasonable
argument. I'll keep things as-is.

Jason


More information about the systemd-devel mailing list