Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737656 - net-libs/libslirp-4.3.1: sandbox violation (git update-index --refresh)
Summary: net-libs/libslirp-4.3.1: sandbox violation (git update-index --refresh)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-17 12:59 UTC by Pietro
Modified: 2020-08-20 21:54 UTC (History)
1 user (show)

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


Attachments
emerge --info (libslirp.txt,5.59 KB, text/plain)
2020-08-17 12:59 UTC, Pietro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pietro 2020-08-17 12:59:53 UTC
Created attachment 655096 [details]
emerge --info

Hello guys,

today I ran into this issue when updating the system using -auDN @world. I have asked in IRC if anyone had ever seen this error and was told that it is a bug and to file a bug report.

Emerge --info attached with this bug report.

Thanks,
Pietro

admin@gentoo ~ $ sudo emerge -auDN @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libslirp-4.3.1 
[ebuild     U  ] app-emulation/qemu-5.0.0-r2 [5.0.0-r1] USE="slirp%*" 

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Running pre-merge checks for app-emulation/qemu-5.0.0-r2
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.4.48-gentoo-x86_64
 * Checking for suitable kernel configuration options...                              [ ok ]
>>> Emerging (1 of 2) net-libs/libslirp-4.3.1::gentoo
>>> Failed to emerge net-libs/libslirp-4.3.1, Log file:
>>>  '/var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/temp/build.log'
>>> Jobs: 0 of 2 complete, 1 failed                 Load avg: 0.94, 0.74, 0.82
 * Package:    net-libs/libslirp-4.3.1
 * Repository: gentoo
 * Maintainer: zmedico@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libslirp-4.3.1.tar.gz to /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work
>>> Source unpacked in /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work
>>> Preparing source in /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-v4.3.1 ...
>>> Source prepared.
>>> Configuring source in /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-v4.3.1 ...
meson setup --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/temp/meson.x86_64-pc-linux-gnu.amd64.ini /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-v4.3.1 /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-4.3.1-build
The Meson build system
Version: 0.54.2
Source dir: /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-v4.3.1
Build dir: /var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-4.3.1-build
Build type: native build
 * ACCESS DENIED:  open_wr:      /var/db/repos/gentoo/.git/index.lock
Project name: libslirp
Project version: 4.3.1-dirty
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 9.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 9.3.0-r1 p3) 9.3.0")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.33.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program build-aux/meson-dist found: YES (/var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/work/libslirp-v4.3.1/build-aux/meson-dist)
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.6.3)
Run-time dependency glib-2.0 found: YES 2.62.6
Configuring libslirp-version.h using configuration
Build targets in project: 1

Found ninja-1.9.0.git.kitware.dyndep-1.jobserver-1 at /usr/bin/ninja
>>> Source configured.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/db/repos/gentoo/portage/net-libs/libslirp-4.3.1/temp/sandbox.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: open_wr
S: deny
P: /var/db/repos/gentoo/.git/index.lock
A: /var/db/repos/gentoo/.git/index.lock
R: /var/db/repos/gentoo/.git/index.lock
C: git update-index --refresh 
 * --------------------------------------------------------------------------------
admin@gentoo ~ $
Comment 1 Pietro 2020-08-20 10:32:16 UTC
I have got the same issue and I am not using dash 
admin@gentoo ~ $ echo $SHELL
/bin/bash
admin@gentoo ~ $ 

In my case the package is a dependency of qemu

admin@gentoo ~ $ equery d libsdl2
 * These packages depend on libsdl2:
app-emulation/qemu-5.0.0-r1 (sdl ? media-libs/libsdl2[video])
                            (sdl ? media-libs/libsdl2)
                            (sdl ? media-libs/libsdl2[static-libs(+)])
media-video/ffmpeg-4.2.4 (sdl ? media-libs/libsdl2[sound,video,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
x11-libs/wxGTK-3.0.4-r2 (sdl ? media-libs/libsdl2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
x11-libs/wxGTK-3.0.4-r302 (sdl ? media-libs/libsdl2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
admin@gentoo ~ $
Comment 2 Pietro 2020-08-20 10:33:42 UTC
Please ignore my comment made at 2020-08-20 10:32:16 UTC as it is not relevant to this issue.
Comment 3 Larry the Git Cow gentoo-dev 2020-08-20 21:53:11 UTC
The bug has been closed via the following commit(s):

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

commit 8a31ddedbfa3ff0421673c910de4b9e93a8ebfc5
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-08-20 21:51:40 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-08-20 21:53:05 +0000

    net-libs/libslirp: Fix sandbox violation #737656
    
    Reported-by: Pietro <pietro.sammarco@googlemail.com>
    Closes: https://bugs.gentoo.org/737656
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 net-libs/libslirp/libslirp-4.3.1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Zac Medico gentoo-dev 2020-08-20 21:54:03 UTC
Thanks!