Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592228 - app-arch/rpm- : sandbox issue (XDG_xxx_DIR related)
Summary: app-arch/rpm- : sandbox issue (XDG_xxx_DIR related)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon
Depends on:
Blocks: 567192
  Show dependency tree
Reported: 2016-08-27 07:58 UTC by Toralf Förster
Modified: 2020-04-15 02:29 UTC (History)
0 users

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

app-arch:rpm- (app-arch:rpm-,153.21 KB, text/plain)
2016-08-27 07:58 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,212.75 KB, text/plain)
2016-08-27 07:59 UTC, Toralf Förster
sandbox-965.log (sandbox-965.log,4.68 KB, text/plain)
2016-08-27 07:59 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-08-27 07:58:52 UTC
This issue is forced at the tinderbox by making:

export XDG_DESKTOP_DIR="/root/Desktop"
export XDG_DOCUMENTS_DIR="/root/Documents"
export XDG_DOWNLOAD_DIR="/root/Downloads"
export XDG_MUSIC_DIR="/root/Music"
export XDG_PICTURES_DIR="/root/Pictures"
export XDG_PUBLICSHARE_DIR="/root/Public"
export XDG_TEMPLATES_DIR="/root/Templates"
export XDG_VIDEOS_DIR="/root/Videos"
export XDG_RUNTIME_DIR="/root/run"
export XDG_CONFIG_HOME="/root/config"
export XDG_CACHE_HOME="/root/cache"
export XDG_DATA_HOME="/root/share"

pls see bug #567192 too

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: mkdir
S: deny
P: /root/cache
A: /root/cache
R: /root/cache
C: dot /var/tmp/portage/app-arch/rpm- -Tpng -o /var/tmp/portage/app-arch/rpm- 

F: mkdir
S: deny
P: /root/cache
A: /root/cache
R: /root/cache

$ cat emerge-info.txt

  This is an stable amd64 chroot image (named amd64-hardened-stable_20160821-193853) at a hardened host acting as a tinderbox.

  USE flags defined in ...

  ... make.conf:
USE="  pax_kernel xtpax -cdinstall -oci8 -bindist X a52 aac aes-ni alsa apache2 avx avx2 cgroups consolekit corefonts cups custom-cflags custom-optimization dbus dnssec dvb dvd ecc encode exif fam ffmpeg flac fontconfig fpm gif git glamor gnuplot gpg gtk gui help hwaccel icu isag jpeg lcms libnotify libvirtd logrotate mad matroska mbox minizip mng mp3 mp4 mpeg mpg123 ogg orc pcre16 pdf png policykit pwquality qemu qml qt3support qt5 rtsp samba script scrypt sddm snmp spice sse2 sse4 sse4_1 sse4_2 ssh-askpass ssse3 startup-notification svg system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite theora thinkpad tiff tls tor-hardening tracepath traceroute truetype udev uml usb usbredir uxa v4l v4l2 vaapi vcdx vorbis vpx widgets x264 xa xcb xinerama xkb xml xscreensaver xvfb xvid xz zenmap -bindist -bluetooth -hpn -ldap -qt4 -semantic-desktop -sslv2 -sslv3 -urandom"

  ... /etc/portage/package.use/*:
  mail-mta/ssmtp    ssl mta
  net-misc/wget     ssl
  app-editors/emacs   -dbus -svg -ssl -gtk -gtk3
  dev-libs/boehm-gc   threads
  dev-libs/libpcre    pcre16
  dev-util/cmake      -qt4 -qt5
  gnome-base/librsvg  -tools
  media-libs/mesa     -vaapi
  net-misc/iputils -caps -filecaps

  unmasked packages in /etc/portage/package.unmask/*:


gcc-config -l:
 [1] x86_64-pc-linux-gnu-4.9.3
 [2] x86_64-pc-linux-gnu-4.9.3-hardenednopie
 [3] x86_64-pc-linux-gnu-4.9.3-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.9.3-hardenednossp
 [5] x86_64-pc-linux-gnu-4.9.3-vanilla
 [6] x86_64-pc-linux-gnu-4.9.4 *
 [7] x86_64-pc-linux-gnu-4.9.4-hardenednopie
 [8] x86_64-pc-linux-gnu-4.9.4-hardenednopiessp
 [9] x86_64-pc-linux-gnu-4.9.4-hardenednossp
 [10] x86_64-pc-linux-gnu-4.9.4-vanilla
Available Java Virtual Machines:
  [1]   icedtea-bin-7  system-vm
  [2]   icedtea-bin-8 
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.4
Available Ruby profiles:
  [1]   ruby20 (with Rubygems) *
  [2]   ruby21 (with Rubygems)

Portage 2.2.28 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.4, glibc-2.22-r4, 4.7.2-hardened x86_64)
                         System Settings
System uname: Linux-4.7.2-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    65285360 total,  10847712 free
KiB Swap:   67108860 total,  67094916 free
Timestamp of repository gentoo: Fri, 26 Aug 2016 17:44:44 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: 1

    location: /usr/local/portage
    masters: gentoo
    priority: 2

CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/lib64/fax /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-march=native -O2 -pipe"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" rsync:// rsync://"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl aes-ni alsa amd64 apache2 avx avx2 berkdb bzip2 cgroups cli consolekit corefonts cracklib crypt cups custom-cflags custom-optimization cxx dbus dnssec dri dvb dvd ecc encode exif fam ffmpeg flac fontconfig fpm gdbm gif git glamor gnuplot gpg gtk gui hardened help hwaccel iconv icu ipv6 isag jpeg justify lcms libnotify libvirtd logrotate mad matroska mbox minizip mmx mmxext mng modules mp3 mp4 mpeg mpg123 multilib ncurses nls nptl ogg openmp orc pam pax_kernel pcre pcre16 pdf pie png policykit pwquality qemu qml qt3support qt5 readline rtsp samba script scrypt sddm seccomp session snmp spice sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssp ssse3 startup-notification svg system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite tcpd theora thinkpad tiff tls tor-hardening tracepath traceroute truetype udev uml unicode usb usbredir uxa v4l v4l2 vaapi vcdx vorbis vpx widgets x264 xa xattr xcb xinerama xkb xml xscreensaver xtpax xvfb xvid xz zenmap zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="cy fo hy id pt-BR te tn tr ur-PK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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"
Comment 1 Toralf Förster gentoo-dev 2016-08-27 07:58:58 UTC
Created attachment 444228 [details]
Comment 2 Toralf Förster gentoo-dev 2016-08-27 07:59:01 UTC
Created attachment 444230 [details]
Comment 3 Toralf Förster gentoo-dev 2016-08-27 07:59:03 UTC
Created attachment 444232 [details]