From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 23 14:02:23 2022 Received: (at submit) by debbugs.gnu.org; 23 Nov 2022 19:02:24 +0000 Received: from localhost ([127.0.0.1]:56251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxv0o-0004v8-RR for submit@debbugs.gnu.org; Wed, 23 Nov 2022 14:02:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:53402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxp9B-0004Gu-R8 for submit@debbugs.gnu.org; Wed, 23 Nov 2022 07:46:39 -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 1oxp9B-0006oR-KD for bug-guix@gnu.org; Wed, 23 Nov 2022 07:46:37 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxp99-00018a-9b for bug-guix@gnu.org; Wed, 23 Nov 2022 07:46:37 -0500 Received: from zimbra76-e14.priv.proxad.net (unknown [172.20.243.226]) by smtp6-g21.free.fr (Postfix) with ESMTP id 5D6277802D6 for ; Wed, 23 Nov 2022 13:46:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1669207591; bh=M+dcnK4CjL1TZZwYt2mAIVx3j3k98WkYfShiUTI9uG8=; h=Date:From:To:In-Reply-To:Subject:From; b=gL4cipl/41vS1R7bForrF4FAdXwdKn5wXtIeCzpZVfDB+LGuIPukhRHTwm8wufnmW trK0klL6FFsxIat3zgO+yDG5TdhkSG82cBnia/y58dk59bBiV0gpQfxZlC6WkgMhTE tvN8KhEruM5zmRkk2fxqNvwSNiVx0wG+10bp7YcVJDTlvjTy3XIWVZJbYXJ3s/iFfv ELo1M7kb3Rnj7X002bOhiAHys+puzfETuc9C0ziCLC3ILHLXuhe2X5jEpPUAZosGu0 WRtzaDAG0Cnb8RgpkhwVzzxUkkQzelcSkhsW0SAiHEmNEWSiDd8RifVjRkJN9CFztg 1m8dzJi942DHw== Date: Wed, 23 Nov 2022 13:46:30 +0100 (CET) From: pofman@free.fr To: bug-guix@gnu.org Message-ID: <384620554.2032398863.1669207590413.JavaMail.root@zimbra76-e14.priv.proxad.net> In-Reply-To: <1429561205.2032362542.1669206971775.JavaMail.root@zimbra76-e14.priv.proxad.net> Subject: package installation fail when home dir contains a @ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [37.71.126.132] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Linux)/7.2.0-GA2598) X-Authenticated-User: pofman@free.fr Received-SPF: pass client-ip=212.27.42.6; envelope-from=pofman@free.fr; helo=smtp6-g21.free.fr 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Nov 2022 14:02:21 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello! I use the guix package manager on ubuntu 22.04. I have successfully installed fdm and mu packages but I got an error when installing emacs package. My user is a domain user, the domain name is 'foo.bar' and then sssd use a home directory like '/home/user@foo.bar' which seems to cause that error. Installation log: $ LANG=C guix install emacs The following package will be installed: emacs 28.2 hint: Backtrace: 17 (primitive-load "/home/user@foo.bar/.config/guix?") In guix/ui.scm: 2275:7 16 (run-guix . _) 2238:10 15 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 14 (with-exception-handler _ _ #:unwind? _ # _) In guix/status.scm: 835:3 13 (_) 815:4 12 (call-with-status-report _ _) In guix/store.scm: 1300:8 11 (call-with-build-handler _ _) 1300:8 10 (call-with-build-handler # ?) In guix/build/syscalls.scm: 1435:3 9 (_) 1402:4 8 (call-with-file-lock/no-wait _ _ _) In guix/scripts/package.scm: 325:7 7 (build-and-use-profile _ "/var/guix/profiles/per-user/?" ?) In guix/ui.scm: 312:5 6 (display-hint _ _) 1448:24 5 (texi->plain-text _) In texinfo.scm: 1132:22 4 (parse _) 980:31 3 (loop # (*fragment*) _ _ _) 967:36 2 (loop # #f # ?) 92:2 1 (command-spec _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `parser-error' with args `(#f "Unknown command" foo)'. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 23 15:03:51 2022 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 To: bug-guix@gnu.org, pofman@free.fr, 59521@debbugs.gnu.org Subject: Re: bug#59521: package installation fail when home dir contains a @ 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------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--