package.py 426 B

12345678910
  1. #/usr/bin/python
  2. import os
  3. def postInstall(fromVersion, fromRelease, toVersion, toRelease):
  4. # Set capabilities in order to prevent wireshark from being executed as root
  5. os.system("/bin/chgrp 207 /usr/bin/dumpcap")
  6. os.system("/bin/chmod 754 /usr/bin/dumpcap")
  7. os.system("/bin/chown root:wireshark /usr/bin/dumpcap")
  8. os.system("/sbin/setcap cap_net_raw,cap_net_admin,cap_dac_override+eip /usr/bin/dumpcap")