aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2006-09-06 11:51:21 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:25:05 -0400
commita53a3c58fd83e572a7c768d88b4c4e9840a57e82 (patch)
treee1ff5aab7dd8d4c27d28abdec5c437bc48375ef8 /net/sunrpc
parentaec5e175288c711cbe44750276f61efa3fa3d370 (diff)
NFSv4: rpc_mkpipe creating socket inodes w/out sk buffers
This patch stop rpc_mkpipe from create S_IFSOCK nodes what don't have associated sk buffers attached (which causes SELinux to oops during NFSv4 mounts). Instead the S_IFIFO mode bit is set which probably make more sense and seems to work just fine during my connectathon and fsx testing... Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpc_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 11ec12a09d70..dfa504fe383f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -720,7 +720,7 @@ rpc_mkpipe(struct dentry *parent, const char *name, void *private, struct rpc_pi
720 if (IS_ERR(dentry)) 720 if (IS_ERR(dentry))
721 return dentry; 721 return dentry;
722 dir = parent->d_inode; 722 dir = parent->d_inode;
723 inode = rpc_get_inode(dir->i_sb, S_IFSOCK | S_IRUSR | S_IWUSR); 723 inode = rpc_get_inode(dir->i_sb, S_IFIFO | S_IRUSR | S_IWUSR);
724 if (!inode) 724 if (!inode)
725 goto err_dput; 725 goto err_dput;
726 inode->i_ino = iunique(dir->i_sb, 100); 726 inode->i_ino = iunique(dir->i_sb, 100);