lockdown module a bit more

This commit is contained in:
Robin Appelman 2024-11-17 22:11:42 +01:00
commit eef5b4ff4b

View file

@ -71,11 +71,20 @@ in
RestrictAddressFamilies = [ "AF_UNIX" ]; RestrictAddressFamilies = [ "AF_UNIX" ];
RuntimeDirectory = "mitemp"; RuntimeDirectory = "mitemp";
RestrictRealtime = true; RestrictRealtime = true;
ProtectProc = "noaccess"; ProtectProc = "invisible";
SystemCallFilter = [ "@system-service" "~@resources" "~@privileged" ]; SystemCallFilter = [ "@system-service" "~@resources" "~@privileged" ];
IPAddressDeny = "any"; IPAddressDeny = "any";
PrivateUsers = true; PrivateUsers = true;
ProcSubset = "pid"; ProcSubset = "pid";
RemoveIPC = true;
PrivateDevices = true;
RestrictSUIDSGID = true;
BindPaths = [ "/run/dbus" ];
};
confinement = {
enable = true;
binSh = null;
}; };
}; };
}; };