FS#67637 - [v2ray] 4.27.0-1 Avoid running through the root user, and some other modifications
Attached to Project:
Community Packages
Opened by Dct Mei (dctxmei) - Wednesday, 19 August 2020, 11:34 GMT
Last edited by Toolybird (Toolybird) - Thursday, 01 June 2023, 22:42 GMT
Opened by Dct Mei (dctxmei) - Wednesday, 19 August 2020, 11:34 GMT
Last edited by Toolybird (Toolybird) - Thursday, 01 June 2023, 22:42 GMT
|
Details
Description:
I modified the PKGBUILD of v2ray, v2ray-domain-list-community and v2ray-geoip, generated three patches and attached them to this report, hoping to be applied. Modified content: 1. Remove the default configuration, because the configuration of V2Ray is very diverse, which should be freely combined by the user. 2. Added v2ray.sysusers, which is used to create v2ray users. 3. Added v2ray.tmpfiles, which is used to create the /var/log/v2ray/ directory. 4. geoip.dat and geosite.dat are placed in /usr/share/v2ray/, this practice has been implemented by V2Fly, see: https://github.com/v2fly/fhs-install-v2ray 5. v2ray.service is downgraded from root user to v2ray user and uses the new -confdir option, which will apply all configuration files under /etc/v2ray/, see: https://www.v2fly.org/config/multiple_config.html https://pastebin.com/NiT23QC8 6. v2ray@.service is also downgraded to v2ray user, but still uses the -config option, see: https://pastebin.com/e6hKCGFQ And, in the next version, Environment= in v2ray.service and v2ray@.service can be removed, see: https://github.com/v2fly/fhs-install-v2ray/issues/58 https://github.com/v2fly/v2ray-core/commit/bc008113b6d1654e34ed372a385cc9dd0a0e2936 Additional info: * 4.27.0-1 |
This task depends upon
Closed by Toolybird (Toolybird)
Thursday, 01 June 2023, 22:42 GMT
Reason for closing: No response
Additional comments about closing: If there is still an issue, please report upstream.
Thursday, 01 June 2023, 22:42 GMT
Reason for closing: No response
Additional comments about closing: If there is still an issue, please report upstream.
Comment by
Felix Yan (felixonmars) -
Wednesday, 19 August 2020, 15:19 GMT
Comment by Dct Mei (dctxmei) -
Wednesday, 19 August 2020, 15:57 GMT
Comment by Toolybird (Toolybird) -
Monday, 01 May 2023, 22:39 GMT
Regarding 4) upstream is implementing an auto-search feature so I
would rather wait for that to land before changing back (which
breaks launching directly from terminal and confuses users a lot).
Well, then, are the modifications to v2ray.service and
v2ray@.service acceptable? Do you think it is reasonable?
Upstream provide the systemd service files these days so I think
this can be closed?