From root@cc.fh-lippe.de Thu Oct 14 03:42:44 1999
Return-Path: <root@cc.fh-lippe.de>
Received: from henoch.cc.fh-lippe.de (henoch.cc.fh-lippe.de [193.16.112.72])
	by hub.freebsd.org (Postfix) with ESMTP id CEC5F14BD2
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Oct 1999 03:42:12 -0700 (PDT)
	(envelope-from root@cc.fh-lippe.de)
Received: from spock.cc.fh-lippe.de([193.16.118.120]) (2112 bytes) 
	by henoch.cc.fh-lippe.de
	via sendmail with P:smtp/R:inet_hosts/T:smtp
	(sender: <root@cc.fh-lippe.de>) 
	id <m11biKp-0000FjC@henoch.cc.fh-lippe.de>
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Oct 1999 12:42:11 +0200 (MET DST)
	(Smail-3.2.0.101 1997-Dec-17 #3 built 1998-Feb-3)
Received: from cc.fh-lippe.de by spock.cc.fh-lippe.de with smtp
	(Smail3.1.29.1 #2) id m11biKn-0007d5C; Thu, 14 Oct 99 12:42 MET DST
Received: (from root@localhost)
	by cc.fh-lippe.de (8.9.3/8.9.1) id MAA05258;
	Thu, 14 Oct 1999 12:02:08 +0200 (CEST)
	(envelope-from root)
Message-Id: <199910141002.MAA05258@cc.fh-lippe.de>
Date: Thu, 14 Oct 1999 12:02:08 +0200 (CEST)
From: lkoeller@cc.fh-lippe.de
Sender: root@cc.fh-lippe.de
Reply-To: lkoeller@cc.fh-lippe.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: Mount respects permissions of underlying directory
X-Send-Pr-Version: 3.2

>Number:         14322
>Category:       kern
>Synopsis:       mount respects permissions of underlying directoy!!
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 03:50:01 PDT 1999
>Closed-Date:    Fri Jun 15 14:33:58 MDT 2001
>Last-Modified:  Fri Jun 15 14:34:34 MDT 2001
>Originator:     Charlie &
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
Fachhochschule Lippe, Lemgo, Germany
>Environment:

	FreeBSD 3.3-RELEASE i386, upgraded from source from 3.2-STABLE

>Description:

	/var is mounted as

	/dev/da0s1g             /var            ufs	rw,userquota=/var/quotas/user.var,              2       2

	from fstab. The permissions of the /var-directory before mounting are

	drwxr-x---  22 root      wheel  -        512 Oct 14 11:07 var

	after mounting

	drwxr-xr-x  22 root      wheel  -        512 Oct 14 11:07 var

	mount showes

	/dev/da0s1g on /var (local, with quotas, soft-updates, writes: sync 118 async 1381)

	Nevertheless a user, not in group wheel gets a permission
	denied when trying a

	ls ..

	in the directory /var

	After going to singel user mode an changing the permissions of the
	mount-directory to 755 the effect vanishes after mounting /var again!

	I think this a bug, that can make a lot of trouble!!!

>How-To-Repeat:

	mkdir /test
	chmod 750 /test
	chown root:wheel /test
	mount .... /test

	try as a user not in group wheel a

	cd /test
	ls -l ..

	you get permission denied for ..

>Fix:

	Don't know!

>Release-Note:
>Audit-Trail:

From: "Steve Brown" <sb@napanet.net>
To: <freebsd-gnats-submit@freebsd.org>, <lkoeller@cc.fh-lippe.de>
Cc:  
Subject: Re: kern/14322: mount respects permissions of underlying directoy!!
Date: Tue, 26 Oct 1999 14:13:27 -0700

 The described condition is rather a normal happening; for over ten years I
 have always made sure my mount point and the mounted directory share
 permissions (UID and mode) in various flavours of UNIX -- I've seen this
 happen on Sun computers and ever since I have matched mounted and mount
 point permissions.
 
 Not saying it isn't a bug, but it sure can make you scratch your head the
 first time you see it :^)
 
 Steve Brown
 sb@napanet.net
 
 

From: Lars =?iso-8859-1?Q?K=F6ller?= <lkoeller@cc.fh-lippe.de>
To: "Steve Brown" <sb@napanet.net>
Cc: freebsd-gnats-submit@freebsd.org, lkoeller@cc.fh-lippe.de
Subject: Re: kern/14322: mount respects permissions of underlying directoy!! 
Date: Sat, 30 Oct 1999 11:13:43 +0200

 ----------
 
 Hello!
 
 In reply to "Steve Brown" who wrote:
  
  > The described condition is rather a normal happening; for over ten years I
  > have always made sure my mount point and the mounted directory share
  > permissions (UID and mode) in various flavours of UNIX -- I've seen this
  > happen on Sun computers and ever since I have matched mounted and mount
  > point permissions.
 
 O.k. perhaps I'm the lucky unknown up to now, but since my first 
 contact with FreeBSD in 1993 I've never seen this behavior. I will 
 discuss it again with a college at work with a 20 year UNIX sysadmin 
 experience.
 
  > Not saying it isn't a bug, but it sure can make you scratch your head the
  > first time you see it :^)
 
 How true!
 
 Thanks and best regards
 
 Lars
 -- 
 E-Mail:                                     |  Lars Koeller
   Lars.Koeller@Uni-Bielefeld.DE              |  UNIX Sysadmin
   lkoeller@cc.fh-lippe.de                     |  Computing Center
 PGP-key:                                       |  University of Bielefeld
   http://www.pgp.net/pgpnet/www-key.html        |  Germany
 ----------- FreeBSD, what else? ---- http://www.freebsd.org -------------
 
 
 

From: Lars =?iso-8859-1?Q?K=F6ller?= <Lars.Koeller@Uni-Bielefeld.DE>
To: Steve Brown <sb@napanet.net>
Cc: freebsd-gnats-submit@freebsd.org, lkoeller@cc.fh-lippe.de
Subject: Re: kern/14322: mount respects permissions of underlying directoy!!
Date: Tue, 02 Nov 1999 13:12:15 +0100

 In reply to Steve Brown who wrote:
  
  > The described condition is rather a normal happening; for over ten years I
  > have always made sure my mount point and the mounted directory share
  > permissions (UID and mode) in various flavours of UNIX -- I've seen this
  > happen on Sun computers and ever since I have matched mounted and mount
  > point permissions.
  > 
  > Not saying it isn't a bug, but it sure can make you scratch your head the
  > first time you see it :^)
 
 A little test on our HP Cluster (HPUX 10.20) shows the expeted 
 behavior, only the permissions of the mounted directory are valid.
 for the accessrights. The underlying directory perms aren't 
 valid anymore after the mount.
 
 Does anybody know if this behavior has changed in some older FreeBSD 
 version, cause I remember a case where the permissions only of the 
 mounted directory are respected!
 
 Is the default behavior mentioned in any manpage? I didn't found 
 one!
 
 Regards
 
 Lars
 -- 
  Lars Kller       |    Raum   : V0-318 (Tel: 4964)
  UNIX Systemad-    |    E-Mail : Lars.Koeller@Uni-Bielefeld.DE
       ministration |    PGP-Key: http://www.pgp.net/pgpnet/www-key.html
 ----------- FreeBSD, what else? ---- http://www.de.freebsd.org ---------
 
 
 

From: Konstantinos Konstantinidis <kkonstan@duth.gr>
To: freebsd-gnats-submit@FreeBSD.org, lkoeller@cc.fh-lippe.de
Cc:  
Subject: Re: kern/14322: mount respects permissions of underlying directoy!! 
 (This PR can be closed)
Date: Thu, 14 Jun 2001 22:39:50 +0300

 Hello,
 
 I just tested this on a recent -STABLE and 4.3-RELEASE and
 it does not have this "unexpected" behaviour, I also doubt
 that anyone is going to fix this for 3-STABLE :>
 
 This PR can be closed
 
 --kkonstan
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Fri Jun 15 14:33:58 MDT 2001 
State-Changed-Why:  
From: Konstantinos Konstantinidis <kkonstan@duth.gr> 
says it can be closed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14322 
>Unformatted:
