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.
|
# after the timeout). So send an ignored signal.
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
KillSignal = "WINCH";
|
KillSignal = "WINCH";
|
||||||
|
|
||||||
|
DevicePolicy = "closed";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user