Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2000 10:03:05 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        cjclark@alum.mit.edu
Cc:        Brad Knowles <blk@skynet.be>, Vivek Khera <khera@kciLink.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: fstab mount options
Message-ID:  <20000704100305.A10201@walton.maths.tcd.ie>
In-Reply-To: <20000703163045.A248@dialin-client.earthlink.net>; from cristjc@earthlink.net on Mon, Jul 03, 2000 at 04:30:45PM -0700
References:  <m266qmc43b.fsf@reader.ptw.com> <14689.1084.894512.504331@onceler.kcilink.com> <v0422082db586be8b6c6b@[195.238.1.121]> <20000703163045.A248@dialin-client.earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 03, 2000 at 04:30:45PM -0700, Crist J. Clark wrote:
> The risk I see is does this method let users mount with setuid?

Not by the looks of things - you can also only mount on directories
owned by yourself. It's enforced in the mount syscall.

temp1# sysctl -w vfs.usermount=1
vfs.usermount: 0 -> 1
temp1# suspend
Suspended
> mount vn0 /mnt
mount: Operation not permitted
> mkdir blah
> mount vn0 blah
> mount | fgrep blah
vn0 on /usr/home/dwmalone/blah (ufs, local, nodev, nosuid, mounted by dwmalone, writes: sync 2 async 0, reads: sync 14 async 0)
> umount blah
> fg
su
temp1# sysctl -w vfs.usermount=0

	David.


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




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