Index | Thread | Search

From:
Klemens Nanni <kn@openbsd.org>
Subject:
Re: installer, rc: unify random seeding
To:
Mikolaj Kucharski <mikolaj@kucharski.name>
Cc:
tech@openbsd.org
Date:
Thu, 8 May 2025 12:55:50 +0000

Download raw body.

Thread
  • Klemens Nanni:

    installer, rc: unify random seeding

  • 08.05.2025 15:43, Mikolaj Kucharski пишет:
    > On Thu, May 08, 2025 at 10:00:57AM +0000, Klemens Nanni wrote:
    >> +	chmod u=rw-t,go= $_bootseed $_hostseed
    > 
    > Explicit chmod 0600 is easier to understand for me. Why you decided
    > the above way?
    
    Absoloute modes only convey the final permissions, not the transition,
    which is key here:  sticky(8) bits are rarely used, especially on filess,
    so looking at 'chmod 0600' makes in no way clear that stripping it is
    crucial point of this command.
    
    For me, symbolic modes are easier to read.  Here they show explicitly
    all aspects of the permission change.
    
    One can always add a comment, but I think this way the code speaks
    enough for itself.
    
    
  • Klemens Nanni:

    installer, rc: unify random seeding