From nobody@FreeBSD.org  Tue Nov 15 19:26:53 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A0F4C16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 19:26:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 745C243D60
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 19:26:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAFJQp1C075386
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Nov 2005 19:26:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jAFJQpcj075385;
	Tue, 15 Nov 2005 19:26:51 GMT
	(envelope-from nobody)
Message-Id: <200511151926.jAFJQpcj075385@www.freebsd.org>
Date: Tue, 15 Nov 2005 19:26:51 GMT
From: "trasz <"<trasz@pin.if.uz.zgora.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vfs.usermount works - _sometimes_.
X-Send-Pr-Version: www-2.3

>Number:         89083
>Category:       kern
>Synopsis:       vfs.usermount works - _sometimes_.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 19:30:12 GMT 2005
>Closed-Date:    Tue Nov 15 23:44:47 GMT 2005
>Last-Modified:  Tue Nov 15 23:44:47 GMT 2005
>Originator:     trasz
>Release:        6.0-RC1
>Organization:
>Environment:
FreeBSD traszkan.ds7 6.0-RC1 FreeBSD 6.0-RC1 #0: Sat Oct 29 21:42:46 CEST 2005     trasz@traszkan.ds7:/usr/obj/usr/src/sys/TRASHCAN  i386
>Description:
After setting vfs.usermount=1 and configuring things the usual way
(setting the owner of device and mount point), attempt to mount results
in EPERM - unless the device has been successfully (as root) mounted
(and unmounted) before.

>How-To-Repeat:
Configure usermount as described in FreeBSD GNOME FAQ.  Try to mount.
Su(8) to root, mount and unmount.  Go back to your unpriviledged account,
try to mount.

>Fix:
              
>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: "trasz <" <trasz@pin.if.uz.zgora.pl>
Cc: bug-followup@freebsd.org
Subject: Re: kern/89083: vfs.usermount works - _sometimes_.
Date: Tue, 15 Nov 2005 22:46:34 +0300 (MSK)

 On Tue, 15 Nov 2005, 19:26-0000, trasz < wrote:
 
 > >Description:
 > After setting vfs.usermount=1 and configuring things the usual way
 > (setting the owner of device and mount point), attempt to mount results
 > in EPERM - unless the device has been successfully (as root) mounted
 > (and unmounted) before.
 >
 > >How-To-Repeat:
 > Configure usermount as described in FreeBSD GNOME FAQ.  Try to mount.
 > Su(8) to root, mount and unmount.  Go back to your unpriviledged account,
 > try to mount.
 
 What's exactly you mount?  Try to load a corresponded kernel module
 before mount.  E.g for cd9660:
 
 As super-user:
 
 # kldload cd9660.ko
 
 Then as unprivileded user:
 
 $ mount /cdrom
 
 -- 
 Maxim Konovalov

From: trasz@pin.if.uz.zgora.pl
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: kern/89083: vfs.usermount works - _sometimes_.
Date: Tue, 15 Nov 2005 22:15:54 +0100

 On 1115T2246, Maxim Konovalov wrote:
 > > >Description:
 > > After setting vfs.usermount=1 and configuring things the usual way
 > > (setting the owner of device and mount point), attempt to mount results
 > > in EPERM - unless the device has been successfully (as root) mounted
 > > (and unmounted) before.
 > >
 > > >How-To-Repeat:
 > > Configure usermount as described in FreeBSD GNOME FAQ.  Try to mount.
 > > Su(8) to root, mount and unmount.  Go back to your unpriviledged account,
 > > try to mount.
 > 
 > What's exactly you mount?  Try to load a corresponded kernel module
 > before mount.  E.g for cd9660:
 > 
 > As super-user:
 > 
 > # kldload cd9660.ko
 
 Oops.  You are right, that was it.
 
 [..]
 
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Tue Nov 15 23:44:04 GMT 2005 
State-Changed-Why:  
Pilot error hidden by weird symptoms. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89083 
>Unformatted:
