Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295520 - net-libs/courier-authlib-0.62.4 sandbox violation
Summary: net-libs/courier-authlib-0.62.4 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 06:12 UTC by Petre Rodan
Modified: 2010-06-11 14:16 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,250.58 KB, text/plain)
2009-12-03 06:13 UTC, Petre Rodan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petre Rodan 2009-12-03 06:12:36 UTC
make DESTDIR=/local/portage/build/portage/net-libs/courier-authlib-0.62.4/image/ install-migrate 
/bin/sh authmigrate
/etc/courier/authlib/authdaemonrc => /local/portage/build/portage/net-libs/courier-authlib-0.62.4/image//etc/courier/authlib/authdaemonrc
Obsolete: /etc/courier-imap/authdaemonrc(.dist)?
/etc/courier/authlib/userdb => /local/portage/build/portage/net-libs/courier-authlib-0.62.4/image//etc/courier/authlib/userdb
makeuserdb...
ACCESS DENIED  open_wr:      /etc/courier/authlib/userdb.tmp
Cannot create /etc/courier/authlib/userdb.tmp
ACCESS DENIED  open_wr:      /etc/courier/authlib/userdbshadow.tmp
Cannot create /etc/courier/authlib/userdbshadow.tmp
make: *** [install-migrate] Error 141
 * 
 * ERROR: net-libs/courier-authlib-0.62.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2613:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install-migrate || die "emake install-migrate failed";
 *  The die message:
 *   emake install-migrate failed
Comment 1 Petre Rodan 2009-12-03 06:13:53 UTC
Created attachment 211839 [details]
build.log
Comment 2 Mehmet Giritli 2009-12-06 14:07:17 UTC
Same problem here. 


emerge --info:

Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-AMD_Athlon-TM-_XP_2200+-with-gentoo-1.12.13
Timestamp of tree: Tue, 01 Dec 2009 22:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.linux.org.tr/gentoo/ http://gentoo.virginmedia.com/ "
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="tr en en_GB en_US"
MAKEOPTS="-j2"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib acl acpi alsa apache2 applet authdaemond autoipd automount avahi bash-completion beagle berkdb branding brasero bzip2 cairo ccache cdda cdparanoia cdr clamav clamd cli colordiff consolekit cpudetection cracklib crypt css cups cupsddk dbus device-mapper dga disk-partition djvu dmi dmx dri dts dvd dvdr dvdread dvi eds emboss enca encode epiphany evo exif extensions fam fasttrack fat fax ffmpeg flac ftp fuse galago gdbm geoip gif gimp glade gnome gnome-keyring gnutls gocr gpg gpgme gpm graphics grub gs gstreamer gtk hal hddtemp howl-compat hpn icons iconv id3tag idn imap inotify iproute2 irc isdnlog ithreads java java6 javacomm javascript jce jingle jmf jpeg jpeg2k kde keyscrub kolab kpathsea lame laptop latex libcaca libgda libnotify libsamplerate libvisual libwww linuxthreads-tls lm_sensors logrotate lvm lzma lzo mad magic mail maildir mailwrapper md5sum mikmod mime mimencode mmx mmxext modules mono mp3 mp4 mpeg mudflap musicbrainz nas nautilus ncurses neXt network networkmanager new-login nls nolvmstatic nptl nptlonly nsplugin ntfs ocamlopt ocrad offensive ogg opengl openid openmp openssl pam pango pch pcre pdf perl php pidgin png policykit ppds prediction pstricks pth pulseaudio python qt3support qt4 quicktime rdesktop readline reflection remote samba sasl scanner science sdl session sidebar smime smtp sni sockets sound spamassassin spell spl spoof-source sse ssl startup-notification svg sysfs syslog t1lib taglib tcpd tex4ht theora threads thunar tiff tools truetype udev udev-acl unicode usb userlocales v4l2 vda vhosts vnc vorbis wavpack win32codecs wma wmf x264 x86 xattr xcomposite xine xml xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="via82xx" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="tr en en_GB en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Navid Zamani 2009-12-13 13:45:58 UTC
Same problem here too. On a hardened x86 system.
Comment 4 Silviu Dascalu 2010-01-04 14:50:06 UTC
Same problem here ... Don't know how to fix this...
Comment 5 Gerald 2010-01-06 02:29:20 UTC
Same problem here on x64 with (only) use flag "pam":

makeuserdb...
ACCESS DENIED  open_wr:      /etc/courier/authlib/userdb.lock
Can't open /etc/courier/authlib/userdb.lock: Permission denied at /usr/sbin/makeuserdb line 65.
make: *** [install-migrate] Error 13

Would really appreciate it if someone could fix it. This package has failed to emerge on my system for quite some time.
Comment 6 Stewart Gebbie 2010-01-11 09:53:38 UTC
Hi,

I get the same problem when running emerge -uND world.

I've included part of the build output for courier-authlib as well as the results from emerge --info.

Thanks,
Stewart.


make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.62.4/work/courier-authlib-0.62.4'
make DESTDIR=/var/tmp/portage/net-libs/courier-authlib-0.62.4/image/ install-migrate 
/bin/sh authmigrate
/etc/courier/authlib/authdaemonrc => /var/tmp/portage/net-libs/courier-authlib-0.62.4/image//etc/courier/authlib/authdaemonrc
/etc/courier/authlib/authpgsqlrc => /var/tmp/portage/net-libs/courier-authlib-0.62.4/image//etc/courier/authlib/authpgsqlrc
/etc/courier/authlib/userdb => /var/tmp/portage/net-libs/courier-authlib-0.62.4/image//etc/courier/authlib/userdb
makeuserdb...
ACCESS DENIED  open_wr:      /etc/courier/authlib/userdb.tmp
ACCESS DENIED  open_wr:      /etc/courier/authlib/userdbshadow.tmp
Cannot create /etc/courier/authlib/userdb.tmp

make: *** [install-migrate] Error 1
Cannot create /etc/courier/authlib/userdbshadow.tmp
 * 
 * ERROR: net-libs/courier-authlib-0.62.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2609:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install-migrate || die "emake install-migrate failed";
 *  The die message:
 *   emake install-migrate failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/courier-authlib-0.62.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/courier-authlib-0.62.4/temp/environment'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-4944.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: open_wr
S: deny
P: /etc/courier/authlib/userdb.tmp
A: /etc/courier/authlib/userdb.tmp
R: /etc/courier/authlib/userdb.tmp
C: /usr/lib/courier/courier-authlib/makedatprog - /etc/courier/authlib/userdb.tmp /etc/courier/authlib/userdb.dat 
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: open_wr
S: deny
P: /etc/courier/authlib/userdbshadow.tmp
A: /etc/courier/authlib/userdbshadow.tmp
R: /etc/courier/authlib/userdbshadow.tmp
C: /usr/lib/courier/courier-authlib/makedatprog - /etc/courier/authlib/userdbshadow.tmp /etc/courier/authlib/userdbshadow.dat 
--------------------------------------------------------------------------------

emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 11 Jan 2010 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://213.186.33.37/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt ctype cups cxx doc dri fortran gd gdbm gif gmp gpm iconv imap ipv6 ithreads jadetex java6 jpeg kpathsea latex modules mudflap ncurses network nls nptl nptlonly openmp pam pcre perl php png postgres pppd python qmail-spp readline reflection session spell spl ssl suexec sysfs tcpd threads unicode usb vhosts x86 xml xorg 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Stewart Gebbie 2010-01-11 10:19:53 UTC
Hi,

I was able to emerge net-libs/courier-authlib-0.62.4 and avoid the access violation if I first removed /etc/courier.

In my case I use 'userdb' authentication. So, the steps where:
 1. mv /etc/courier to /etc/courier__
 2. emerge -uND net-libs/courier-authlib
 3. manually fix the config files the newly created /etc/courier and copy
    across my userdb file.
 4. rerun makeuserdb
 5. /etc/init.d/courier-authlib restart

This makes me wonder if the problem might be related to people using userdb authentication rather than the usual postgres etc. ?

Regards,
Stewart. 
Comment 8 mathijs 2010-01-23 10:18:41 UTC
This can be the case, as i have the same problem and are also using userdb auth.

Anyone has the same problem with other usage of the package?

Hm, this is more than a month old now and no dignified solution yet...
Comment 9 Hanno Böck gentoo-dev 2010-01-31 18:59:05 UTC
Can you try 0.63.0? We shouldn't need install-migrate any more, I've removed the call for it.
Comment 10 Chris Frederick 2010-02-04 16:46:22 UTC
Having the same problem here.  Adding 0.63.0 to the portage.keywords and updating worked for me though.
Comment 11 the_mgt 2010-04-16 09:14:07 UTC
Same problem, using userdb too.

Why isnt this fixed yet?
Comment 12 Hanno Böck gentoo-dev 2010-05-15 00:04:32 UTC
Fixed in 0.63.0, stabilization is handled in #319785
Comment 13 Joe Stewart 2010-05-17 20:20:20 UTC
Why isn't 0.63.0 marked stable yet?
Comment 14 Frank Breedijk 2010-06-11 14:16:59 UTC
Worked for me as well, but indeed 0.63.0 is still marked ~amd64