Browse Source

x-ui.service hardneing (#3397)

Darkcyankitty 1 week ago
parent
commit
664269d513
1 changed files with 8 additions and 1 deletions
  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
 Restart=on-failure
 RestartSec=5s
+ProtectHome=tmpfs
+ProtectKernelModules=true
+ProtectControlGroups=true
+ProtectKernelLogs=true
+ProtectHostname=true
+ProtectClock=true
+MemoryDenyWriteExecute=true
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=multi-user.target