From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cjohMbvPTGA/QQAA0tVLHw (envelope-from ) for ; Sat, 13 Mar 2021 14:44:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gBDKLLvPTGDoYQAAB5/wlQ (envelope-from ) for ; Sat, 13 Mar 2021 14:44:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 268DB14BDE for ; Sat, 13 Mar 2021 15:44:11 +0100 (CET) Received: from localhost ([::1]:40374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lL5Uw-0001lG-2x for larch@yhetil.org; Sat, 13 Mar 2021 09:44:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lL5Uo-0001je-Mt for bug-guix@gnu.org; Sat, 13 Mar 2021 09:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lL5Uo-0001k3-Er for bug-guix@gnu.org; Sat, 13 Mar 2021 09:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lL5Uo-0007Mm-CH for bug-guix@gnu.org; Sat, 13 Mar 2021 09:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#47106: Bubblewrap hates Guix containers =?UTF-8?Q?=F0=9F=98=9E?= Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 13 Mar 2021 14:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47106 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bengt Richter Received: via spool by 47106-submit@debbugs.gnu.org id=B47106.161564660228262 (code B ref 47106); Sat, 13 Mar 2021 14:44:02 +0000 Received: (at 47106) by debbugs.gnu.org; 13 Mar 2021 14:43:22 +0000 Received: from localhost ([127.0.0.1]:59376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL5UA-0007Lm-GJ for submit@debbugs.gnu.org; Sat, 13 Mar 2021 09:43:22 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:25627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lL5U7-0007Lb-V8 for 47106@debbugs.gnu.org; Sat, 13 Mar 2021 09:43:21 -0500 Received: from nijino.local (217-149-164-20.nat.highway.telekom.at [217.149.164.20]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DyQQr3yvHz3wZs; Sat, 13 Mar 2021 15:43:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1615646596; bh=Kb6R8bC1dm//a85gyhcSx4DBi4EOdL7Pigq0Ro2VEPI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=amSPIaLDeMym8FQTQHb67+gSorpETGnpB8+D8Kd039vE8aL3mDRQtmc8OA1HiC6wg hUgQseqWBcnZO7ejKFgJQL4d60G1jmSnliB6NX0V+p2Cesd5OTN/561tsANOSueTOk T897tIRwUDpaIDHL5usvR+T3W3xKKIlBEaHA+qSs= Message-ID: From: Leo Prikler Date: Sat, 13 Mar 2021 15:43:15 +0100 In-Reply-To: <20210313122718.GA11708@LionPure> References: <87r1kjpbvx.fsf@gnu.org> <2922127e61435e64f95d3d398ef6932a02336188.camel@student.tugraz.at> <20210313122718.GA11708@LionPure> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47106@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615646651; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kb6R8bC1dm//a85gyhcSx4DBi4EOdL7Pigq0Ro2VEPI=; b=CeD65o90HCh/f0m44xXCs3Bv/ffD3+AFRgDhEa+ihc1Rqg9FCMo75nUGnBhLsp5QF7lGYt 8WSPbzR12bju5shGKw/QnpZkCJ8k2iwt8eQYNxHMTxO2BN1CXlBHy2j3Cv0EkZdmkUTPLj M+YuGnSJ/3Dd/YMo6MyBcJ81ucX15WzOnn5n9vgPD4GbH/iAa/AdoMv6lzUX2RHET5Ag5d 0wz5ZUnO/Pg0FdVvU90XgbYFR3q/4HXi+ZyUy9FW9KzqfhM06kW5I0UhSBNHBIAxTEC51q c5swBpJhum6aToIaVQqtM4fzY5ZbQcK1HnCRaYAEEi1y5TNWwHrCxuVoV2hXlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615646651; a=rsa-sha256; cv=none; b=DfT6iBfOBnCS3KEWMXgdfm4jkX5JITqas6nimBkZOMpgLJo2D1GfPUZHlUd6gXkBwuD2oo GeMQUPzc3WMu58B0W04yEbHjRiIO+nCuOuFpfMJRIBXKLAI3r2FJtvAh0FOhM/LqWZX5Ot seYO2wY3K7nlvm7+AcM6IluwuHH0QVNjrNlgsZVxo40s+68uxZZ7HAhFN2U8sMwtVLOs8u AhzYqXfcjRrviy0NSqHV2zB8M5431MeOe+bzYF31RWmkURM242B39SJbIosINhn1apLEDp zThe7xh220YgW+R+OXdiaYqc3jl3CtSdfoEN21wtv+Vx0KXBEKnNdQpESvmEYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=amSPIaLD; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=amSPIaLD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 268DB14BDE X-Spam-Score: -1.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2a9pEooeRdx0 Am Samstag, den 13.03.2021, 13:27 +0100 schrieb Bengt Richter: > Hi, > > On +2021-03-13 12:07:51 +0100, Leo Prikler wrote: > > Hi! > > Am Samstag, den 13.03.2021, 11:48 +0100 schrieb Ludovic Courtès: > > > Hi! > > > > > > Leo Prikler skribis: > > > > > > > both Epiphany and Eolie (post fixing #47097; will submit patch > > > > shortly) > > > > fail inside Guix containers with the suggested > > > > incantation. After > > > > getting the environment to no longer complain about $DISPLAY by > > > > adding > > > > `--preserve="XAUTHORITY" --expose=$XAUTHORITY', it repeatedly > > > > outputsn > > > > lines like > > > > bwrap: Can't find source path /sys/class: No such file or > > > > directory > > > > before closing the process altogether. > > > > > > What is ‘bwrap’ looking for? /sys is mounted inside ‘guix > > > environment -C’, > > > but perhaps it needs something special? > > > > > > I suggest running these things (or ‘bwrap’ directly) in ‘strace > > > -f -o > > > log’ inside the container to see. > > It seems to be > > > openat(AT_FDCWD, "/sys/class/dmi/id/chassis_type", O_RDONLY) = -1 > > > ENOENT (No such file or directory) > > > openat(AT_FDCWD, "/sys/firmware/acpi/pm_profile", O_RDONLY) = -1 > > > ENOENT (No such file or directory) > > > > I haven't repeated that for all warnings of similar kind, but if I > > add > > `--expose=/sys/block --expose=/sys/class --expose=/sys/bus -- > > expose=/sys/dev --expose=/sys/devices` to the invocation, I instead > > get > > a warning, that the WebKitWebProcess can't open $DISPLAY. I'm not > > sure > > how to resolve that one, given that I already had to sneak DISPLAY > > and > > XAUTHORITY into the container, but it's a start. > > > > Regards, > > Leo > > > Does $DISPLAY mean ":0" and does the Wayland server answer that with > its XWayland X-interface? In my setup $DISPLAY=:1, but obviously the exact value depends on other circumstances (i.e. if there's already an open session belonging to another user it'd be :2, :3, ...). I'm not sure how X vs. Wayland plays out here, but I'm still using Gnome on X, so that should hopefully not be an issue here. > I am wonderering how that is resolved inside a container. Well, for X you'd usually preserve DISPLAY and XAUTHORITY and also expose $XAUTHORITY or something along those lines. Not sure how you Wayland folk do that. Regards, Leo