Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657346 - dev-util/ostree-2018.5 : sandbox issue (XDG_xxx_DIR related)
Summary: dev-util/ostree-2018.5 : sandbox issue (XDG_xxx_DIR related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 567192
  Show dependency tree
 
Reported: 2018-06-04 17:26 UTC by Toralf Förster
Modified: 2018-06-05 01:47 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.39 KB, text/plain)
2018-06-04 17:26 UTC, Toralf Förster
Details
dev-util:ostree-2018.5:20180603-223020.log (dev-util:ostree-2018.5:20180603-223020.log,398.90 KB, text/plain)
2018-06-04 17:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,143.75 KB, text/plain)
2018-06-04 17:26 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.95 KB, application/x-bzip)
2018-06-04 17:26 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.12 KB, application/x-bzip)
2018-06-04 17:26 UTC, Toralf Förster
Details
sandbox-16825.log (sandbox-16825.log,4.57 KB, text/plain)
2018-06-04 17:26 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-04 17:26:25 UTC
This issue is forced at the tinderbox (pls see bug #567192 too) by setting:

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"

sandbox output:

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: mkdir
S: deny

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_20180531-215903

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.7.0 [icedtea-8]
Available Java Virtual Machines:
  [1]   icedtea-8  system-vm

emerge -qpv dev-util/ostree
[ebuild  N    ] dev-util/ostree-2018.5  USE="-grub (-selinux) -soup -systemd -zeroconf"
Comment 1 Toralf Förster gentoo-dev 2018-06-04 17:26:28 UTC
Created attachment 534764 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-04 17:26:31 UTC
Created attachment 534766 [details]
dev-util:ostree-2018.5:20180603-223020.log
Comment 3 Toralf Förster gentoo-dev 2018-06-04 17:26:35 UTC
Created attachment 534768 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-06-04 17:26:38 UTC
Created attachment 534770 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-06-04 17:26:40 UTC
Created attachment 534772 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-04 17:26:44 UTC
Created attachment 534774 [details]
sandbox-16825.log
Comment 7 Larry the Git Cow gentoo-dev 2018-06-05 01:47:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af07120bf282bf6465eed1a35249826061edfd32

commit af07120bf282bf6465eed1a35249826061edfd32
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-06-05 01:44:40 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-06-05 01:44:47 +0000

    dev-util/ostree: fix XDG_* sandbox violation (bug 657346)
    
    Reported-by: Toralf Förster <toralf@gentoo.org>
    Closes: https://bugs.gentoo.org/657346
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-util/ostree/ostree-2018.5.ebuild | 1 +
 1 file changed, 1 insertion(+)