add NoNewPrivileges=yes & CAP_NET_RAW

pull/2531/head
unknowndev233 2020-03-10 23:49:42 +08:00 committed by kslr
parent 808ca5d473
commit 882320e45a
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ Type=simple
# More discussion at https://github.com/v2ray/v2ray-core/issues/1011
User=root
#User=v2ray
#AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=yes
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
Restart=on-failure
# Don't restart in the case of configuration error