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

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Sat, 26 Nov 2022 18:24:01 UTC

Severity: normal

To reply to this bug, email your comments to 59616 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#59616; Package guix. (Sat, 26 Nov 2022 18:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 26 Nov 2022 18:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
Date: Sat, 26 Nov 2022 19:22:59 +0100
The ‘t/malformed-split.sh’ test of Texinfo 6.7 hangs on GNU/Hurd (in a
childhurd) as of commit 78f03567f44f704dfbc03cb64368aa42a01e78ad.

The test invokes its ‘pseudotty’ program, which creates a
pseudo-terminal using ‘posix openpt’.  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:  = 0 13
  75<--117(pid14826)->io_write_request ("getting pty master fd" -1)getting pty master fd = 0 21
  75<--117(pid14826)->io_write_request ("\n" -1)
 = 0 1
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
  86<--120(pid14826)->dir_lookup ("dev/ptyp0" 3 0) = 0x4000000d (Permission denied) 
  86<--120(pid14826)->dir_lookup ("dev/ptyp1" 3 0) = 0x40000010 (Device or resource busy) 
  86<--120(pid14826)->dir_lookup ("dev/ptyp2" 3 0) = 0x4000000d (Permission denied) 
  86<--120(pid14826)->dir_lookup ("dev/ptyp3" 3 0) = 0x40000002 (No such file or directory) 
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 4205 (227424 0 0);
  118<--122(pid14826)->proc_mark_exit_request (256 0) = 0 
task109(pid14826)-> 4205 (227424 0 0);
task109(pid14826)-> 2008 () = 0 
Child 14826 exited with 1
--8<---------------cut here---------------end--------------->8---

The childhurd only has this:

--8<---------------cut here---------------start------------->8---
ludo <at> 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
--8<---------------cut here---------------end--------------->8---

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#59616; Package guix. (Sun, 27 Nov 2022 22:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 59616 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 59616 <at> debbugs.gnu.org
Subject: Re: bug#59616: Texinfo 6.7 test hangs on i586-gnu (GNU/Hurd)
Date: Sun, 27 Nov 2022 23:34:21 +0100
Hi,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> The childhurd only has this:
>
> ludo <at> 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’s a second problem: we need to build glibc’s ‘pt_chown’ setuid
program (with ‘--enable-pt_chown’) so that ‘grantpt’ can change the
owner of /dev/ttyp*.

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

Ludo’.




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 <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 30 Nov 2022 09:11:02 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 239 days ago.

Previous Next


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