nixos/open-webui: add additional systemd hardening (#377884)

Changed files
+12
nixos
modules
services
+12
nixos/modules/services/misc/open-webui.nix
···
RestrictRealtime = true;
SystemCallArchitectures = "native";
UMask = "0077";
};
};
···
RestrictRealtime = true;
SystemCallArchitectures = "native";
UMask = "0077";
+
CapabilityBoundingSet = "";
+
RestrictAddressFamilies = [
+
"AF_INET"
+
"AF_INET6"
+
"AF_UNIX"
+
];
+
ProtectClock = true;
+
ProtectProc = "invisible";
+
SystemCallFilter = [
+
"@system-service"
+
"~@privileged"
+
];
};
};