wireshark: check for xattr support in post-install
This commit is contained in:
parent
419e54bdc0
commit
51f6577e24
@ -4,6 +4,15 @@
|
|||||||
# as non-root users.
|
# 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
|
getent group wireshark >/dev/null || groupadd -r wireshark
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user