mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
nixos-containers: Set DevicePolicy=closed
This makes the container a bit more secure, by preventing root creating device nodes to access the host file system, for instance. (Reference: systemd-nspawn@.service in systemd.)
This commit is contained in:
parent
bf3edfbb3c
commit
fd5bbdb436
@ -415,6 +415,8 @@ in
|
||||
# after the timeout). So send an ignored signal.
|
||||
KillMode = "mixed";
|
||||
KillSignal = "WINCH";
|
||||
|
||||
DevicePolicy = "closed";
|
||||
};
|
||||
};
|
||||
in {
|
||||
|
Loading…
Reference in New Issue
Block a user