nfs4xdr.c (5cf23dbb1d3122bbc378dbbd96880a086c1b63df) | nfs4xdr.c (32ddd944a056c786f6acdd95ed29e994adc613a2) |
---|---|
1/* 2 * Server-side XDR for NFSv4 3 * 4 * Copyright (c) 2002 The Regents of the University of Michigan. 5 * All rights reserved. 6 * 7 * Kendrick Smith <kmsmith@umich.edu> 8 * Andy Adamson <andros@umich.edu> --- 2403 unchanged lines hidden (view full) --- 2412 goto out; 2413 } else if (err != 0) 2414 goto out_nfserr; 2415 } 2416 2417#ifdef CONFIG_NFSD_V4_SECURITY_LABEL 2418 if ((bmval2 & FATTR4_WORD2_SECURITY_LABEL) || 2419 bmval0 & FATTR4_WORD0_SUPPORTED_ATTRS) { | 1/* 2 * Server-side XDR for NFSv4 3 * 4 * Copyright (c) 2002 The Regents of the University of Michigan. 5 * All rights reserved. 6 * 7 * Kendrick Smith <kmsmith@umich.edu> 8 * Andy Adamson <andros@umich.edu> --- 2403 unchanged lines hidden (view full) --- 2412 goto out; 2413 } else if (err != 0) 2414 goto out_nfserr; 2415 } 2416 2417#ifdef CONFIG_NFSD_V4_SECURITY_LABEL 2418 if ((bmval2 & FATTR4_WORD2_SECURITY_LABEL) || 2419 bmval0 & FATTR4_WORD0_SUPPORTED_ATTRS) { |
2420 err = security_inode_getsecctx(d_inode(dentry), | 2420 if (exp->ex_flags & NFSEXP_SECURITY_LABEL) 2421 err = security_inode_getsecctx(d_inode(dentry), |
2421 &context, &contextlen); | 2422 &context, &contextlen); |
2423 else 2424 err = -EOPNOTSUPP; |
|
2422 contextsupport = (err == 0); 2423 if (bmval2 & FATTR4_WORD2_SECURITY_LABEL) { 2424 if (err == -EOPNOTSUPP) 2425 bmval2 &= ~FATTR4_WORD2_SECURITY_LABEL; 2426 else if (err) 2427 goto out_nfserr; 2428 } 2429 } --- 2172 unchanged lines hidden --- | 2425 contextsupport = (err == 0); 2426 if (bmval2 & FATTR4_WORD2_SECURITY_LABEL) { 2427 if (err == -EOPNOTSUPP) 2428 bmval2 &= ~FATTR4_WORD2_SECURITY_LABEL; 2429 else if (err) 2430 goto out_nfserr; 2431 } 2432 } --- 2172 unchanged lines hidden --- |