Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357775
b: refs/heads/master
c: f74f70f
h: refs/heads/master
i:
  357773: c6c7086
  357771: 95117c8
  357767: 9cd7cd1
  357759: 972f295
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent dede3b0 commit 9e6770c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66fdb93f882d21612a5287cd1303c9b1391ebf5d
refs/heads/master: f74f70f8b10b435f5f20247e70d1d86b53a59685
6 changes: 6 additions & 0 deletions trunk/fs/afs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/parser.h>
#include <linux/statfs.h>
#include <linux/sched.h>
#include <linux/nsproxy.h>
#include <net/net_namespace.h>
#include "internal.h"

#define AFS_FS_MAGIC 0x6B414653 /* 'kAFS' */
Expand Down Expand Up @@ -363,6 +365,10 @@ static struct dentry *afs_mount(struct file_system_type *fs_type,

memset(&params, 0, sizeof(params));

ret = -EINVAL;
if (current->nsproxy->net_ns != &init_net)
goto error;

/* parse the options and device name */
if (options) {
ret = afs_parse_options(&params, options, &dev_name);
Expand Down

0 comments on commit 9e6770c

Please sign in to comment.