]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.fixes/nfsd-exclusive-create-fix
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / nfsd-exclusive-create-fix
1 From: NeilBrown <neilb@suse.de>
2 Subject: Fix security bug with exclusive create on NFSv4
3 References: bnc#541648
4 Patch-mainline: 2.6.31
5
6 The call to nfsd_create_v3 in nfs4proc passes both
7 fields of this union, so we must make it a struct to
8 keep them distinct.
9
10 Signed-off-by: NeilBrown <neilb@suse.de>
11 Acked-by: NeilBrown <neilb@suse.de>
12
13 ---
14 include/linux/nfsd/xdr4.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- linux-2.6.25-SL110_BRANCH.orig/include/linux/nfsd/xdr4.h
18 +++ linux-2.6.25-SL110_BRANCH/include/linux/nfsd/xdr4.h
19 @@ -207,7 +207,7 @@ struct nfsd4_open {
20 u32 op_create; /* request */
21 u32 op_createmode; /* request */
22 u32 op_bmval[2]; /* request */
23 - union { /* request */
24 + struct { /* request */
25 struct iattr iattr; /* UNCHECKED4,GUARDED4 */
26 nfs4_verifier verf; /* EXCLUSIVE4 */
27 } u;