完善动态服务加固并稳定DNS测试
This commit is contained in:
1 parent
92d4b3d398
commit
af42f14803
4 files changed
+68
-3
No files matched your search
@@ -181,9 +181,25 @@ func renderUnitFile(options Options) (string, error) {
|
||||
"Restart=on-failure",
|
||||
"UMask=0077",
|
||||
"NoNewPrivileges=yes",
|
||||
"CapabilityBoundingSet=",
|
||||
"AmbientCapabilities=",
|
||||
"PrivateTmp=yes",
|
||||
"PrivateDevices=yes",
|
||||
"ProtectHome=yes",
|
||||
"ProtectSystem=full",
|
||||
"ProtectSystem=strict",
|
||||
"ProtectHostname=yes",
|
||||
"ProtectClock=yes",
|
||||
"ProtectKernelTunables=yes",
|
||||
"ProtectKernelModules=yes",
|
||||
"ProtectControlGroups=yes",
|
||||
"ProtectKernelLogs=yes",
|
||||
"LockPersonality=yes",
|
||||
"MemoryDenyWriteExecute=yes",
|
||||
"RestrictNamespaces=yes",
|
||||
"RestrictRealtime=yes",
|
||||
"RestrictSUIDSGID=yes",
|
||||
"RemoveIPC=yes",
|
||||
"SystemCallArchitectures=native",
|
||||
"RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6",
|
||||
)
|
||||
if len(normalized.ReadWritePaths) > 0 {
|
||||
|
||||
Reference in new issue
Block a user