summarylogtreecommitdiffstats
path: root/besttrace.install
diff options
context:
space:
mode:
authorBian Jiaping2018-07-31 10:37:27 +0800
committerBian Jiaping2018-07-31 10:37:27 +0800
commit43250ed5f0b492864195b1d6b5be830a20ce2e4f (patch)
treeffea7cc1a311e35f59054a2cd402adb223d06e67 /besttrace.install
parentbed9064c3d25e168f4d15860cbdb802379045a4e (diff)
downloadaur-43250ed5f0b492864195b1d6b5be830a20ce2e4f.tar.gz
Replace setuid with capabilities for better security
Diffstat (limited to 'besttrace.install')
-rw-r--r--besttrace.install7
1 files changed, 7 insertions, 0 deletions
diff --git a/besttrace.install b/besttrace.install
new file mode 100644
index 00000000000..34d40e69082
--- /dev/null
+++ b/besttrace.install
@@ -0,0 +1,7 @@
+post_install() {
+ setcap cap_net_raw=ep usr/bin/besttrace 2>/dev/null || chmod +s usr/bin/besttrace
+}
+
+post_upgrade() {
+ post_install "$1"
+}