Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199172 - net-analyzer/tcpdump: use builtin chroot() call
Summary: net-analyzer/tcpdump: use builtin chroot() call
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-14 20:05 UTC by Jukka Ruohonen
Modified: 2008-04-01 20:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
example patch (tcpdump-chroot.patch,740 bytes, patch)
2007-11-14 20:06 UTC, Jukka Ruohonen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka Ruohonen 2007-11-14 20:05:29 UTC
Since we now drop privileges to UID/GID "tcpdump", I see no reason why we should not use the builtin chroot-function. This was included in the version 3.9.3 (July 2005) and can be defined at built time with the --with-chroot=DIR switch. This does no harm and can provide a small security benefit.

An example patch is included (if nothing else, to demonstrate the little work involved).

Thank you.
Comment 1 Jukka Ruohonen 2007-11-14 20:06:07 UTC
Created attachment 135988 [details, diff]
example patch
Comment 2 Jukka Ruohonen 2007-11-14 20:33:36 UTC
Alternatively, if the global option is not suitable in some settings, we could provide the chroot-option as an use flag.
Comment 3 Cédric Krier gentoo-dev 2008-03-30 21:13:35 UTC
Add chroot use flag in cvs
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-04-01 19:54:45 UTC
Cédric why do you think we need USE flag for this feature? It seems better to have it enabled by default, or what do you think?
Comment 5 Cédric Krier gentoo-dev 2008-04-01 20:36:39 UTC
(In reply to comment #4)
> Cédric why do you think we need USE flag for this feature? It seems better to
> have it enabled by default, or what do you think?
> 
I think it is more in the way gentoo works. As the mainstream put it as an option in the configure script, I think it is better to keep it also.
But I'm not against enabled it by default, we can perhaps use the EAPI=1 and add +chroot