mirror of
https://codeberg.org/icewind/mitemp-prometheus.git
synced 2026-06-03 09:04:13 +02:00
lockdown module a bit more
This commit is contained in:
parent
9d40881429
commit
eef5b4ff4b
1 changed files with 10 additions and 1 deletions
11
module.nix
11
module.nix
|
|
@ -71,11 +71,20 @@ in
|
|||
RestrictAddressFamilies = [ "AF_UNIX" ];
|
||||
RuntimeDirectory = "mitemp";
|
||||
RestrictRealtime = true;
|
||||
ProtectProc = "noaccess";
|
||||
ProtectProc = "invisible";
|
||||
SystemCallFilter = [ "@system-service" "~@resources" "~@privileged" ];
|
||||
IPAddressDeny = "any";
|
||||
PrivateUsers = true;
|
||||
ProcSubset = "pid";
|
||||
RemoveIPC = true;
|
||||
PrivateDevices = true;
|
||||
RestrictSUIDSGID = true;
|
||||
BindPaths = [ "/run/dbus" ];
|
||||
};
|
||||
|
||||
confinement = {
|
||||
enable = true;
|
||||
binSh = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue