NetBSD Problem Report #32286

From Wolfgang.Stukenbrock@nagler-company.com  Mon Dec 12 14:35:26 2005
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from e002.nagler-company.com (e002.nagler-company.com [212.222.97.3])
	by narn.netbsd.org (Postfix) with ESMTP id 1953F63B917
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Dec 2005 14:35:25 +0000 (UTC)
Message-Id: <200512121435.jBCEZM8V002233@s012.nagler-company.com>
Date: Mon, 12 Dec 2005 15:35:22 +0100 (CET)
From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@netbsd.org
Subject: exporting more than one directory to the world in one filesystems failed
X-Send-Pr-Version: 3.95

>Number:         32286
>Category:       kern
>Synopsis:       exporting more than one directory to the world in one filesystems failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 12 14:40:00 +0000 2005
>Last-Modified:  Fri Nov 04 14:15:02 +0000 2011
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 2.1
>Organization:
Dr. Nagler & Company GmbH
>Environment:


System: NetBSD s012 2.1 NetBSD 2.1 (NSW-S012) #10: Mon Dec 12 12:03:54 CET 2005 wgstuken@s011:/export/netbsd-2.1/usr/src/sys/arch/i386/compile/NSW-S012 i386
Architecture: i386
Machine: i386
>Description:
	NetBSD 2.1 fails to export more than one direcotry of a filesystem to the world.
	The problems seems to be the "default" network entry added by mountd to the directories.
	The problem will only happen while exporting to the world. (syslog message see next section below)

	The failing call in mountd is the call to mount() that will return EPERM while adding the "default" network entry.
>How-To-Repeat:
	Setup an export file linke the follwoing:

#
# export the sources of netbsd to the whole world - they are not secret
#
/export/NetBSD-2.1/src  -ro
/export/NetBSD-2.1/xsrc -ro

END OF EXPORTFILE

	Than try to export it. You will get the message:
Dec 12 15:22:09 s012 mountd[1955]: "/export/NetBSD-2.1/xsrc -ro", line 10: Can't change attributes for /export/NetBSD-2.1/xsrc to Default: Operation not permitted

	If a third world export is added the problem appears at the two last entries of the export file. It will work only for the first.
>Fix:
	Not known.
	Either there is a problem inside the mount() call or there is a problem with the "default" network entry.
	An export like "/export/NetBSD-2.1/xsrc -ro -network 0.0.0.0/0" will work and may be used as aworkaround for this problem.

>Release-Note:

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org, tsutsui@ceres.dti.ne.jp
Subject: Re: kern/32286: exporting more than one directory to the world in one
	 filesystems failed
Date: Mon, 12 Dec 2005 23:45:29 +0900

 > /export/NetBSD-2.1/src  -ro
 > /export/NetBSD-2.1/xsrc -ro

 "/export/NetBSD-2.1/src /export/NetBSD-2.1/xsrc -ro" doesn't work?
 ---
 Izumi Tsutsui

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/32286: exporting more than one directory to the world in one filesystems failed
Date: Mon, 12 Dec 2005 09:57:39 -0500


 Use -alldirs:

 /export/NetBSD-2.1 -ro -alldirs

 christos

From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32286: exporting more than one directory to the world in one filesystems failed
Date: Tue, 13 Dec 2005 09:51:48 +0100

 Hi,

 the -alldir may work if theese two directories are the only one present 
 there, but this is not true on our server.

 At the moment I'm using my workaround. This shows the export to 0.0.0.0 
 in showmount (not everybody), but I can live with that.

 I think the main problem should be fixed as soon as possible, because 
 exporting two directories in different subdirs on a filesystem to the 
 world will fail too.

 W. Stukenbrock


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.