Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86493 - iptables does not work in 32bit chroot of amd64
Summary: iptables does not work in 32bit chroot of amd64
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 03:15 UTC by Honza
Modified: 2005-06-26 13:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Honza 2005-03-24 03:15:21 UTC
When 32-bit iptables is executed, it tried to modprobe ip_tables and fail.
64-bit iptables did not. Functionality of that module is of course in kernel.
Maybee some ioctl32 is missing.

Reproducible: Always
Steps to Reproduce:
1. log in 32-bit chroot
2. iptables -L ET -v
3. (probably all other iptables parameters fails same way, that's only example)

Actual Results:  
root@bluestar:~# iptables -L ET -v
iptables v1.2.11: can't initialize iptables table `filter': Module is wrong version
Perhaps iptables or your kernel needs to be upgraded.


Expected Results:  
root@bluestar:~# iptables -L ET -v
Chain ET (0 references)
 pkts bytes target     prot opt in     out     source               destination
        
    0     0 LOG        all  --  any    any     anywhere             anywhere   
        limit: avg 3/hour burst 6 LOG level warning prefix `Unknown interface:  ' 
    0     0 DROP       all  --  any    any     anywhere             anywhere   
        


64:
Portage 2.0.51-r14 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-
r1, 2.6.10-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Mar  2 2005, 02:39:41)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mtune=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/
dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/sh
are/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mtune=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo
http://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/ http://www.mirror.ac.uk
/sites/www.ibiblio.org/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d aalib acpi alsa apache2 apm audiofile avi berkdb bitmap-fonts
bzlib caps cdr crypt curl dbase dbm dbx dga di
rectfb divx4linux doc dvd dvdr emul-linux-x86 encode esd ethereal exif f77 fbcon
flac flash font-server fortran gd gdbm ggi gif
 gpm gtk iconv imagemagick imlib innodb ipv6 java jp2 jpeg lcms lesstif libcaca
libwww lirc lzw lzw-tiff mad mailwrapper mbox m
cal memlimit mhash mikmod mime ming mmap mng motif mozilla mpeg multilib mysql
ncurses nls offensive oggvorbis openal opengl os
s pam pcntl pcre pdflib perl php plotutils png posix python qt quicktime
readline samba sdl shared sharedmem slang sndfile snmp
 sockets spell sqlite ssl sysvipc tcpd tetex theora tiff truetype truetype-fonts
type1-fonts unicode usb userlocales v4l v4l2 v
hosts videos wmf xml xml2 xosd xpm xrandr xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

32:
Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.2-r9,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3 [2.3.3 (#1, May  5 2004, 21:35:16)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r3, 1.5.2-r7
virtual/os-headers:  2.4.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/Gentoo64/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X Xaw3d aalib alsa apache2 apm arts avi berkdb bitmap-fonts
caps cdr crypt cups curl dga directfb doc dvd encode esd f77 fbcon flac
font-server foomaticdb fortran gd gdbm ggi gif gnome gpm gtk gtk2 imagemagick
imlib innodb ipv6 java jpeg lcms lesstif libcaca libg++ libwww lirc mad
mailwrapper mbox mcal memlimit mikmod mmx mmx2 mng motif mozilla mpeg multislot
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline samba sdl slang snmp spell sqlite sse ssl svga tcpd tetex theora tiff
truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts videos wmf x86
xml xml2 xmms xosd xv xvid zlib"
Unset:  LDFLAGS
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-06-19 08:41:52 UTC
iptables isn't expected to run in a 32bit chroot, since it uses modules. use it
outside, in the 64bit environment
Comment 2 Honza 2005-06-19 12:38:56 UTC
Sound also uses modules and work in 32bit chroot ... you mean this is different
? How ?

(Note - workaround: I made statically linked 64bit iptables and I'm running it
in 32bit environment. "Outside" is relative. Only problem is that this static
iptables seem to don't use /etc/services ....)
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-06-26 13:02:55 UTC
Because sound has a standard, bit-neutral interface, and iptables doesn't?