From owner-cvs-all Mon Jan 22 20:15:40 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DBEC337B400; Mon, 22 Jan 2001 20:15:19 -0800 (PST) Received: (from rwatson@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0N4FJf49351; Mon, 22 Jan 2001 20:15:19 -0800 (PST) (envelope-from rwatson) Message-Id: <200101230415.f0N4FJf49351@freefall.freebsd.org> From: Robert Watson Date: Mon, 22 Jan 2001 20:15:19 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_subr.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG rwatson 2001/01/22 20:15:19 PST Modified files: sys/kern vfs_subr.c Log: o The move to using VADMIN under vaccess() resulted in some system calls returning EACCES instead of EPERM. This patch modifies vaccess() to return EPERM instead of EACCES if VADMIN is among the requested rights. This affects functions normally limited to the owners of a file, such as chmod(), as EPERM is the error indicating that privilege would allow the operation, rather than a chance in mandatory or discretionary rights. Reported by: bde Revision Changes Path 1.299 +2 -2 src/sys/kern/vfs_subr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message