Subject: bin/11214: mfs has mode 1777 hard-coded for the root inode
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 10/13/2000 10:53:22
>Number:         11214
>Category:       bin
>Synopsis:       mfs has mode 1777 hard-coded for the root inode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 13 10:53:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        all
>Organization:
Wasabi Systems
>Environment:
System: NetBSD thoreau.thistledown.com.au 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (THOREAU)
#14: Mon Sep 25 19:37:35 EST 2000
simonb@thoreau.thistledown.com.au:/usr/obj/sys/arch/alpha/compile/THOREAU alpha

>Description:
	mount_mfs is hard-coded to use mode 01777 as the permissions of
	the root inode of the mfs, and the current user/group as the
	user/group of the root inode.  This is not useful for scratch
	filesystems where global write permissions is not desired - for
	example /var/run.

>How-To-Repeat:
	Put "swap /var/run mfs rw,-s=8192" in your fstab, and then look
	at the perms of /var/run after a reboot.

>Fix:
	None given.  As for option names, -m for mode is used, but -p
	for permissions isn't. -o for owner is used, -u for user and -g
	for group isn't.
>Release-Note:
>Audit-Trail:
>Unformatted: