Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

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!
Tasklist

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

Details

Description:
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.

============================
[Service]
User=nobody
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
This task depends upon

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

https://github.com/v2ray/v2ray-core/issues/1011

It appears `AmbientCapabilities=CAP_NET_BIND_SERVICE` is also needed.

Loading...