1
0
forked from ports/opt

wireshark: check for xattr support in post-install

This commit is contained in:
Thomas Penteker 2015-08-11 12:22:16 +02:00
parent 419e54bdc0
commit 51f6577e24

@ -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