wireshark, gnome-multi-writer packaged
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user