NetBSD Problem Report #35830
From apb@cequrux.com Sat Feb 24 18:57:44 2007
Return-Path: <apb@cequrux.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 1F90E63B8A7
for <gnats-bugs@gnats.NetBSD.org>; Sat, 24 Feb 2007 18:57:44 +0000 (UTC)
Message-Id: <20070224185637.49CA66037E@apb-laptoy.apb.alt.za>
Date: Sat, 24 Feb 2007 20:56:33 +0200 (SAST)
From: apb@cequrux.com
To: gnats-bugs@NetBSD.org
Subject: procfs "exe" symlinks do not work with nullfs
X-Send-Pr-Version: 3.95
>Number: 35830
>Category: kern
>Synopsis: procfs "exe" symlinks do not work with nullfs
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 24 19:00:00 +0000 2007
>Closed-Date: Tue Nov 27 20:10:00 +0000 2018
>Last-Modified: Tue Nov 27 20:10:00 +0000 2018
>Originator: Alan Barrett
>Release: NetBSD 4.99.12
>Organization:
Not much
>Environment:
System: NetBSD 4.99.12
Architecture: i386
Machine: i386
>Description:
The "exe" symlinks in the procfs file system do not work properly
for nullfs file systems. Instead of pointing to the executed
program, procfs dymlinks like /proc/curproc/exe point to "/".
The "cwd" symlinks, on the other hand, work correctly with nullfs.
>How-To-Repeat:
$ sudo mount -t null /bin /mnt
$ cd /mnt
$ /bin/ls -l /proc/curproc/cwd /proc/curproc/exe # works
lr-xr-xr-x 1 root wheel 4 Feb 24 20:49 /proc/curproc/cwd -> /mnt
lr-xr-xr-x 1 root wheel 7 Feb 24 20:49 /proc/curproc/exe -> /bin/ls
$ /mnt/ls -l /proc/curproc/cwd /proc/curproc/exe # cwd works, exe fails
lr-xr-xr-x 1 root wheel 4 Feb 24 20:49 /proc/curproc/cwd -> /mnt
lr-xr-xr-x 1 root wheel 1 Feb 24 20:49 /proc/curproc/exe -> /
$ ./ls -l /proc/curproc/cwd /proc/curproc/exe # cwd works, exe fails
lr-xr-xr-x 1 root wheel 4 Feb 24 20:49 /proc/curproc/cwd -> /mnt
lr-xr-xr-x 1 root wheel 1 Feb 24 20:49 /proc/curproc/exe -> /
$ cd /
$ sudo umount /mnt
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 27 Nov 2018 20:10:00 +0000
State-Changed-Why:
This is fixed in -current.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.