Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#65927 - [v2ray] should run as nobody

Attached to Project: Community Packages
Opened by Xinkai Chen (Xinkai) - Sunday, 22 March 2020, 07:41 GMT
Last edited by freswa (frederik) - Saturday, 25 April 2020, 14:06 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


V2ray should not run as root.

It should run as nobody with CAP_NET_BIND_SERVICE capability granted, just like how shadowsocks-libev is handled.

This may be a breaking change for users who have previously used a certificate from a root-exclusive location. But I think overall dropping root when it's not necessary brings greater good.

This task depends upon

Comment by Xinkai Chen (Xinkai) - Sunday, 22 March 2020, 08:27 GMT
Upstream discussion:

It appears `AmbientCapabilities=CAP_NET_BIND_SERVICE` is also needed.