From owner-cvs-all Mon Sep 18 9:13: 6 2000 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 9BCA937B424; Mon, 18 Sep 2000 09:13:02 -0700 (PDT) Received: (from rwatson@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA70695; Mon, 18 Sep 2000 09:13:02 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Message-Id: <200009181613.JAA70695@freefall.freebsd.org> From: Robert Watson Date: Mon, 18 Sep 2000 09:13:02 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ufs ufs_lookup.c ufs_quota.c ufs_readwrite.c ufs_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG rwatson 2000/09/18 09:13:02 PDT Modified files: sys/ufs/ufs ufs_lookup.c ufs_quota.c ufs_readwrite.c ufs_vnops.c Log: o Substitute suser() calls for direct credential checks, which is now safe as suser() no longer sets ASU. o Note that in some cases, the PRISON_ROOT flag is used even though no process structure is passed, to indicate that if a process structure (and hence jail) was available, it would be ok. In the long run, the jail identifier should probably be moved to ucred, as the uidinfo information was. o Some uid 0 checks remain relating to the quota code, which I'll leave for another day. Reviewed by: phk, eivind Obtained from: TrustedBSD Project Revision Changes Path 1.40 +2 -2 src/sys/ufs/ufs/ufs_lookup.c 1.37 +3 -3 src/sys/ufs/ufs/ufs_quota.c 1.69 +3 -2 src/sys/ufs/ufs/ufs_readwrite.c 1.145 +6 -5 src/sys/ufs/ufs/ufs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message