diff options
author | Brian Feldman <green@FreeBSD.org> | 2001-02-18 13:30:20 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2001-02-18 13:30:20 +0000 |
commit | c0511d3b58c985e17c0c23585ea7d16b6f52fe61 (patch) | |
tree | 2c98c72cf23cba290a2be73c7aed9bd4bf7a492c /sys/nfsclient/nfsstats.h | |
parent | ffa3e13653a581fa24e55f911eef6ab1b8ffbf82 (diff) | |
download | src-c0511d3b58c985e17c0c23585ea7d16b6f52fe61.tar.gz src-c0511d3b58c985e17c0c23585ea7d16b6f52fe61.zip |
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
Notes
Notes:
svn path=/head/; revision=72650
Diffstat (limited to 'sys/nfsclient/nfsstats.h')
-rw-r--r-- | sys/nfsclient/nfsstats.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h index 5c5a8237f13f..6423e5ac6af6 100644 --- a/sys/nfsclient/nfsstats.h +++ b/sys/nfsclient/nfsstats.h @@ -197,7 +197,7 @@ struct nfsd_srvargs { struct nfsd *nsd_nfsd; /* Pointer to in kernel nfsd struct */ uid_t nsd_uid; /* Effective uid mapped to cred */ u_int32_t nsd_haddr; /* Ip address of client */ - struct ucred nsd_cr; /* Cred. uid maps to */ + struct xucred nsd_cr; /* Cred. uid maps to */ int nsd_authlen; /* Length of auth string (ret) */ u_char *nsd_authstr; /* Auth string (ret) */ int nsd_verflen; /* and the verfier */ |