From owner-cvs-all Sun Feb 18 5:30:25 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 1B3F637B491; Sun, 18 Feb 2001 05:30:21 -0800 (PST) Received: (from green@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1IDULQ54598; Sun, 18 Feb 2001 05:30:21 -0800 (PST) (envelope-from green) Message-Id: <200102181330.f1IDULQ54598@freefall.freebsd.org> From: Brian Feldman Date: Sun, 18 Feb 2001 05:30:20 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c src/sys/kern vfs_subr.c src/sys/netinet tcp_subr.c udp_usrreq.c src/sys/netinet6 udp6_usrreq.c src/sys/nfs nfs.h nfs_syscalls.c src/sys/sys mount.h ucred.h param.h src/usr.sbin/inetd builtins.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG green 2001/02/18 05:30:20 PST Modified files: sbin/mountd mountd.c sys/kern vfs_subr.c sys/netinet tcp_subr.c udp_usrreq.c sys/netinet6 udp6_usrreq.c sys/nfs nfs.h nfs_syscalls.c sys/sys mount.h ucred.h param.h usr.sbin/inetd builtins.c Log: Switch to using a struct xucred instead of a struct xucred when not actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL). This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout. Reviewed by: bde Revision Changes Path 1.40 +13 -13 src/sbin/mountd/mountd.c 1.304 +11 -3 src/sys/kern/vfs_subr.c 1.89 +17 -6 src/sys/netinet/tcp_subr.c 1.83 +9 -3 src/sys/netinet/udp_usrreq.c 1.14 +10 -6 src/sys/netinet6/udp6_usrreq.c 1.57 +2 -2 src/sys/nfs/nfs.h 1.65 +8 -2 src/sys/nfs/nfs_syscalls.c 1.101 +4 -4 src/sys/sys/mount.h 1.20 +14 -1 src/sys/sys/ucred.h 1.90 +2 -2 src/sys/sys/param.h 1.30 +2 -2 src/usr.sbin/inetd/builtins.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message