On a system booted with a kdbus-enabled systemd, git will trigger lots of open_wr sandbox violations for /sys/fs/kdbus/0-system/bus when fetching sources. This makes all live ebuilds fetches through git fail to install. Reproducible: Always Steps to Reproduce: 1. Install git (I've got dev-vcs/git-2.5.0 with these flags enabled: blksha1 curl gpg iconv nls pcre threads webdav) 2. Use a system booted with systemd and kdbus enabled (gentoo-sources with +experimental +kdbus) 3. Try to install a live ebuild Actual Results: emerge -av btrfs-sxbackup # this is a local ebuild These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] app-backup/btrfs-sxbackup-0.5.8::fol4 PYTHON_SINGLE_TARGET="python3_4 -python3_3" PYTHON_TARGETS="python3_4 -python3_3" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-backup/btrfs-sxbackup-0.5.8::fol4 >>> Unpacking source... Initialized empty Git repository in /var/distfiles/git3-src/masc3d_btrfs-sxbackup.git/ * Fetching https://github.com/masc3d/btrfs-sxbackup.git ... * ACCESS DENIED: open_wr: /sys/fs/kdbus/0-system/bus git fetch https://github.com/masc3d/btrfs-sxbackup.git +refs/tags/0.5.8:refs/tags/0.5.8 * ACCESS DENIED: open_wr: /sys/fs/kdbus/0-system/bus remote: Counting objects: 569, done. remote: Total 569 (delta 0), reused 0 (delta 0), pack-reused 569 Receiving objects: 100% (569/569), 127.53 KiB | 0 bytes/s, done. Resolving deltas: 100% (354/354), done. From https://github.com/masc3d/btrfs-sxbackup * [new tag] 0.5.8 -> 0.5.8 * [new tag] 0.2.5 -> 0.2.5 * [new tag] 0.3.0 -> 0.3.0 * [new tag] 0.3.2 -> 0.3.2 * [new tag] 0.3.3 -> 0.3.3 * [new tag] 0.3.4 -> 0.3.4 * [new tag] 0.3.6 -> 0.3.6 * [new tag] 0.4.0 -> 0.4.0 * [new tag] 0.4.1 -> 0.4.1 * [new tag] 0.4.2 -> 0.4.2 * [new tag] 0.4.3 -> 0.4.3 * [new tag] 0.4.4 -> 0.4.4 * [new tag] 0.4.5 -> 0.4.5 * [new tag] 0.5.2 -> 0.5.2 * [new tag] 0.5.4 -> 0.5.4 * [new tag] 0.5.5 -> 0.5.5 * [new tag] 0.5.6 -> 0.5.6 * [new tag] 0.5.7 -> 0.5.7 git symbolic-ref refs/git-r3/app-backup/btrfs-sxbackup/0/__main__ refs/tags/0.5.8 * Checking out https://github.com/masc3d/btrfs-sxbackup.git to /var/tmp/portage/app-backup/btrfs-sxbackup-0.5.8/work/btrfs-sxbackup-0.5.8 ... git checkout --quiet refs/tags/0.5.8 GIT NEW branch --> repository: https://github.com/masc3d/btrfs-sxbackup.git at the commit: 62ce026038412b28d8d44a23d7942627aad0f996 >>> Source unpacked in /var/tmp/portage/app-backup/btrfs-sxbackup-0.5.8/work * --------------------------- ACCESS VIOLATION SUMMARY --------------------------- * LOG FILE: "/var/log/sandbox/sandbox-5415.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: /sys/fs/kdbus/0-system/bus A: /sys/fs/kdbus/0-system/bus R: /sys/fs/kdbus/0-system/bus C: git-remote-https https://github.com/masc3d/btrfs-sxbackup.git https://github.com/masc3d/btrfs-sxbackup.git F: open_wr S: deny P: /sys/fs/kdbus/0-system/bus A: /sys/fs/kdbus/0-system/bus R: /sys/fs/kdbus/0-system/bus C: git-remote-https https://github.com/masc3d/btrfs-sxbackup.git https://github.com/masc3d/btrfs-sxbackup.git * -------------------------------------------------------------------------------- >>> Failed to emerge app-backup/btrfs-sxbackup-0.5.8, Log file: >>> '/var/tmp/portage/app-backup/btrfs-sxbackup-0.5.8/temp/build.log' Expected Results: That the sources can be fetched without sandbox violations. # emerge --info Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2, 4.1.0-gentoo x86_64) ================================================================= System uname: Linux-4.1.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-4200U_CPU_@_1.60GHz-with-gentoo-2.2 KiB Mem: 8088812 total, 84968 free KiB Swap: 524284 total, 524284 free Timestamp of repository gentoo: Wed, 05 Aug 2015 11:15:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25 p1.2) 2.25 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2-r1::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25-r1::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo/gentoo-portage-rsync-mirror priority: -1000 local location: /var/db/repos/local masters: gentoo emc location: /var/lib/layman/emc sync-type: laymansync sync-uri: https://github.com/emcek/gentoo.mipl.git masters: gentoo priority: 50 fol4 location: /var/lib/layman/fol4 sync-type: laymansync sync-uri: git://github.com/madsl/fol4.git masters: gentoo priority: 50 gamerlay location: /var/lib/layman/gamerlay sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/gamerlay.git masters: gentoo priority: 50 gnome location: /var/lib/layman/gnome sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/gnome.git masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE AdobeFlash-11.x google-chrome skype-4.0.0.7-copyright" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/var/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org/" INSTALL_MASK=" /usr/share/bash-completion /etc/runlevels /etc/conf.d /etc/init.d " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi aes aes-ni alsa amd64 avx avx2 branding bzip2 c++0x cairo caps cli cracklib crypt cups cxx dbus dri dts dvdr eds emboss encode evo exif fam ffmpeg firefox flac fma3 fortran gif glamor gnome gnome-keyring gstreamer gtk gtk3 gtkstyle hidpi hvm iconv icu idn introspection jpeg kdbus lcms libnotify libsecret lto lzma mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit popcnt ppds pulseaudio qt3support readline sdl session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="net pixma" USERLAND="GNU" VIDEO_CARDS="i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.4" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # systemctl --version systemd 224 +PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN $ lddtree /usr/libexec/git-core/git-remote-https git-remote-https => /usr/libexec/git-core/git-remote-https (interpreter => /lib64/ld-linux-x86-64.so.2) libpcre.so.1 => /lib64/libpcre.so.1 libz.so.1 => /lib64/libz.so.1 libpthread.so.0 => /lib64/libpthread.so.0 librt.so.1 => /lib64/librt.so.1 libcurl.so.4 => /usr/lib64/libcurl.so.4 libidn.so.11 => /usr/lib64/libidn.so.11 libssl3.so => /usr/lib64/libssl3.so libsmime3.so => /usr/lib64/libsmime3.so libnss3.so => /usr/lib64/libnss3.so libnssutil3.so => /usr/lib64/libnssutil3.so libplds4.so => /usr/lib64/libplds4.so libplc4.so => /usr/lib64/libplc4.so libnspr4.so => /usr/lib64/libnspr4.so libdl.so.2 => /lib64/libdl.so.2 libc.so.6 => /lib64/libc.so.6 My git version: [ebuild R ] dev-vcs/git-2.5.0::gentoo USE="blksha1 curl gpg iconv nls pcre threads webdav -cgi -cvs -doc -emacs -gnome-keyring -gtk -highlight -mediawiki -perl (-ppcsha1) -python -subversion {-test} -tk -xinetd" PYTHON_TARGETS="python2_7" 0 KiB
This is something I won't be able to look into as I neither use systemd nor am I going to use kdbus in the near future. Sorry if that sounds quite disappointing but I don't have any free resources to set up a Gentoo environment with systemd/kdbus.
I believe this ticket is obsolete, if the problem persists, please reopen