By emerging qmail-scanner-2.08, I get access violations to /etc/mtab as follows: --- Building Qmail-Scanner 2.08st-20091012... ACCESS DENIED utimensat: /etc/mtab --- --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE "/var/log/sandbox/sandbox-28836.log" VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: utimensat S: deny P: /etc/mtab A: /etc/mtab R: /etc/mtab C: mount -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1.emerge mail-filter/qmail-scanner Actual Results: Ebuild failed Expected Results: Ebuild succeeded Just disabling the sandbox FEATURE enables the installation cleanly.
1) Please post your `emerge --info' output too. 2) Please attach the entire build log.
Created attachment 270565 [details] mail-filter/qmail-scanner-2.08 build log
# emerge --info qmail-scanner Portage 2.1.9.46 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.35-gentoo-r4 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-gentoo-r4-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.2 Timestamp of tree: Mon, 18 Apr 2011 12:15:01 +0000 app-shells/bash: 4.2_p8 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1-r1 sys-devel/binutils: 2.21 sys-devel/gcc: 3.4.6-r2, 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.38 virtual/os-headers: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe -mfpmath=sse -floop-interchange -floop-strip-mine -floop-block" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O3 -march=native -pipe -mfpmath=sse -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ rsync://gentoo.chem.wisc.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3dnowprefetch acl aio apache2 bas-completion bash-completion bcmath berkdb bittorrent bzip2 bzlib cgi cli cracklib crypt curl curlwrappers cvs cxx dri expat fontconfig fortran ftp gd gdbm gmp gnutls gpm graphite iconv ipv6 ithreads jpeg lzma lzo maildrop mmx mmxext modules mudflap mysql mysqli mysqlnd ncurses net nls nptl nptlonly odbc openmp pam pcre perl png pppd python readline ruby session snmp spamassassin sqlite sqlite3 sse sse2 ssl subversion suexec sysfs tcl tcpd threads truetype unicode vim-pager x86 xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= mail-filter/qmail-scanner-2.08 was built with the following: USE="spamassassin -clamav"
it's probably running `mount`. i cant think of any reason why qmail-scanner would need to do that in src_* steps ...
indeed it runs 'mount' to check whether the filesystem in which qmail-scanner is being installed has the 'nosuid' flag. It requires the wrapper or perl script to have suid' bit to the email user in order to be executed correctly. A strong candidate of offending code: work/qmail-scanner-2.08/configure: lines 685 to 701 #Sanity check that suid is allowed on the Qmail "/bin" partition QMNT=`df $BINDIR|head -n 2|tail -n -1|awk '{print $1}'` SUIDSTATUS=`mount|egrep "^$QMNT "|grep nosuid` if [ "$SUIDSTATUS" != "" ]; then cat<<EOF *** FATAL ERROR *** As far as I can tell, $BINDIR is mounted on a nonsuid file partition ($QMNT). This means even Qmail will not operate correctly! Please sort out your system before trying to install this... EOF exit 1 fi =====
right, that sort of check makes absolutely no sense in an ebuild's src_*. so it needs to get patched out.
same bug for mail-filter/qmail-scanner-2.05 at amd64
Sandbox violation sitting there for 7 months. Please fix, this is making arch testing significantly harder and slower.
should be all set now in the tree; thanks for the report! Commit message: Disable useless suid mount check http://sources.gentoo.org/mail-filter/qmail-scanner/files/qmail-scanner-2.08-disable-suid-check.patch?rev=1.1 http://sources.gentoo.org/mail-filter/qmail-scanner/qmail-scanner-2.05.ebuild?r1=1.7&r2=1.8 http://sources.gentoo.org/mail-filter/qmail-scanner/qmail-scanner-2.06.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/mail-filter/qmail-scanner/qmail-scanner-2.08.ebuild?r1=1.2&r2=1.3