Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Oct 1999 12:02:08 +0200 (CEST)
From:      lkoeller@cc.fh-lippe.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/14322: Mount respects permissions of underlying directory
Message-ID:  <199910141002.MAA05258@cc.fh-lippe.de>

next in thread | raw e-mail | index | archive | help

>Number:         14322
>Category:       kern
>Synopsis:       mount respects permissions of underlying directoy!!
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 03:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910141002.MAA05258>