Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573732 - app-accessibility/speech-dispatcher - sandbox violation from git-version-get under certain condition trying use git to clone form git repo instead using tarball.
Summary: app-accessibility/speech-dispatcher - sandbox violation from git-version-get ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 558556
  Show dependency tree
 
Reported: 2016-02-03 04:02 UTC by Oleh
Modified: 2018-01-28 20:21 UTC (History)
2 users (show)

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


Attachments
patch (speech-dispatcher-0.8.3-git-check.patch,489 bytes, patch)
2016-02-03 04:04 UTC, Oleh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2016-02-03 04:02:38 UTC
git-version-get, which is used in build system for checking tarball origin under certain conditions can report that tarball is dirty and trying to git clone from upstream git repository of a package. it should check if tarball is a release and stop.
This gives sandbox violation during emerge.

Reproducible: Always

Steps to Reproduce:
1. have .git in / Any repository
2. emerge speech-dispatcher
3. notice a sandbox violation
Actual Results:  
...
checking for xgettext... (cached) /usr/bin/xgettext
 * ACCESS DENIED:  open_wr:      /.git/index.lock
 * ACCESS DENIED:  open_wr:      /.git/index.lock
 * ACCESS DENIED:  open_wr:      /.git/index.lock
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
...
Comment 1 Oleh 2016-02-03 04:04:36 UTC
Created attachment 424512 [details, diff]
patch
Comment 2 Larry the Git Cow gentoo-dev 2018-01-28 20:21:22 UTC
The bug has been closed via the following commit(s):

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

commit adc72bb8a7dcdd0866e9030ff4610e9c13cce08b
Author:     Michael Weber <xmw@gentoo.org>
AuthorDate: 2018-01-28 20:21:05 +0000
Commit:     Michael Weber <xmw@gentoo.org>
CommitDate: 2018-01-28 20:21:05 +0000

    app-accessibility/speech-dispatcher: Limit errornous git invocation to ${WORKDIR} by exporting GIT_CEILING_DIRECTORIES.
    
    Closes: https://bugs.gentoo.org/573732
    Bug: https://bugs.gentoo.org/558556
    Package-Manager: Portage-2.3.20, Repoman-2.3.6

 app-accessibility/speech-dispatcher/speech-dispatcher-0.8.3.ebuild | 5 ++++-
 app-accessibility/speech-dispatcher/speech-dispatcher-0.8.7.ebuild | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)