]> git.ipfire.org Git - thirdparty/systemd.git/commit
efivars: newer efivarfs sets FS_IMMUTABLE_FL by default, deal with that
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jun 2018 18:12:00 +0000 (20:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Oct 2018 19:40:44 +0000 (21:40 +0200)
commit2c3bf2789a7bdb449df7abd0d64d7bf055cf75eb
treeaa96243e68834e543215e3b3220ef240598701f5
parentdb9a42545adaa54d789760f842702816625cc384
efivars: newer efivarfs sets FS_IMMUTABLE_FL by default, deal with that

On EFI variables that aren't whitelisted in the kernel the
FS_IMMUTABLE_FL is set, as protection against accidental
removal/modification. Since our own variables do not appear in those
whielists, and we are not changing these variables, let's unset the flag
temporarily when needed. We restore the flag after all writes, just in
case.
src/shared/efivars.c