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

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