summaryrefslogtreecommitdiff
path: root/wireshark
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2015-08-11 12:22:16 +0200
committerThomas Penteker <tek@serverop.de>2015-08-11 12:22:16 +0200
commit51f6577e2497727ca9225e97aa9eb212fabb89f1 (patch)
tree6289454ae38d6be72c41473c29a115304c2b7638 /wireshark
parent419e54bdc0a5af1c25fe5a44a1ce2f2674a91a21 (diff)
downloadopt-51f6577e2497727ca9225e97aa9eb212fabb89f1.tar.gz
opt-51f6577e2497727ca9225e97aa9eb212fabb89f1.tar.xz
wireshark: check for xattr support in post-install
Diffstat (limited to 'wireshark')
-rwxr-xr-xwireshark/post-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/wireshark/post-install b/wireshark/post-install
index a52ac140e..43a2b5fae 100755
--- a/wireshark/post-install
+++ b/wireshark/post-install
@@ -4,6 +4,15 @@
# as non-root users.
#
+# ugly hack to test for support for capabilities
+if ! setfattr -n user.xattr_test /usr/bin/dumpcap 2> /dev/null; then
+ echo capabilities not supported on this system
+ echo capturing with wireshark will require root privileges
+ exit 0
+fi
+
+setfattr -x user.xattr_test /usr/bin/dumpcap
+
getent group wireshark >/dev/null || groupadd -r wireshark

Generated by cgit