Explorar el Código

x-ui.service hardneing (#3397)

Darkcyankitty hace 1 mes
padre
commit
664269d513
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      x-ui.service

+ 8 - 1
x-ui.service

@@ -10,6 +10,13 @@ WorkingDirectory=/usr/local/x-ui/
 ExecStart=/usr/local/x-ui/x-ui
 ExecStart=/usr/local/x-ui/x-ui
 Restart=on-failure
 Restart=on-failure
 RestartSec=5s
 RestartSec=5s
+ProtectHome=tmpfs
+ProtectKernelModules=true
+ProtectControlGroups=true
+ProtectKernelLogs=true
+ProtectHostname=true
+ProtectClock=true
+MemoryDenyWriteExecute=true
 
 
 [Install]
 [Install]
-WantedBy=multi-user.target
+WantedBy=multi-user.target