Bug 49635 - PATCH: tcpdump to drop root by default
PATCH: tcpdump to drop root by default
Product: Red Hat Raw Hide
Classification: Retired
Component: tcpdump (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2001-07-22 07:55 EDT by Pekka Savola
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-09-04 05:37:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
drop root by default (1.75 KB, patch)
2001-07-22 07:56 EDT, Pekka Savola
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2001:089 normal SHIPPED_LIVE : Updated tcpdump packages available for Red Hat Linux 6.2 and 7.x 2001-06-28 00:00:00 EDT

  None (edit)
Description Pekka Savola 2001-07-22 07:55:53 EDT
Due to security considerations, it might be a good idea drop root 
by default as 'pcap' user is being added for arpwatch anyway as "-U user" is rather
clumsy to use.

add autoheader, configure --with-user=pcap and there you go :-)

Naturally requires some basic username hacking in the src.rpm
(potential problem: both arpwatch and tcpdump require pcap user;
 solution: make arpwatch require tcpdump >= 3.6.2-7 or the like)
Comment 1 Pekka Savola 2001-07-22 07:56:30 EDT
Created attachment 24490 [details]
drop root by default
Comment 2 Harald Hoyer 2001-07-26 07:16:24 EDT
Question: Why can't we use nobody as a user, or does tcpdump need to write 
Comment 3 Harald Hoyer 2001-07-26 07:19:09 EDT
I think this would break all scripts that have:
tcpdump -w file
cause it is not assured, that user 'pcap' or any other default user has write 
access to 'file'.
Or we disable the droproot, if -w is specified.. Comments?
Comment 4 Pekka Savola 2001-07-26 07:30:31 EDT
nobody is used for dropping root the most often, so if the uid=nobody is
the damage might spread too far.  With pcap, this would probably be more

Writing and reading files work because the patch is made so the dropping of
privileges is
only done after opening/creating the files.
Comment 5 Harald Hoyer 2001-09-04 05:24:21 EDT
Comment 6 Harald Hoyer 2001-09-04 05:25:52 EDT
oops... was, the drop by default ... hmm, not yet :)
Comment 7 Pekka Savola 2001-09-04 05:37:03 EDT
No big hurry with this I think.
Comment 8 Harald Hoyer 2002-01-17 10:25:36 EST
should be fixed in 3.6.2-10 or newer

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