From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oBq5Dsl8fmPoxwAAbAwnHQ (envelope-from ) for ; Wed, 23 Nov 2022 21:04:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gICbDsl8fmMVtgAAauVa8A (envelope-from ) for ; Wed, 23 Nov 2022 21:04:25 +0100 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 A86803A691 for ; Wed, 23 Nov 2022 21:04:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxvyh-0007If-Kz; Wed, 23 Nov 2022 15:04:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxvyV-0007I9-0w for bug-guix@gnu.org; Wed, 23 Nov 2022 15:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxvyU-0006sk-LY for bug-guix@gnu.org; Wed, 23 Nov 2022 15:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxvyU-0006UM-Ew for bug-guix@gnu.org; Wed, 23 Nov 2022 15:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59521: package installation fail when home dir contains a @ Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 23 Nov 2022 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59521 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59521@debbugs.gnu.org, pofman@free.fr X-Debbugs-Original-To: bug-guix@gnu.org, pofman@free.fr, 59521@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166923383124925 (code B ref -1); Wed, 23 Nov 2022 20:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Nov 2022 20:03:51 +0000 Received: from localhost ([127.0.0.1]:56336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxvyI-0006Tw-QG for submit@debbugs.gnu.org; Wed, 23 Nov 2022 15:03:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:39620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxvyG-0006Tp-Sg for submit@debbugs.gnu.org; Wed, 23 Nov 2022 15:03:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxvyA-0007CL-Ke for bug-guix@gnu.org; Wed, 23 Nov 2022 15:03:48 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxvy7-0006qd-Ps for bug-guix@gnu.org; Wed, 23 Nov 2022 15:03:42 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 6e3db046; Wed, 23 Nov 2022 20:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=CC2euEar9EhH N/B7qnMuHdi/aBBvpA52i7H+dv8kQ+U=; b=OoHMqPLHEEcA7sLBEpi0HZQSeCD0 GAtc3PrBX8kekfsHkFkizbi27ax2LarKFbma1e7lMp3XZrVXGlnW7aQzcIyJxcLW 6ydYC0kZYy3/DQB1Clt0sV8di54OfaPajzFIFJnwHEaBMnCKGiVpn218IOmGklFD GbA8WNzkIdE3JrsewSqj6FhWI66WV02p7bSwyg+l/fwTMmxLbcwH7SUmuNZJPh83 9bfaHguBF4hBfghGigORNCQK3Iwz+JAalbM2qFjTxDFu06O3mvOBYOfJ7mo8Dxwr AXnR+B6tE5GVDvckfNou8WkzJR9+79uuPf1vga7gMIYVpt4FUIRNIceYZQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f554d301 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 23 Nov 2022 20:03:34 +0000 (UTC) Date: Wed, 23 Nov 2022 21:03:32 +0100 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <384620554.2032398863.1669207590413.JavaMail.root@zimbra76-e14.priv.proxad.net> References: <384620554.2032398863.1669207590413.JavaMail.root@zimbra76-e14.priv.proxad.net> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----ZVH0XBHKUU9VPX0SPADE9CIG83HNNP Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669233865; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=UUdWqJzhUvtjDcSSHMjQEj8AIX93kvLxhQVPjkX9cmQ=; b=srY2TkLUDVDVPx8BGRF5NHUNZ8GFFavhvDNqulyzC/FbfmxJlcbZ++ZUm94P1vN2oOWMA/ wmbe/ka6DmZCuGKifXZTlZx/wf45m1/8Ycy5y6cY0KuonAXmCIGbK8urEK3vfxsr+YJGDT ONtjkGROWt9kwoz0BBHglIn8gXMRcxzMLYfEjsXYHEOCQx2kRRC/jHe2IGhHbiPYo7qlk1 HmnB8dRi960tdMC5ZhEyF4MVqfVhHqqjrz2Vt3AhL5ThCBQaBMUbY7fuBVESH4twct5SYT dd6FrHRlG1A4Gud3y3r7kkOmf+KdqEGXGNspSlBMGTnzFo04CKSXnOVlrqL5BA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669233865; a=rsa-sha256; cv=none; b=ka+zWrtv52DvZzgFKciGXL1tq267gca+v7L3g6lVzRgwOegX/ojemTG0W752H97RUXtH/b Y1Yopzc61wna3mdgUDGUmEg4DC54s3HBjHbC1ANR1cOfGTZi1X7NZeMu1vLrzcEGC6nwwG VY5vtHSVLT1wZJHVw8TzZxGN8Ej88igQuh6mer835YEGNiIIFMPoOCBFZX2lt09sxQsB2n qSYK9cASJFr+GVWHSHCLgBI4yBPRLwdRznOfP8grtK5075hWubVPcgxiaoQOC0AKZb5Dpg 4a/J0y1BAsRgv95wb5UaMMWhJOL0bC6yFA3VQ0DpGuVrm4LBbW+qiusF5agQSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=OoHMqPLH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=OoHMqPLH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A86803A691 X-Spam-Score: 5.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: B9oY5a9bYP3K ------ZVH0XBHKUU9VPX0SPADE9CIG83HNNP Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oh no, do we have a Texi injection vulnerability in Guix? :) What I understand is that an error occurs when trying to show a hint to th= e user (display-hint in the backtrace)=2E This calls texi->plain-text which= transforms texinfo markup to text for displaying on a terminal=2E With you= r user name, it tries to read something like: /home/~a/=2Eguix-profile/etc/profile Which is expanded into: /home/user@foo=2Ebar/=2Eguix-profile/etc/profile And the @ is understood as texinfo markup but there is no @foo command in = texinfo=2E How do we fix that though? Le 23 novembre 2022 13:46:30 GMT+01:00, pofman@free=2Efr a =C3=A9crit=C2= =A0: >Hello! > >I use the guix package manager on ubuntu 22=2E04=2E > >I have successfully installed fdm and mu packages but I got an error when= installing emacs package=2E > >My user is a domain user, the domain name is 'foo=2Ebar' and then sssd us= e a home directory like '/home/user@foo=2Ebar' which seems to cause that er= ror=2E > >Installation log: >$ LANG=3DC guix install emacs >The following package will be installed: > emacs 28=2E2 > >hint: Backtrace: > 17 (primitive-load "/home/user@foo=2Ebar/=2Econfig/guix?") >In guix/ui=2Escm: > 2275:7 16 (run-guix =2E _) > 2238:10 15 (run-guix-command _ =2E _) >In ice-9/boot-9=2Escm: > 1752:10 14 (with-exception-handler _ _ #:unwind? _ # _) >In guix/status=2Escm: > 835:3 13 (_) > 815:4 12 (call-with-status-report _ _) >In guix/store=2Escm: > 1300:8 11 (call-with-build-handler _ _) > 1300:8 10 (call-with-build-handler # ?) >In guix/build/syscalls=2Escm: > 1435:3 9 (_) > 1402:4 8 (call-with-file-lock/no-wait _ _ _) >In guix/scripts/package=2Escm: > 325:7 7 (build-and-use-profile _ "/var/guix/profiles/per-user/?" ?) >In guix/ui=2Escm: > 312:5 6 (display-hint _ _) > 1448:24 5 (texi->plain-text _) >In texinfo=2Escm: > 1132:22 4 (parse _) > 980:31 3 (loop # (*fragment*) _ _ _) > 967:36 2 (loop # #f # ?) > 92:2 1 (command-spec _) >In ice-9/boot-9=2Escm: > 1685:16 0 (raise-exception _ #:continuable? _) > >ice-9/boot-9=2Escm:1685:16: In procedure raise-exception: >Throw to key `parser-error' with args `(#f "Unknown command" foo)'=2E > > > ------ZVH0XBHKUU9VPX0SPADE9CIG83HNNP Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oh no, do we have a Texi injection vulnerability i= n Guix? :)

What I understand is that an error occurs when trying to = show a hint to the user (display-hint in the backtrace)=2E This calls texi-= >plain-text which transforms texinfo markup to text for displaying on a = terminal=2E With your user name, it tries to read something like:

/h= ome/~a/=2Eguix-profile/etc/profile

Which is expanded into:

/h= ome/user@foo=2Ebar/=2Eguix-profile/etc/profile

And the @ is understo= od as texinfo markup but there is no @foo command in texinfo=2E How do we f= ix that though?

Le 23 novembre 2022 13:46= :30 GMT+01:00, pofman@free=2Efr a =C3=A9crit=C2=A0:
Hello!

I use the guix package ma= nager on ubuntu 22=2E04=2E

I have successfully installed fdm and mu = packages but I got an error when installing emacs package=2E

My user= is a domain user, the domain name is 'foo=2Ebar' and then sssd use a home = directory like '/home/user@foo=2Ebar' which seems to cause that error=2E
Installation log:
$ LANG=3DC guix install emacs
The following pa= ckage will be installed:
emacs 28=2E2

hint: Backtrace:
= 17 (primitive-load "/home/user@foo=2Ebar/=2Econfig/guix?")
In guix= /ui=2Escm:
2275:7 16 (run-guix =2E _)
2238:10 15 (run-guix-comma= nd _ =2E _)
In ice-9/boot-9=2Escm:
1752:10 14 (with-exception-handl= er _ _ #:unwind? _ # _)
In guix/status=2Escm:
835:3 13 (_)
= 815:4 12 (call-with-status-report _ _)
In guix/store=2Escm:
1300:= 8 11 (call-with-build-handler _ _)
1300:8 10 (call-with-build-handler= #<procedure 7f83d177e480 at g?> ?)
In guix/build/syscalls=2Escm:<= br> 1435:3 9 (_)
1402:4 8 (call-with-file-lock/no-wait _ _ _)
= In guix/scripts/package=2Escm:
325:7 7 (build-and-use-profile _ "/v= ar/guix/profiles/per-user/?" ?)
In guix/ui=2Escm:
312:5 6 (displ= ay-hint _ _)
1448:24 5 (texi->plain-text _)
In texinfo=2Escm: 1132:22 4 (parse _)
980:31 3 (loop #<input: string 7f83bec67= a10> (*fragment*) _ _ _)
967:36 2 (loop #<input: string 7f83be= c67a10> #f #<procedure ide?> ?)
92:2 1 (command-spec _)In ice-9/boot-9=2Escm:
1685:16 0 (raise-exception _ #:continuable? = _)

ice-9/boot-9=2Escm:1685:16: In procedure raise-exception:
Thro= w to key `parser-error' with args `(#f "Unknown command" foo)'=2E


------ZVH0XBHKUU9VPX0SPADE9CIG83HNNP--