disko
disko copied to clipboard
security hole /boot and /boot/loader/random-seed
I'm using disko to setup the partitions of my system via flake.
started to get these warnings recently:
the proposed solution without disko is
fileSystems."/boot" = {
options = [ "umask=0077" ];
};
though not sure how to set it with disko
though not sure how to set it with disko
Exactly the same (if your disko config contains a /boot). Disko does configure the filesystems attribute, but those settings get merged with your own ones via the nixos module system
...
partitions = {
boot = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountOptions = [ "umask=0077" ];
mountpoint = "/boot";
};
};
};
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nixos-install-with-custom-flake-results-in-boot-being-world-accessible/34555/23
Thank you for pointing this out! All the examples and documentation reflect this now.