diff --git a/Makefile.in b/Makefile.in index f944763..c666e75 100644 --- a/Makefile.in +++ b/Makefile.in @@ -17,7 +17,7 @@ # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. # -# @(#) $Header: /tcpdump/master/libpcap/Makefile.in,v 1.123 2008-05-27 07:17:04 guy Exp $ (LBL) +# @(#) $Header: /tcpdump/master/libpcap/Makefile.in,v 1.124 2008-05-28 02:14:10 guy Exp $ (LBL) # # Various configurable paths (remember to edit Makefile.in, not Makefile) @@ -199,6 +199,7 @@ EXTRA_DIST = \ VERSION \ aclocal.m4 \ bpf/net/bpf_filter.c \ + chmod_bpf \ config.guess \ config.h.in \ config.sub \ @@ -239,6 +240,7 @@ EXTRA_DIST = \ msdos/pktdrvr.h \ msdos/readme.dos \ net/bpf_filter.c \ + org.tcpdump.chmod_bpf.plist \ packaging/pcap.spec \ packaging/pcap.spec.in \ pcap-bpf.c \ diff --git a/chmod_bpf b/chmod_bpf new file mode 100755 index 0000000..0a30d99 --- /dev/null +++ b/chmod_bpf @@ -0,0 +1,19 @@ +#! /bin/sh + +# +# Unfortunately, Mac OS X's devfs is based on the old FreeBSD +# one, not the current one, so there's no way to configure it +# to create BPF devices with particular owners or groups. +# This startup item will make it owned by the admin group, +# with permissions rw-rw----, so that anybody in the admin +# group can use programs that capture or send raw packets. +# +# Change this as appropriate for your site, e.g. to make +# it owned by a particular user without changing the permissions, +# so only that user and the super-user can capture or send raw +# packets, or give it the permissions rw-r-----, so that +# only the super-user can send raw packets but anybody in the +# admin group can capture packets. +# +chgrp admin /dev/bpf* +chmod g+rw /dev/bpf* diff --git a/org.tcpdump.chmod_bpf.plist b/org.tcpdump.chmod_bpf.plist new file mode 100644 index 0000000..cfe486d --- /dev/null +++ b/org.tcpdump.chmod_bpf.plist @@ -0,0 +1,16 @@ + + + + + Label + org.tcpdump.chmod_bpf + OnDemand + + Program + /usr/local/bin/chmod_bpf + ProgramArguments + + /usr/local/bin/chmod_bpf + + +