From owner-freebsd-current Wed Aug 16 13:35:12 2000 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.32.208]) by hub.freebsd.org (Postfix) with ESMTP id CFF8B37B5C9 for ; Wed, 16 Aug 2000 13:35:04 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id WAA53852 for ; Wed, 16 Aug 2000 22:35:02 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: current@freebsd.org Subject: Patch test & review: vop_stdaccess() From: Poul-Henning Kamp Date: Wed, 16 Aug 2000 22:35:02 +0200 Message-ID: <53850.966458102@critter> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Please test and review this patch: http://phk.freebsd.dk/patch/vop_stdaccess.patch This patch creates a centralized function "vop_stdaccess()" which does the "canonical" permission check on a vnode. This code was duplicated in 5 filesystems and morphed in a 6th. Files touched: Index: fs/hpfs/hpfs_vnops.c Index: isofs/cd9660/cd9660_vnops.c Index: kern/vfs_default.c Index: miscfs/kernfs/kernfs_vnops.c Index: msdosfs/msdosfs_vnops.c Index: ntfs/ntfs_vnops.c Index: sys/vnode.h Index: ufs/ufs/ufs_vnops.c Linecount: removes: 243 adds: 79 net change: -164 -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message