Bug 176010

Summary: file owner problem when using 'ring buffer mode
Product: [Fedora] Fedora Reporter: Joachim Metz <joachim.metz>
Component: tcpdumpAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: herrold
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-20 12:56:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

Description Joachim Metz 2005-12-17 14:20:55 UTC
Description of problem, bug, incorrect information, or enhancement request:
When using tcpdump ring buffer mode e.g. running as root
tcpdump -n -i eth0 -W 10 -C 1 -w capture

Which creates a ring buffer of 10 capture files of 1 * 1.000.000 bytes.
The first file has root as owner
The second and folowing files have pcap as owners
(Issue number 1. This results in an access failure when capturing inside an root
only directory)

Issue number 2. When the 10th file is processed tcpdump tries to open the first
file (which has root as the owner) using pcap as user. This also results in an
access failure.

I have no idea what the default behavior of tcpdump on other
platforms/distribution is regarding ring buffer mode.




Version of release notes this bug refers to:

Fedora Core 4 final release

Comment 1 Joachim Metz 2005-12-17 14:23:43 UTC
tcpdump version (rpm -qi tcpdump)

Name        : tcpdump                      Relocations: /usr
Version     : 3.8.2                             Vendor: Red Hat, Inc.
Release     : 13.FC4                        Build Date: Wed 08 Jun 2005 10:01:26
AM CEST
Install Date: Fri 17 Jun 2005 08:12:41 PM CEST      Build Host:
decompose.build.redhat.com
Group       : Applications/Internet         Source RPM: tcpdump-3.8.2-13.FC4.src.rpm
Size        : 783083                           License: BSD
Signature   : DSA/SHA1, Mon 13 Jun 2005 04:46:37 PM CEST, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.tcpdump.org
Summary     : A network traffic monitoring tool.
Description :
Tcpdump is a command-line tool for monitoring network traffic.
Tcpdump can capture and display the packet headers on a particular
network interface or on all interfaces. Tcpdump can display all of the
packet headers, or just the ones that match particular criteria.
[root@prodigy ~]# tcpdump --version
tcpdump version 3.8
libpcap version 0.8.3


Comment 2 Patrick Barnes 2005-12-17 14:31:17 UTC
This is not a release notes flaw.  I am reassigning this to the owner of the
component.

Comment 3 Martin Stransky 2005-12-20 12:56:56 UTC
You can use "-Z root" directive in FC3/FC4. Fix heads to FC5.

Comment 4 Martin Stransky 2005-12-20 13:04:15 UTC
Created attachment 122445 [details]
proposed patch