File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
nixos/modules/services/monitoring Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 5151 DynamicUser = true ;
5252 ExecStart = "${ cfg . package } /bin/uptime-kuma-server" ;
5353 Restart = "on-failure" ;
54- ProtectHome = true ;
55- ProtectSystem = "strict" ;
56- PrivateTmp = true ;
54+ AmbientCapabilities = "" ;
55+ CapabilityBoundingSet = "" ;
56+ LockPersonality = true ;
57+ MemoryDenyWriteExecute = false ; # enabling it breaks execution
58+ NoNewPrivileges = true ;
5759 PrivateDevices = true ;
58- ProtectHostname = true ;
60+ PrivateMounts = true ;
61+ PrivateTmp = true ;
5962 ProtectClock = true ;
60- ProtectKernelTunables = true ;
61- ProtectKernelModules = true ;
62- ProtectKernelLogs = true ;
6363 ProtectControlGroups = true ;
64- NoNewPrivileges = true ;
64+ ProtectHome = true ;
65+ ProtectHostname = true ;
66+ ProtectKernelLogs = true ;
67+ ProtectKernelModules = true ;
68+ ProtectKernelTunables = true ;
69+ ProtectProc = "noaccess" ;
70+ ProtectSystem = "strict" ;
71+ RemoveIPC = true ;
72+ RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" "AF_NETLINK" ] ;
73+ RestrictNamespaces = true ;
6574 RestrictRealtime = true ;
6675 RestrictSUIDSGID = true ;
67- RemoveIPC = true ;
68- PrivateMounts = true ;
76+ SystemCallArchitectures = "native" ;
77+ UMask = 027 ;
6978 } ;
7079 } ;
7180 } ;
You can’t perform that action at this time.
0 commit comments