NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/54914: fcntl(F_GETPATH) is broken in chroot
The following reply was made to PR kern/54914; it has been noted by GNATS.
From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%netbsd.org@localhost, Santhosh Raju <fox%netbsd.org@localhost>
Cc:
Subject: Re: kern/54914: fcntl(F_GETPATH) is broken in chroot
Date: Mon, 10 Feb 2020 08:54:04 +0100
On 01.02.2020 17:40, Christos Zoulas wrote:
> The following reply was made to PR kern/54914; it has been noted by GNAT=
S.
>
> From: Christos Zoulas <christos%zoulas.com@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: kern-bug-people%netbsd.org@localhost,
> gnats-admin%netbsd.org@localhost,
> netbsd-bugs%netbsd.org@localhost
> Subject: Re: kern/54914: fcntl(F_GETPATH) is broken in chroot
> Date: Sat, 1 Feb 2020 11:35:04 -0500
>
> --Apple-Mail=3D_84B4B089-C89E-4424-9282-18D837E09ADA
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
> charset=3Dus-ascii
>
> Did you make /dev/zero (and the other files the test needs) in the chro=
ot?
>
> christos
>
>
Yes.
Steps to reproduce:
mount -t null /dev /path/to/destdir/dev
mount -t null /dev/pts /path/to/destdir/dev/pts
mount -t null /tmp /path/to/destdir/tmp
chroot /path/to/destdir/
cd /usr/tests
atf-run
Reproduced also by fox@:
tc-end: 1581320984.989260, getpath, failed,
/home/fox/projects/netbsd/src-wip/tests/kernel/t_fcntl.c:76: Can't get
path for
`/dev/zero' (No such file or directory)
"fox: I do see a /dev/zero in the chrooted environment"
Home |
Main Index |
Thread Index |
Old Index