summarylogtreecommitdiffstats
path: root/v2ray-cap.hook
blob: 8325e2340fadb0da18c49356fa62f2acf24df115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = usr/lib/v2ray/v2ray

[Action]
Description = setcap to v2ray
Depends = libcap
When = PostTransaction
Exec = /usr/bin/setcap "cap_net_bind_service=+ep cap_net_admin=+ep" /usr/lib/v2ray/v2ray
NeedsTargets