From 1bc718c3fbdc9c54b53ee609349557d5a2261c8f Mon Sep 17 00:00:00 2001 From: Peter Hatina Date: Tue, 10 Dec 2013 10:33:46 +0100 Subject: [PATCH] fix read permissions of /dev/usbmon* --- 90-wireshark-usbmon.rules | 1 + wireshark.spec | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 90-wireshark-usbmon.rules diff --git a/90-wireshark-usbmon.rules b/90-wireshark-usbmon.rules new file mode 100644 index 0000000..10a127c --- /dev/null +++ b/90-wireshark-usbmon.rules @@ -0,0 +1 @@ +SUBSYSTEM=="usbmon", GROUP="usbmon", MODE="640" diff --git a/wireshark.spec b/wireshark.spec index ea002ab..4ded9a1 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -21,10 +21,11 @@ Summary: Network traffic analyzer Name: wireshark Version: 1.10.3 -Release: 7%{?dist} +Release: 8%{?dist} License: GPL+ Group: Applications/Internet Source0: http://wireshark.org/download/src/%{name}-%{version}.tar.bz2 +Source1: 90-wireshark-usbmon.rules # Fedora-specific Patch1: wireshark-0001-enable-Lua-support.patch # Fedora-specific @@ -253,6 +254,7 @@ mkdir -p "${IDIR}/epan/dfilter" mkdir -p "${IDIR}/epan/dissectors" mkdir -p "${IDIR}/wiretap" mkdir -p "${IDIR}/wsutil" +mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d install -m 644 color.h config.h register.h "${IDIR}/" install -m 644 cfile.h file.h "${IDIR}/" install -m 644 frame_data_sequence.h "${IDIR}/" @@ -265,6 +267,7 @@ install -m 644 epan/dissectors/*.h "${IDIR}/epan/dissectors" install -m 644 wiretap/*.h "${IDIR}/wiretap" install -m 644 wsutil/*.h "${IDIR}/wsutil" install -m 644 ws_symbol_export.h "${IDIR}/" +install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d/ # Remove .la files rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la @@ -277,8 +280,11 @@ mkdir -p %{buildroot}%{_libdir}/%{name}/python/%{version}/wspy_dissectors %pre getent group wireshark >/dev/null || groupadd -r wireshark +getent group usbmon >/dev/null || groupadd -r usbmon -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/usr/bin/udevadm trigger %postun -p /sbin/ldconfig @@ -315,6 +321,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_sbindir}/reordercap %attr(0750, root, wireshark) %caps(cap_net_raw,cap_net_admin=ep) %{_sbindir}/dumpcap %{_sbindir}/rawshark +%{_sysconfdir}/udev/rules.d/90-wireshark-usbmon.rules %{python_sitearch}/*.py* %{_libdir}/lib*.so.* %{_libdir}/wireshark @@ -366,6 +373,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_datadir}/aclocal/* %changelog +* Tue Dec 10 2013 Peter Hatina - 1.10-3-8 +- fix read permissions of /dev/usbmon* for non-root users + * Mon Dec 09 2013 Peter Lemenkov - 1.10.3-7 - Fix error in the backported RTPproxy patches