summarylogtreecommitdiffstats
path: root/v2ray-cap.hook
diff options
context:
space:
mode:
authorDuckSoft2020-05-21 14:38:43 +0800
committerDuckSoft2020-05-21 14:38:43 +0800
commit75fd049f17e6c9db896a7f8d2e46b51fbf69256f (patch)
tree6492c6829a7899d3701b2d58794323e4117f5dd0 /v2ray-cap.hook
parentc2e4a1337e9a2b2d2b95d31a09fd60959dace5df (diff)
downloadaur-75fd049f17e6c9db896a7f8d2e46b51fbf69256f.tar.gz
rewrite
Diffstat (limited to 'v2ray-cap.hook')
-rw-r--r--v2ray-cap.hook14
1 files changed, 14 insertions, 0 deletions
diff --git a/v2ray-cap.hook b/v2ray-cap.hook
new file mode 100644
index 000000000000..8325e2340fad
--- /dev/null
+++ b/v2ray-cap.hook
@@ -0,0 +1,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
+
+