From owner-cvs-src@FreeBSD.ORG Mon Feb 2 11:03:12 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DD8016A4DD; Mon, 2 Feb 2004 11:03:12 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C77643D2D; Mon, 2 Feb 2004 11:02:34 -0800 (PST) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i12J250B028611; Mon, 2 Feb 2004 11:02:05 -0800 (PST) (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i12J25GL028606; Mon, 2 Feb 2004 11:02:05 -0800 (PST) (envelope-from pjd) Message-Id: <200402021902.i12J25GL028606@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Mon, 2 Feb 2004 11:02:05 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_mount.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 19:03:12 -0000 pjd 2004/02/02 11:02:05 PST FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix many issues related to mount/unmount: 1. Root from inside a jail was able to unmount any file system (except /). 2. Unprivileged root was able to unmount file systems mounted by privileged root (execpt /). 3. User from inside a jail was able to mount file system when sysctl vfs.usermount was set to 1. 4. User was able to mount file system when vfs.usermount was set to 1 (that's ok) and unmount it even if vfs.usermount was equal to 0 (that's not correct). Possibility from point 1 was reported by: Dariusz Kowalski Only a part of this fix will be MFC'ed (if approved). PR: kern/60149 Reviewed by: rwatson Approved by: scottl (mentor) MFC after: 3 days Revision Changes Path 1.118 +33 -8 src/sys/kern/vfs_mount.c