nfs_srvsubs.c (184719) | nfs_srvsubs.c (184868) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_srvsubs.c 184719 2008-11-06 11:43:49Z dfr $"); | 36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_srvsubs.c 184868 2008-11-12 09:36:35Z dfr $"); |
37 38/* 39 * These functions support the macros and help fiddle mbuf chains for 40 * the nfs op functions. They do things like create the rpc header and 41 * copy data between mbuf chains and uio lists. 42 */ 43 44#include "opt_inet6.h" --- 1099 unchanged lines hidden (view full) --- 1144 if (i == numsecflavors) { 1145 /* 1146 * RFC 2623 section 2.3.2 - allow certain procedures 1147 * used at NFS client mount time even if they have 1148 * weak authentication. 1149 */ 1150 mountreq = FALSE; 1151 if (v3) { | 37 38/* 39 * These functions support the macros and help fiddle mbuf chains for 40 * the nfs op functions. They do things like create the rpc header and 41 * copy data between mbuf chains and uio lists. 42 */ 43 44#include "opt_inet6.h" --- 1099 unchanged lines hidden (view full) --- 1144 if (i == numsecflavors) { 1145 /* 1146 * RFC 2623 section 2.3.2 - allow certain procedures 1147 * used at NFS client mount time even if they have 1148 * weak authentication. 1149 */ 1150 mountreq = FALSE; 1151 if (v3) { |
1152 if (nfsd->nd_procnum == NFSPROC_FSINFO) | 1152 if (nfsd->nd_procnum == NFSPROC_FSINFO 1153 || nfsd->nd_procnum == NFSPROC_GETATTR) |
1153 mountreq = TRUE; 1154 } else { 1155 if (nfsd->nd_procnum == NFSPROC_FSSTAT 1156 || nfsd->nd_procnum == NFSPROC_GETATTR) 1157 mountreq = TRUE; 1158 } 1159 if (!mountreq) { | 1154 mountreq = TRUE; 1155 } else { 1156 if (nfsd->nd_procnum == NFSPROC_FSSTAT 1157 || nfsd->nd_procnum == NFSPROC_GETATTR) 1158 mountreq = TRUE; 1159 } 1160 if (!mountreq) { |
1160 error = NFSERR_AUTHERR | AUTH_REJECTCRED; | 1161 error = NFSERR_AUTHERR | AUTH_TOOWEAK; |
1161 goto out; 1162 } 1163 } 1164 error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp); 1165 if (error) 1166 goto out; 1167#ifdef MNT_EXNORESPORT 1168 if (!(exflags & (MNT_EXNORESPORT|MNT_EXPUBLIC))) { --- 360 unchanged lines hidden --- | 1162 goto out; 1163 } 1164 } 1165 error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp); 1166 if (error) 1167 goto out; 1168#ifdef MNT_EXNORESPORT 1169 if (!(exflags & (MNT_EXNORESPORT|MNT_EXPUBLIC))) { --- 360 unchanged lines hidden --- |