Bug 176010 - file owner problem when using 'ring buffer mode
Summary: file owner problem when using 'ring buffer mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tcpdump
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-17 14:20 UTC by Joachim Metz
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-12-20 12:56:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
proposed patch (3.10 KB, patch)
2005-12-20 13:04 UTC, Martin Stransky
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.