From owner-cvs-all Tue Aug 29 7:45:54 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 66CEE37B422; Tue, 29 Aug 2000 07:45:50 -0700 (PDT) Received: (from rwatson@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA33366; Tue, 29 Aug 2000 07:45:50 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Message-Id: <200008291445.HAA33366@freefall.freebsd.org> From: Robert Watson Date: Tue, 29 Aug 2000 07:45:50 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys vnode.h src/sys/kern vfs_subr.c src/sys/fs/devfs devfs_vnops.c src/sys/fs/hpfs hpfs_vnops.c src/sys/isofs/cd9660 cd9660_vnops.c src/sys/miscfs/kernfs kernfs_vnops.c src/sys/msdosfs msdosfs_vnops.c src/sys/ntfs ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG rwatson 2000/08/29 07:45:50 PDT Modified files: sys/sys vnode.h sys/kern vfs_subr.c sys/fs/devfs devfs_vnops.c sys/fs/hpfs hpfs_vnops.c sys/isofs/cd9660 cd9660_vnops.c sys/miscfs/kernfs kernfs_vnops.c sys/msdosfs msdosfs_vnops.c sys/ntfs ntfs_vnops.c sys/ufs/ufs ufs_vnops.c Log: o Restructure vaccess() so as to check for DAC permission to modify the object before falling back on privilege. Make vaccess() accept an additional optional argument, privused, to determine whether privilege was required for vaccess() to return 0. Add commented out capability checks for reference. Rename some variables to make it more clear which modes/uids/etc are associated with the object, and which with the access mode. o Update file system use of vaccess() to pass NULL as the optional privused argument. Once additional patches are applied, suser() will no longer set ASU, so privused will permit passing of privilege information up the stack to the caller. Reviewed by: bde, green, phk, -security, others Obtained from: TrustedBSD Project Revision Changes Path 1.124 +2 -2 src/sys/sys/vnode.h 1.270 +92 -40 src/sys/kern/vfs_subr.c 1.6 +2 -2 src/sys/fs/devfs/devfs_vnops.c 1.6 +2 -2 src/sys/fs/hpfs/hpfs_vnops.c 1.67 +2 -2 src/sys/isofs/cd9660/cd9660_vnops.c 1.45 +2 -2 src/sys/miscfs/kernfs/kernfs_vnops.c 1.103 +2 -2 src/sys/msdosfs/msdosfs_vnops.c 1.15 +2 -2 src/sys/ntfs/ntfs_vnops.c 1.143 +2 -2 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