Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633560 - app-admin/keepass-2.36 : sandbox issue (XDG_xxx_DIR related)
Summary: app-admin/keepass-2.36 : sandbox issue (XDG_xxx_DIR related)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alessandro Di Federico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 567192
  Show dependency tree
 
Reported: 2017-10-05 16:45 UTC by Toralf Förster
Modified: 2018-11-17 07:02 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.26 KB, text/plain)
2017-10-05 16:45 UTC, Toralf Förster
Details
app-admin:keepass-2.36:20171004-210010.log (app-admin:keepass-2.36:20171004-210010.log,30.35 KB, text/plain)
2017-10-05 16:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,216.78 KB, text/plain)
2017-10-05 16:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,38.10 KB, application/x-bzip)
2017-10-05 16:45 UTC, Toralf Förster
Details
sandbox-13047.log (sandbox-13047.log,417 bytes, text/plain)
2017-10-05 16:45 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 2017-10-05 16:45:35 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: 13.0-desktop_20170929-190915

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

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

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

emerge -qpv app-admin/keepass
[ebuild  N    ] app-admin/keepass-2.36  USE="-aot"
Comment 1 Toralf Förster gentoo-dev 2017-10-05 16:45:38 UTC
Created attachment 497738 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-10-05 16:45:41 UTC
Created attachment 497740 [details]
app-admin:keepass-2.36:20171004-210010.log
Comment 3 Toralf Förster gentoo-dev 2017-10-05 16:45:44 UTC
Created attachment 497742 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-10-05 16:45:47 UTC
Created attachment 497744 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-10-05 16:45:50 UTC
Created attachment 497746 [details]
sandbox-13047.log
Comment 6 Michael Palimaka (kensington) gentoo-dev 2017-10-07 04:01:25 UTC
I guess this is something to do with newer mono, it works for me on stable  even with those directories forced.
Comment 7 Sander Sweers 2018-06-30 10:48:35 UTC
Its not xdg related. I don't have these set and I get the same sandbox violations.

Mono has a registry at /etc/mono/registry and it attempts writing to it. Last time I tried keepass I did not run into this. I'll try mono 4.x (fails building atm) and report if this changes things.
Comment 8 Sander Sweers 2018-06-30 18:26:50 UTC
ignore me, there are additional sanbox violations when using mono 5. I'll open a separate bug for that. Sorry for the noise :-(
Comment 9 Alessandro Di Federico 2018-09-29 09:39:18 UTC
I can't reproduce this with =dev-lang/mono-5.14.0.177.

Is setting those variables before calling emerge enough or should I force them through package.env?

In both cases, can't reproduce.

It might have been fixed in >dev-lang/mono-4.8.0.524 (the one employed for this bug).
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-29 09:54:06 UTC
XDG* issues should no longer be relevant in EAPI 7.  Except for real corner cases.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2018-11-17 07:02:56 UTC
It seems it's no longer possible to reproduce this, even with XDG directories forced like in comment #0. Please re-open if this crops up again.