void-packages/srcpkgs/wireshark/INSTALL
Christopher Brannon f938786f7c wireshark: restrict capturing to root and members of the wireshark group.
Permissions on dumpcap were too permissive.
2015-08-19 07:09:24 -07:00

7 lines
155 B
Text

case "${ACTION}" in
post)
chgrp wireshark usr/bin/dumpcap
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
chmod 770 usr/bin/dumpcap
;;
esac