1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 107
107
ExecStart = lib . getExe cfg . package ;
108
108
109
109
# Hardening
110
+ AmbientCapabilities = "" ;
110
111
CapabilityBoundingSet = [ "" ] ;
111
- DeviceAllow = [ "" ] ;
112
+ DevicePolicy = "closed" ;
112
113
LockPersonality = true ;
114
+ NoNewPrivileges = true ;
113
115
PrivateDevices = true ;
114
116
PrivateTmp = true ;
115
117
PrivateUsers = true ;
123
125
ProtectKernelTunables = true ;
124
126
ProtectProc = "invisible" ;
125
127
ProtectSystem = "strict" ;
126
- RestrictAddressFamilies = [
127
- "AF_INET"
128
- "AF_INET6"
129
- "AF_UNIX"
130
- ] ;
128
+ RemoveIPC = true ;
129
+ RestrictAddressFamilies = [ "AF_INET AF_INET6 AF_UNIX AF_NETLINK" ] ;
131
130
RestrictNamespaces = true ;
132
131
RestrictRealtime = true ;
133
132
RestrictSUIDSGID = true ;
134
133
SystemCallArchitectures = "native" ;
134
+ SystemCallFilter = [
135
+ "@system-service"
136
+ "~@privileged"
137
+ "~@resources"
138
+ ] ;
139
+ UMask = "0077" ;
135
140
} ;
136
141
} ;
137
142
} ;
0 commit comments