Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2018 01:09:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232021] zfs cannot mount 'dataset': Insufficient privileges
Message-ID:  <bug-232021-227-6pPYolRx7h@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232021-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-232021-227@https.bugs.freebsd.org/bugzilla/>

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

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232021

--- Comment #13 from Allan Jude <allanjude@FreeBSD.org> ---
(In reply to Oleg from comment #9)
The difference is that unmounting has only one input, the filesystem you wish
to unmount.

Mounting is more dangerous. Sure bob is allowed to mount zroot1/tst, but the
system call also allows them to mount zroot1/tst to /etc

Now a filesystem the user controls, contains the password file, and that user
is now root.

That is why the FreeBSD vfs.usermount feature implements a sanity check, bob
can only mount filesystems to directories they is the owner of.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232021-227-6pPYolRx7h>