Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382753 - www-client/firefox-6.0 compiles and links but then wants to write outside of sandbox and gets permission denied
Summary: www-client/firefox-6.0 compiles and links but then wants to write outside of ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 402227 408573 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-12 22:22 UTC by Robert
Modified: 2012-12-15 19:14 UTC (History)
5 users (show)

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


Attachments
some of the build log from this compile, the relevent parts (buildlog-firefox-6.0,224.90 KB, text/plain)
2011-09-12 22:25 UTC, Robert
Details
Full build log with bz2 compression (firefox-6.0-build-log.bz2,236.49 KB, text/plain)
2011-09-13 01:41 UTC, Robert
Details
Full build log with bz2 compression (firefox-6.0-build-log.bz2,236.49 KB, application/x-bzip2)
2011-09-13 01:43 UTC, Robert
Details
insert "addpredict /dev/nvidiactl" to avoid sandbox violation failure (nvidiactl-sandbox.patch,337 bytes, patch)
2012-03-26 07:23 UTC, Yuri Karaban
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert 2011-09-12 22:22:58 UTC
see attached build log

Reproducible: Always

Steps to Reproduce:
1. emerge -av firefox
2.
3.
Actual Results:  
see attached build log

Expected Results:  
not try to write outside of sandbox environment

I am trying to build with FEATURES="-sandbox" but that is not really a fix if it does work, ill report if it does go through with this option but I don't feel the issue has been address. 

I asked in #gentoo and and this was all we could come with because my config seemed fine, here is the output of 'emerge --info firefox'::

Portage 2.1.10.15 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6600_@_2.20GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 09 Sep 2011 23:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.1.3-r1, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA googleearth Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -mssse3 -msse4.1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=core2 -mssse3 -msse4.1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://www.gtlib.gatech.edu/pub/gentoo/"
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://rsync8.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi aim alsa amd64 apm apng atm bash-completion bcmath berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdinstall cdparanoia cdr cgi cjk cli cpudetection cracklib crypt css cups curl curlwrappers cvs cxx dbi dbus dga djvu dri dts dv dvd dvdr emerald encode exif expat extras fastcgi fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm gif gimp ginac gpm gzip hddtemp iconv ieee1394 imagemagick imap ios ipod ipv6 java javascript joystick jpeg jpeg2k kde lame latex libmpeg2 libwww lm_sensors lock lzma matroska mime mmap mms mmx modules mp3 mp4 mpeg mplayer msn mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcmcia pcre pda pdf perl pgo php plasma png ppds pppd python qt3support qt4 quicktime readline samba sasl scanner sdl session smartcard sockets socks5 sound spell sse sse2 ssl ssse3 startup-notification subversion sysfs tcpd theora threads thunar tiff truetype udev unicode usb vcd vorbis wavpack wifi x264 xcb xcomposite xine xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" 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="kexi words flow plan stage tables krita karbon braindump" 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 synaptics" 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="radeon" 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
Comment 1 Robert 2011-09-12 22:25:17 UTC
Created attachment 286285 [details]
some of the build log from this compile, the relevent parts
Comment 2 Robert 2011-09-12 22:31:26 UTC
Actual results::

After firefox compiles and links an automation.py script is executed and tries to make directories in /root/ and gets permission denied due to sandbox being enabled. This causes emerge to fail.
Comment 3 Mike Gilbert gentoo-dev 2011-09-12 22:45:51 UTC
Please attach the full build log, compressed if necessary.
Comment 4 Robert 2011-09-12 22:50:20 UTC
Ok i will have to run emerge firefox again and let it fail so it will take a couple hours for me to get this log up. Unfortunately I did not save the full build log from before and started emerging with FEATURES="-sandbox". I just restarted emerge without this feature so that it will fail. Give me a couple hours to get this log up here. I was hoping that the cut out parts would be enough. My apologies.
Comment 5 Robert 2011-09-13 01:41:38 UTC
Created attachment 286291 [details]
Full build log with bz2 compression

Had to compress the log because it was 8 MB in plain text. Hope this helps.
Comment 6 Robert 2011-09-13 01:43:10 UTC
Created attachment 286293 [details]
Full build log with bz2 compression

full build log in bz2 compression. hope this helps.
Comment 7 Jory A. Pratt gentoo-dev 2011-09-13 04:10:25 UTC
(In reply to comment #6)
> Created attachment 286293 [details]
> Full build log with bz2 compression
> 
> full build log in bz2 compression. hope this helps.

I find this rather interesting as there is already and addpredict for /root.

The temporary solution is to simply disable pgo build. I will dig into the log deeper over next few days.
Comment 8 Robert 2011-09-13 05:16:44 UTC
Obviously this is not a fix but i got it to get past the fail point in the
posted build log by making the dir's /root/.gnome2_private /root/.gnome2 and
/root/.gnome2/accels myself and chmod 777 to each. Whether it fully compiles is
to be seen, just thought I would let you guys know. I will report back on
whether it builds completely or not whenever it gets done.
Comment 9 Robert 2011-09-13 07:15:22 UTC
Firefox compiles completely after i made the changes described above.
Comment 10 Nirbheek Chauhan (RETIRED) gentoo-dev 2012-01-28 05:12:54 UTC
Does this still happen with 9.0? Please re-sync since I made some changes today to the 9.0 ebuild which is relevant to this problem.
Comment 11 Jory A. Pratt gentoo-dev 2012-02-05 15:28:34 UTC
*** Bug 402227 has been marked as a duplicate of this bug. ***
Comment 12 Kamen Dokov 2012-02-05 15:33:42 UTC
(In reply to comment #10)
> Does this still happen with 9.0? Please re-sync since I made some changes today
> to the 9.0 ebuild which is relevant to this problem.

Yes, it does! Look at this duplicate Bug 402227
Comment 13 Nirbheek Chauhan (RETIRED) gentoo-dev 2012-02-05 15:44:30 UTC
I've made another change. Please sync and retry. It should *really* be fixed now.
Comment 14 Gunnar Eggen 2012-02-05 18:40:51 UTC
I still get the same error after resync.  Seems like the fix didn't work...
Comment 15 Kamen Dokov 2012-02-05 22:27:15 UTC
(In reply to comment #14)
> I still get the same error after resync.  Seems like the fix didn't work...

No luck here also...same error.
Comment 16 Kamen Dokov 2012-02-11 20:26:24 UTC
Same with firefox-10.0.1  :


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-3035.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: /dev/nvidiactl
A: /dev/nvidiactl
R: /dev/nvidiactl
C: /var/tmp/portage/www-client/firefox-10.0.1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin -no-remote -profile /var/tmp/portage/www-client/firefox-10.0.1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/_profile/pgo/pgoprofile/ http://localhost:8888/index.html
Comment 17 Dell'Aica Valentino 2012-03-17 09:02:36 UTC
Confirmed on firefox-11 with +pgo flag

>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-3232.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: /dev/nvidiactl
A: /dev/nvidiactl
R: /dev/nvidiactl
C: /var/tmp/portage/www-client/firefox-11.0/work/mozilla-release/obj-i686-pc-linux-gnu/dist/firefox/firefox-bin -no-remote -profile /var/tmp/portage/www-client/firefox-11.0/work/mozilla-release/obj-i686-pc-linux-gnu/_profile/pgo/pgoprofile/ http://localhost:8888/index.html 
--------------------------------------------------------------------------------
Comment 18 Jory A. Pratt gentoo-dev 2012-03-17 13:45:46 UTC
*** Bug 408573 has been marked as a duplicate of this bug. ***
Comment 19 Yuri Karaban 2012-03-26 07:23:21 UTC
Created attachment 306683 [details, diff]
insert "addpredict /dev/nvidiactl" to avoid sandbox violation failure
Comment 20 Optimus 2012-04-12 13:59:29 UTC
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-1729.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: /dev/nvidiactl
A: /dev/nvidiactl
R: /dev/nvidiactl
C: /var/portagetmp/portage/www-client/firefox-11.0-r1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin -no-remote -profile /var/portagetmp/portage/www-client/firefox-11.0-r1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/_profile/pgo/pgoprofile/ http://localhost:8888/index.html

F: open_wr
S: deny
P: /dev/nvidiactl
A: /dev/nvidiactl
R: /dev/nvidiactl
C: /var/portagetmp/portage/www-client/firefox-11.0-r1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin --version
--------------------------------------------------------------------------------
Comment 21 Optimus 2012-04-12 14:03:43 UTC
Looks like thats all about https://bugs.gentoo.org/show_bug.cgi?id=394715 .
Its marked as FIXED, but definitely NOT foxed for me.
Comment 22 Kamen Dokov 2012-04-19 13:30:39 UTC
From today:



>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-19545.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: /dev/nvidiactl
A: /dev/nvidiactl
R: /dev/nvidiactl
C: /var/tmp/portage/www-client/firefox-11.0-r1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/firefox/firefox-bin -no-remote -profile /var/tmp/portage/www-client/firefox-11.0-r1/work/mozilla-release/obj-x86_64-unknown-linux-gnu/_profile/pgo/pgoprofile/ http://localhost:8888/index.html 
--------------------------------------------------------------------------------
Comment 23 Jory A. Pratt gentoo-dev 2012-12-15 19:14:23 UTC
PGO useflag has been masked until such a time we can properly support it in gentoo. Soon as we can we will unmask and support pgo builds for all users. At this time even upstream is having problems supporting pgo builds in Linux. I will continue to track there upstream to determine when best we can come back and review all pgo build failures. Please ignore resolution we no longer have an option for later.