[Lunar-commits] <moonbase-other> wireshark: add optional automatic dump perms

v4hn me at v4hn.de
Fri Jun 14 22:50:54 CEST 2013


commit df7ea035b19edcbd1c9d25ecb2b6a671b0fda7c5
Author: v4hn <me at v4hn.de>
Date: Fri, 14 Jun 2013 13:50:18 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/df7ea035b19edcbd1c9d25ecb2b6a671b0fda7c5

wireshark: add optional automatic dump perms
---
  net/wireshark/BUILD     | +5/-5     
  net/wireshark/CONFIGURE | +1/-0     
  2 files changed, 6 insertions(+), 5 deletions(-)

--- a/net/wireshark/BUILD
+++ b/net/wireshark/BUILD
@@ -1,7 +1,7 @@
-(
+OPTS+=" --with-ssl --enable-wireshark --enable-usr-local=no --enable-randpkt" &&
 
-  OPTS+=" --with-ssl --enable-wireshark --enable-usr-local=no --enable-randpkt"
+default_build &&
 
-  default_build
-
-) > $C_FIFO 2>&1
+if [[ "`get_module_config DUMP_PRIV`" = "y" ]]; then
+  setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
+fi
--- /dev/null
+++ b/net/wireshark/CONFIGURE
@@ -0,0 +1 @@
+mquery DUMP_PRIV "Allow live capture by non-root users?" n "" ""




More information about the Lunar-commits mailing list