nfsfh.c (3ab4d8b1215d61736e2a9a26bea7cc2e6b029e3d) | nfsfh.c (32c1eb0cd7ee00b5eb7b6f7059c635fbc1052966) |
---|---|
1/* 2 * linux/fs/nfsd/nfsfh.c 3 * 4 * NFS server file handle treatment. 5 * 6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> 7 * Portions Copyright (C) 1999 G. Allen Morris III <gam3@acm.org> 8 * Extensive rewrite by Neil Brown <neilb@cse.unsw.edu.au> Southern-Spring 1999 --- 6 unchanged lines hidden (view full) --- 15#include <linux/string.h> 16#include <linux/stat.h> 17#include <linux/dcache.h> 18#include <linux/exportfs.h> 19#include <linux/mount.h> 20 21#include <linux/sunrpc/clnt.h> 22#include <linux/sunrpc/svc.h> | 1/* 2 * linux/fs/nfsd/nfsfh.c 3 * 4 * NFS server file handle treatment. 5 * 6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> 7 * Portions Copyright (C) 1999 G. Allen Morris III <gam3@acm.org> 8 * Extensive rewrite by Neil Brown <neilb@cse.unsw.edu.au> Southern-Spring 1999 --- 6 unchanged lines hidden (view full) --- 15#include <linux/string.h> 16#include <linux/stat.h> 17#include <linux/dcache.h> 18#include <linux/exportfs.h> 19#include <linux/mount.h> 20 21#include <linux/sunrpc/clnt.h> 22#include <linux/sunrpc/svc.h> |
23#include <linux/sunrpc/svcauth_gss.h> |
|
23#include <linux/nfsd/nfsd.h> 24 25#define NFSDDBG_FACILITY NFSDDBG_FH 26 27 28static int nfsd_nr_verified; 29static int nfsd_nr_put; 30 --- 212 unchanged lines hidden (view full) --- 243 } 244 cache_get(&exp->h); 245 246 247 error = nfsd_mode_check(rqstp, dentry->d_inode->i_mode, type); 248 if (error) 249 goto out; 250 | 24#include <linux/nfsd/nfsd.h> 25 26#define NFSDDBG_FACILITY NFSDDBG_FH 27 28 29static int nfsd_nr_verified; 30static int nfsd_nr_put; 31 --- 212 unchanged lines hidden (view full) --- 244 } 245 cache_get(&exp->h); 246 247 248 error = nfsd_mode_check(rqstp, dentry->d_inode->i_mode, type); 249 if (error) 250 goto out; 251 |
252 /* Check security flavor */ 253 error = check_nfsd_access(exp, rqstp); 254 if (error) 255 goto out; 256 |
|
251 /* Finally, check access permissions. */ 252 error = nfsd_permission(exp, dentry, access); 253 254 if (error) { 255 dprintk("fh_verify: %s/%s permission failure, " 256 "acc=%x, error=%d\n", 257 dentry->d_parent->d_name.name, 258 dentry->d_name.name, --- 308 unchanged lines hidden --- | 257 /* Finally, check access permissions. */ 258 error = nfsd_permission(exp, dentry, access); 259 260 if (error) { 261 dprintk("fh_verify: %s/%s permission failure, " 262 "acc=%x, error=%d\n", 263 dentry->d_parent->d_name.name, 264 dentry->d_name.name, --- 308 unchanged lines hidden --- |