From owner-freebsd-current@FreeBSD.ORG Mon Jul 28 21:16:41 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEA18106564A for ; Mon, 28 Jul 2008 21:16:41 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 360328FC15 for ; Mon, 28 Jul 2008 21:16:41 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-005-088.pools.arcor-ip.net [88.66.5.88]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1KNa593bDh-0001j4; Mon, 28 Jul 2008 23:16:40 +0200 Received: (qmail 87364 invoked from network); 28 Jul 2008 21:16:38 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by ns1.laiers.local with SMTP; 28 Jul 2008 21:16:38 -0000 From: Max Laier Organization: FreeBSD To: freebsd-current@freebsd.org Date: Mon, 28 Jul 2008 23:16:37 +0200 User-Agent: KMail/1.9.52 (FreeBSD/8.0-CURRENT; KDE/4.0.83; i386; ; ) References: <20080727125413.GG1345@garage.freebsd.pl> In-Reply-To: <20080727125413.GG1345@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807282316.37722.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18PSCpFbGmixA7rxnihCP5mCNLHYhHP2Lrwcs3 vKDd9nRF5FxZWbuDy63MQ+EaooISN8tOlf+cZHkvXUqq3EI6Y+ 84NGsI9dElirmaRocHSeA== Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek Subject: allow vs. usermount [Re: ZFS patches.] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 21:16:41 -0000 On Sunday 27 July 2008 14:54:13 Pawel Jakub Dawidek wrote: > If you have any questions, please use mailing lists > (freebsd-fs@FreeBSD.org would be the best). Short exercise: | $ whoami | mlaier | $ zfs list | NAME USED AVAIL REFER MOUNTPOINT | tank 104K 228G 19K /tank | tank/mlaier 18K 228G 18K /tank/mlaier | $ zfs allow tank/mlaier | ------------------------------------------------------------- | Local+Descendent permissions on (tank/mlaier) | user mlaier create,destroy,mount,snapshot | ------------------------------------------------------------- | $ zfs create tank/mlaier/test | cannot mount 'tank/mlaier/test': Insufficient privileges | filesystem successfully created, but not mounted This is obviously due to the check in vfs_mount.c patched line 851: if (jailed(td->td_ucred) || usermount == 0) { the question is, should this be tuned to allow for the finer grained zfs permissions to take effect or will we force usermount to use zfs allow mount? -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News