[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Create environment block safely
From: |
address@hidden |
Subject: |
Re: [PATCH] Create environment block safely |
Date: |
Thu, 1 Oct 2009 21:31:55 -0500 |
On Wed, Sep 30, 2009 at 5:54 PM, Colin Watson <address@hidden> wrote:
> If grub-editenv create is interrupted, it's theoretically possible for
> it to create an incomplete block that future grub-editenv calls won't
> recognise. It would be better for it to atomically create either a
> complete block or nothing. Any objections?
Be aware that this may lose security settings. Write-in-place is also
different wrt hard links, but it would be pretty odd for that file to
have additional hard links.
You might also need to check for the alternate name, in case the
operation failed after writing the new content and unlinking the old
file, but before renaming the new file.