archinstall/archinstall
Clinton Phillips 5fd2f9b627
fix: restrict EFI partition permissions with fmask/dmask=0077 (#4506)
* fix: restrict EFI partition permissions with fmask/dmask=0077

Mount the ESP with fmask=0077 and dmask=0077 to prevent world-readable
files like /efi/loader/random-seed.

Closes #4241

* fix(efi): collapse fmask/dmask dedup to dict.fromkeys one-liner

Per @Torxed's review feedback. Same semantics as the previous loop
(dedupe by exact-string match) but shorter. dict.fromkeys preserves
insertion order, where set() would not.

* fix(efi): drop defensive list wrap per review

The list() copy on line 378 was load-bearing only if options were
mutated downstream, but the EFI branch reassigns options via
dict.fromkeys() (line 381) and the non-EFI branch passes through
to mount() without mutating. Drop the copy.
2026-05-19 13:36:28 +10:00
..
applications Enable power management services after package installation (#4440) 2026-04-18 12:04:14 +10:00
default_profiles Replace terminal and file manager in Budgie profile (#4533) 2026-05-13 08:21:15 +10:00
lib fix: restrict EFI partition permissions with fmask/dmask=0077 (#4506) 2026-05-19 13:36:28 +10:00
locales Add translation CI validation (#4519) 2026-05-18 20:10:56 +10:00
scripts Keep standalone initramfs for grub-btrfs when UKI is enabled (#4513) 2026-05-06 14:26:59 +10:00
tui Enhance config types and summary (#4532) 2026-05-10 22:35:53 +02:00
__init__.py Convert imports to absolute imports (#4196) 2026-02-26 20:17:48 +11:00
__main__.py Replace sys.exit calls with return values (#4156) 2026-01-22 13:58:40 +11:00
examples Adding symlink to examples. 2020-07-08 12:34:22 +00:00
main.py Enhance log sharing capability (#4526) 2026-05-15 21:38:17 +10:00