wireshark, gnome-multi-writer packaged

This commit is contained in:
Berk Çakar
2021-08-24 00:47:20 +03:00
parent 813eb85a68
commit 1f7d60a5f3
7 changed files with 254 additions and 0 deletions
@@ -0,0 +1,10 @@
#/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
# Set capabilities in order to prevent wireshark from being executed as root
os.system("/bin/chgrp 207 /usr/bin/dumpcap")
os.system("/bin/chmod 754 /usr/bin/dumpcap")
os.system("/bin/chown root:wireshark /usr/bin/dumpcap")
os.system("/sbin/setcap cap_net_raw,cap_net_admin,cap_dac_override+eip /usr/bin/dumpcap")