Restrict permissions on /boot to protect the random seed.
This commit is contained in:
@@ -31,6 +31,9 @@ in
|
|||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [
|
||||||
|
"umask=0077" # to avoid the random seed being world readable
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
luksroot = {
|
luksroot = {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/FF9C-DC81";
|
{ device = "/dev/disk/by-uuid/FF9C-DC81";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "umask=0077" ]; # to avoid the random seed being world readable
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ {
|
swapDevices = [ {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/D8C2-9216";
|
{ device = "/dev/disk/by-uuid/D8C2-9216";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "umask=0077" ]; # to avoid the random seed being world readable
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ {
|
swapDevices = [ {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/B543-374F";
|
{ device = "/dev/disk/by-uuid/B543-374F";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "umask=0077" ]; # to avoid the random seed being world readable
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = pkgs.lib.mkForce [ {
|
swapDevices = pkgs.lib.mkForce [ {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/F3C9-A38F";
|
{ device = "/dev/disk/by-uuid/F3C9-A38F";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "umask=0077" ]; # to avoid the random seed being world readable
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ {
|
swapDevices = [ {
|
||||||
|
|||||||
Reference in New Issue
Block a user