Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374055 - www-servers/lighttpd-1.4.29 sandbox violations
Summary: www-servers/lighttpd-1.4.29 sandbox violations
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-07-04 18:04 UTC by Nick Bowler
Modified: 2011-07-05 08:37 UTC (History)
2 users (show)

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 Nick Bowler 2011-07-04 18:04:07 UTC
Attempting to install lighttpd-1.4.29 results in the following sandbox
violations.  This is apparently because the lighttpd ebuild is trying to
overwrite my config files, which is extremely uncool behaviour.

The temporary file that sandbox prevented the rename/delete on is left behind
and has to be manually removed; I'm a bit surprised that sandbox didn't prevent
it from being created in the first place.

  ACCESS DENIED  rename:       /etc/lighttpd/sedE7z30Z
  ACCESS DENIED  unlink:       /etc/lighttpd/sedE7z30Z
  sed: cannot remove /etc/lighttpd/sedE7z30Z: Permission denied
   * ERROR: www-servers/lighttpd-1.4.29 failed (install phase):
   *   (no error message)
   * 
   * Call stack:
   *     ebuild.sh, line   56:  Called src_install
   *   environment, line 3520:  Called update_config
   *   environment, line 4097:  Called die
   * The specific snippet of code:
   *           sed -i -e 's|#\(.*stat-cache.*$\)|\1|' ${config} || die
   * 
   * If you need support, post the output of 'emerge --info =www-servers/lighttpd-1.4.29',
   * the complete build log and the output of 'emerge -pqv =www-servers/lighttpd-1.4.29'.
   * The complete build log is located at '/var/log/portage/www-servers:lighttpd-1.4.29:20110704-175157.log'.
   * The ebuild environment file is located at '/var/tmp/portage/www-servers/lighttpd-1.4.29/temp/environment'.
   * S: '/var/tmp/portage/www-servers/lighttpd-1.4.29/work/lighttpd-1.4.29'
  --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
  LOG FILE "/var/log/sandbox/sandbox-13279.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: rename
  S: deny
  P: /etc/lighttpd/sedE7z30Z
  A: /etc/lighttpd/sedE7z30Z
  R: /etc/lighttpd/sedE7z30Z
  C: sed -i -e s|#\(.*stat-cache.*$\)|\1| /etc/lighttpd/lighttpd.conf 
  
  F: unlink
  S: deny
  P: /etc/lighttpd/sedE7z30Z
  A: /etc/lighttpd/sedE7z30Z
  R: /etc/lighttpd/sedE7z30Z
  C: sed -i -e s|#\(.*stat-cache.*$\)|\1| /etc/lighttpd/lighttpd.conf 
  --------------------------------------------------------------------------------

Portage 2.2.0_alpha43 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.39.2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39.2-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.3
Timestamp of tree: Mon, 04 Jul 2011 16:45:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.1.3-r1, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1::gentoo-draconx
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo gentoo-draconx
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d/binutils /etc/env.d/gcc /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ja"
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.ca.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cjk cli cracklib crypt cscope cups curl cxx djvu doc dri dts dvd dvdr emboss encode exif faad fam fbcon ffmpeg firefox flac fontconfig fontforge fortran gdbm gdu gif gimp gmp gnutls gphoto2 gpm graphviz gs gtk iconv icu idn imagemagick iproute2 ipv6 jack jadetex jpeg jpeg2k kpathsea latex lcms libsamplerate lua mad mmx mng modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pppd python qt3support readline samba sdl session speex sse sse2 ssl svg sysfs tcpd theora tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xcomposite xft xinerama xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp3900" USERLAND="GNU" VIDEO_CARDS="fbdev tdfx nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[ebuild     U ] www-servers/lighttpd-1.4.29 [1.4.28-r2] USE="bzip2 doc fam gdbm ipv6 lua pcre ssl zlib%* -kerberos% -ldap -libev -memcache -minimal -mysql -php -rrdtool -test -webdav -xattr"
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-07-04 18:06:46 UTC
This is already fixed in -r1. I will leave this bug open until the new version hits the rsync servers
Comment 2 Nick Bowler 2011-07-04 18:43:09 UTC
Great, thanks.

I filed bug 374059 about sandbox not blocking the original file create.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2011-07-04 22:12:04 UTC
This should be on gentoo mirrors by now. Closing as fixed