FreeBSD Bugzilla – Attachment 149925 Details for
Bug 195435
[PORT net/wireshark] Make 'dumpcap' setgid network so that regular users can run it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch-wireshark-g+s.patch (text/plain), 1.27 KB, created by
Yuri Victorovich
on 2014-11-27 00:05:36 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2014-11-27 00:05:36 UTC
Size:
1.27 KB
patch
obsolete
>--- net/wireshark/Makefile 2014-11-26 15:58:41.000000000 -0800 >+++ net/wireshark/Makefile 2014-11-26 15:23:44.000000000 -0800 >@@ -161,6 +161,8 @@ > CONFIGURE_ARGS+=--with-krb5=no > .endif > >+PKGMESSAGE= ${FILESDIR}/pkg-message >+ > post-patch: > @${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \ > s|-Wl,--as-needed|| ' \ >--- net/wireshark/files/pkg-message 1969-12-31 16:00:00.000000000 -0800 >+++ net/wireshark/files/pkg-message 2014-11-26 15:42:02.000000000 -0800 >@@ -0,0 +1,17 @@ >+=============================================================================== >+ >+In order for wireshark be able to capture packets when used by unprivileged >+user, /dev/bpf should be in network group and have read-write permissions. >+For example: >+ >+# chgrp network /dev/bpf* >+# chmod g+r /dev/bpf* >+# chmod g+w /dev/bpf* >+ >+In order for this to persist across reboots, add the following to >+/etc/devfs.conf: >+ >+own bpf* root:network >+perm bpf* 0660 >+ >+=============================================================================== >--- net/wireshark/pkg-plist 2014-11-26 15:45:55.000000000 -0800 >+++ net/wireshark/pkg-plist 2014-11-26 15:44:20.000000000 -0800 >@@ -1,7 +1,11 @@ > %%CAPINFOS%% > %%CAPTYPE%% > %%DFTEST%% >+@group network >+@mode 2555 > bin/dumpcap >+@mode >+@group > %%EDITCAP%% > %%WIRESHARK%% > %%MERGECAP%%
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195435
: 149925