public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] sandbox and $HOME
@ 2008-11-06 11:53 Helmut Jarausch
  2008-11-06 11:58 ` Alan McKinnon
  0 siblings, 1 reply; 3+ messages in thread
From: Helmut Jarausch @ 2008-11-06 11:53 UTC (permalink / raw
  To: gentoo-user

Hi,

I am trying to write an ebuild for media-libs/babl-9999
Unfortunately, probably when making docs, it invokes
inkscape which wants to access and write to
/root/.config/Inkscape

which probably comes from
$(HOME)/.config/Inkscape

This violates the sandbox - see below -

What can I do about it?

Many thanks for a hint,
Helmut.


--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-2363.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: mkdir
S: deny
P: /root/.config/Inkscape
A: /root/.config/Inkscape
R: /root/.config/Inkscape
C: /usr/bin/inkscape -e babl-a4poster.png babl-a4poster.svg -w 256 -y 0 2 

F: open_wr
S: deny
P: /root/.config/Inkscape/extension-errors.log
A: /root/.config/Inkscape/extension-errors.log
R: /root/.config/Inkscape/extension-errors.log
C: /usr/bin/inkscape -e babl-a4poster.png babl-a4poster.svg -w 256 -y 0 2 



-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] sandbox and $HOME
  2008-11-06 11:53 [gentoo-user] sandbox and $HOME Helmut Jarausch
@ 2008-11-06 11:58 ` Alan McKinnon
  2008-11-06 18:34   ` Helmut Jarausch
  0 siblings, 1 reply; 3+ messages in thread
From: Alan McKinnon @ 2008-11-06 11:58 UTC (permalink / raw
  To: gentoo-user

On Thursday 06 November 2008 13:53:47 Helmut Jarausch wrote:
> Hi,
>
> I am trying to write an ebuild for media-libs/babl-9999
> Unfortunately, probably when making docs, it invokes
> inkscape which wants to access and write to
> /root/.config/Inkscape
>
> which probably comes from
> $(HOME)/.config/Inkscape
>
> This violates the sandbox - see below -
>
> What can I do about it?

Posting the ebuild you are using would be a good start......

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] sandbox and $HOME
  2008-11-06 11:58 ` Alan McKinnon
@ 2008-11-06 18:34   ` Helmut Jarausch
  0 siblings, 0 replies; 3+ messages in thread
From: Helmut Jarausch @ 2008-11-06 18:34 UTC (permalink / raw
  To: gentoo-user

On  6 Nov, Alan McKinnon wrote:
> On Thursday 06 November 2008 13:53:47 Helmut Jarausch wrote:
>> Hi,
>>
>> I am trying to write an ebuild for media-libs/babl-9999
>> Unfortunately, probably when making docs, it invokes
>> inkscape which wants to access and write to
>> /root/.config/Inkscape
>>
>> which probably comes from
>> $(HOME)/.config/Inkscape
>>
>> This violates the sandbox - see below -
>>
>> What can I do about it?
> 
> Posting the ebuild you are using would be a good start......
> 

Here it is : (it's simple modification of babl-0.0.22)

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils subversion

DESCRIPTION="Dynamic, any to any, pixel format conversion library"
HOMEPAGE="http://www.gegl.org/babl/"
#SRC_URI="ftp://ftp.gtk.org/pub/${PN}/0.0/${P}.tar.bz2"

ESVN_REPO_URI="http://svn.gnome.org/svn/babl/trunk/"
ESVN_PROJECT="${PN}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="sse mmx"

DEPEND="virtual/libc"

S=${WORKDIR}/${PN}

src_compile() {
	./autogen.sh || die "autogen failed" 
	econf $(use_enable mmx) \
		$(use_enable sse) \
		|| die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake install DESTDIR=${D} || die "emake install failed"
	find "${D}" -name '*.la' -delete
	dodoc AUTHORS COPYING ChangeLog INSTALL README
}

=========================================

The last messages are: ( I have USE=doc )

make[3]: Entering directory `/var/tmp/portage/media-libs/babl-9999/work/babl/doc
s/graphics'
 SVG: babl-a4poster.png [OK]
 SVG: babl-16x16.png [OK]
HTML: BablFishPath.html [OK]
 SVG: babl-48x48.png [OK]
make[3]: Leaving directory `/var/tmp/portage/media-libs/babl-9999/work/babl/docs
/graphics'
 RSS: changelog.rss [OK]
HTML: index.html. [OK]
 [OK]
make[2]: Leaving directory `/var/tmp/portage/media-libs/babl-9999/work/babl/docs
'
make[2]: Entering directory `/var/tmp/portage/media-libs/babl-9999/work/babl'
make[2]: Leaving directory `/var/tmp/portage/media-libs/babl-9999/work/babl'
make[1]: Leaving directory `/var/tmp/portage/media-libs/babl-9999/work/babl'
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-29334.log"

mkdir:     /root/.config/Inkscape
open_wr:   /root/.config/Inkscape/extension-errors.log
mkdir:     /root/.config/Inkscape
open_wr:   /root/.config/Inkscape/extension-errors.log
mkdir:     /root/.config/Inkscape
open_wr:   /root/.config/Inkscape/extension-errors.log


Many thanks for any hints,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-06 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-06 11:53 [gentoo-user] sandbox and $HOME Helmut Jarausch
2008-11-06 11:58 ` Alan McKinnon
2008-11-06 18:34   ` Helmut Jarausch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox