GNU bug report logs - #59616
[Hurd] glibc lacks 'pt_chown' setuid program

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Sat, 26 Nov 2022 18:24:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to '[Hurd] glibc lacks 'pt_chown' setuid program' from 'Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 59616 <at> debbugs.gnu.org:


Received: (at 59616) by debbugs.gnu.org; 27 Nov 2022 22:34:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 27 17:34:31 2022
Received: from localhost ([127.0.0.1]:44585 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ozQEJ-0001br-Ek
	for submit <at> debbugs.gnu.org; Sun, 27 Nov 2022 17:34:31 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1ozQEI-0001bl-Lm
 for 59616 <at> debbugs.gnu.org; Sun, 27 Nov 2022 17:34:30 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1ozQEC-0003P4-Ep
 for 59616 <at> debbugs.gnu.org; Sun, 27 Nov 2022 17:34:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=a+IMBXLLqrpX2iVrUFxqctUhxWSoiG5UoQXoEQ3HxS0=; b=r6FeqiIh0l2BHo+OTLLf
 jacUqVzJXdhEWBheajl+uxHbGg3CYo2t6+Kk1jzOnbeK8QdF1n/edPgirkU6q/d2HsJ3xXI4D8hx6
 iDGoSRrI7hJfuigQTGNKX2L1MYQj1/4dFEZ1N2PONKYGy6sv19WCgwXuAq6bWDAuyAz17LIWRGWDp
 StjzRVVvMnqJECKngn9az70kv35e/IFdIS3YBukUz4kCGkjBsVfPFwFRVbGuAvYw65RH5zKs4Jy3G
 Dh1nPM+I3QGXedNCFineltOWID6P//V54uRTphxNGkDtBqWsJ9hKK3FIYpdvlE21PteippxO+gOjJ
 PkAQQqjWtZgmLQ==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1ozQEC-00068R-2V
 for 59616 <at> debbugs.gnu.org; Sun, 27 Nov 2022 17:34:24 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: 59616 <at> debbugs.gnu.org
Subject: Re: bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
References: <87fse560e4.fsf@HIDDEN>
Date: Sun, 27 Nov 2022 23:34:21 +0100
In-Reply-To: <87fse560e4.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Sat, 26 Nov 2022 19:22:59 +0100")
Message-ID: <875yf058nm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 59616
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Ludovic Court=C3=A8s <ludo@HIDDEN> skribis:

> The childhurd only has this:
>
> ludo@childhurd /tmp/guix-build-texinfo-6.7.drv-0/texinfo-6.7/info$ ls -l =
/dev/ptyp*
> crw--w---- 1 root tty  0, 0 Nov 26 16:05 /dev/ptyp0
> crw--w---- 1 ludo tty  0, 0 Nov 26 16:05 /dev/ptyp1
> crw------- 1 root root 0, 0 Nov 26 16:05 /dev/ptyp2

Part of the solution is to create more of them in hurd-boot.scm.

But there=E2=80=99s a second problem: we need to build glibc=E2=80=99s =E2=
=80=98pt_chown=E2=80=99 setuid
program (with =E2=80=98--enable-pt_chown=E2=80=99) so that =E2=80=98grantpt=
=E2=80=99 can change the
owner of /dev/ttyp*.

At least that=E2=80=99s how it=E2=80=99s done on Debian GNU/Hurd, but I=E2=
=80=99m surprised
/hurd/term (for pty-slave) doesn=E2=80=99t just return the right UID on
=E2=80=98io_stat=E2=80=99.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#59616; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Nov 2022 18:23:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 26 13:23:07 2022
Received: from localhost ([127.0.0.1]:41402 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oyzpS-0003RY-Q2
	for submit <at> debbugs.gnu.org; Sat, 26 Nov 2022 13:23:07 -0500
Received: from lists.gnu.org ([209.51.188.17]:58362)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oyzpP-0003RS-4q
 for submit <at> debbugs.gnu.org; Sat, 26 Nov 2022 13:23:05 -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 <ludo@HIDDEN>) id 1oyzpO-0006Oi-WA
 for bug-guix@HIDDEN; Sat, 26 Nov 2022 13:23:03 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1oyzpO-0004om-No
 for bug-guix@HIDDEN; Sat, 26 Nov 2022 13:23:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=U3Lf/MMJDFWmE8HUyk0TLxy+/0qFiiLZJqtejt/5HYQ=; b=PLWU0sPzFc9QYG
 kJQPDp7NugaJBbobAUPO5K8bSeVClS8zGFCioaLHgQrIacX7CjzUxDYIhqkIzGhxY5cEF35yzF5Ew
 eBb7fD0EHa1/GiNaLD9y8JGSiNkhcuAkrTn4iFHvvf6Da7BIZv2EOrafTViDxJss+JyGkTvoaAohY
 hAU0DZybdY/4FSC+Zn1x66rf6EGh/fUKQc3mkqo8aAxj35Hio6EGMDNv1oGJcP9dS2/VikCi5ULCS
 iRtd19QzL5wzdvXwEJ/oga3zFIb2+vrD3wuaiCFzGvbCRak4C8KUmJGPcrsa9Jaw3qm/HU/VeZcWG
 ZZNn9IDc9Db9R2Bbj5Zg==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1oyzpO-0005bR-60
 for bug-guix@HIDDEN; Sat, 26 Nov 2022 13:23:02 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Sextidi 6 Frimaire an 231 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= jour de la =?utf-8?Q?M=C3=A2che?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Sat, 26 Nov 2022 19:22:59 +0100
Message-ID: <87fse560e4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

The =E2=80=98t/malformed-split.sh=E2=80=99 test of Texinfo 6.7 hangs on GNU=
/Hurd (in a
childhurd) as of commit 78f03567f44f704dfbc03cb64368aa42a01e78ad.

The test invokes its =E2=80=98pseudotty=E2=80=99 program, which creates a
pseudo-terminal using =E2=80=98posix=C2=A0openpt=E2=80=99.  That call fails=
 when not running
as root in a childhurd:

--8<---------------cut here---------------start------------->8---
task109(pid14826)-> 4205 (227424 0 0);
  75<--117(pid14826)->io_write_request ("./pseudotty: " -1)./pseudotty:  =
=3D 0 13
  75<--117(pid14826)->io_write_request ("getting pty master fd" -1)getting =
pty master fd =3D 0 21
  75<--117(pid14826)->io_write_request ("\n" -1)
 =3D 0 1
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
  86<--120(pid14826)->dir_lookup ("dev/ptyp0" 3 0) =3D 0x4000000d (Permissi=
on denied)=20
  86<--120(pid14826)->dir_lookup ("dev/ptyp1" 3 0) =3D 0x40000010 (Device o=
r resource busy)=20
  86<--120(pid14826)->dir_lookup ("dev/ptyp2" 3 0) =3D 0x4000000d (Permissi=
on denied)=20
  86<--120(pid14826)->dir_lookup ("dev/ptyp3" 3 0) =3D 0x40000002 (No such =
file or directory)=20
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
  118<--122(pid14826)->proc_mark_exit_request (256 0) =3D 0=20
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 2008 () =3D 0=20
Child 14826 exited with 1
--8<---------------cut here---------------end--------------->8---

The childhurd only has this:

--8<---------------cut here---------------start------------->8---
ludo@childhurd /tmp/guix-build-texinfo-6.7.drv-0/texinfo-6.7/info$ ls -l /d=
ev/ptyp*
crw--w---- 1 root tty  0, 0 Nov 26 16:05 /dev/ptyp0
crw--w---- 1 ludo tty  0, 0 Nov 26 16:05 /dev/ptyp1
crw------- 1 root root 0, 0 Nov 26 16:05 /dev/ptyp2
--8<---------------cut here---------------end--------------->8---

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#59616; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 30 Nov 2022 09:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.