Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147755 - net-analyzer/tcpdump-3.9.4-r2: possibly-buggy SMB printer support can't be disabled
Summary: net-analyzer/tcpdump-3.9.4-r2: possibly-buggy SMB printer support can't be di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 17:36 UTC by Leon Schoorl
Modified: 2006-10-09 03:01 UTC (History)
0 users

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


Attachments
simple patch to fix it (tcpdump-3.9.4-r2-fixSmb.patch,397 bytes, patch)
2006-09-15 17:38 UTC, Leon Schoorl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leon Schoorl 2006-09-15 17:36:40 UTC
The samba printing support, for which there is a big fat warning saying it is possibly-buggy, can't be disabled in tcpdump-3.9.4-r2:

# USE=-samba emerge tcpdump
Calculating dependencies... done!

>>> Emerging (1 of 1) net-analyzer/tcpdump-3.9.4-r2 to /
 * tcpdump-3.9.4.tar.gz MD5 ;-) ...                                       [ ok ] * tcpdump-3.9.4.tar.gz RMD160 ;-) ...                                    [ ok ] * tcpdump-3.9.4.tar.gz SHA1 ;-) ...                                      [ ok ] * tcpdump-3.9.4.tar.gz SHA256 ;-) ...                                    [ ok ] * tcpdump-3.9.4.tar.gz size ;-) ...                                      [ ok ] * checking ebuild checksums ;-) ...                                      [ ok ] * checking auxfile checksums ;-) ...                                     [ ok ] * checking miscfile checksums ;-) ...                                    [ ok ] * checking tcpdump-3.9.4.tar.gz ;-) ...                                  [ ok ]>>> Unpacking source...
>>> Unpacking tcpdump-3.9.4.tar.gz to /var/tmp/portage/tcpdump-3.9.4-r2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/tcpdump-3.9.4-r2/work/tcpdump-3.9.4 ...true
 * econf: updating tcpdump-3.9.4/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating tcpdump-3.9.4/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-ipv6 --without-smb --build=i686-pc-linux-gnu
[snip]
checking whether to enable the possibly-buggy SMB printer... yes
configure: WARNING: The SMB printer may have exploitable buffer overflows!!!
[snip]


This is because the configure option to disable smb support is --disable-smb, not --without-smb.

Changing the use_with into an use_enable fixes it:

# USE=-samba emerge tcpdump
[snip]
 * econf: updating tcpdump-3.9.4/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating tcpdump-3.9.4/config.sub with /usr/share/gnuconfig/config.sub
 ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-ipv6 --disable-smb --build=i686-pc-linux-gnu
[snip]
checking whether to enable the possibly-buggy SMB printer... no
[snip]
Comment 1 Leon Schoorl 2006-09-15 17:38:53 UTC
Created attachment 97106 [details, diff]
simple patch to fix it
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2006-10-09 03:01:24 UTC
fixed in CVS, thanks for reporting, active in 3.9.5-r1