diff --git a/[refs] b/[refs] index 74f3bd7cfe14..2ecf6650e17d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 66fdb93f882d21612a5287cd1303c9b1391ebf5d +refs/heads/master: f74f70f8b10b435f5f20247e70d1d86b53a59685 diff --git a/trunk/fs/afs/super.c b/trunk/fs/afs/super.c index 43165009428d..7c31ec399575 100644 --- a/trunk/fs/afs/super.c +++ b/trunk/fs/afs/super.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include "internal.h" #define AFS_FS_MAGIC 0x6B414653 /* 'kAFS' */ @@ -363,6 +365,10 @@ static struct dentry *afs_mount(struct file_system_type *fs_type, memset(¶ms, 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(¶ms, options, &dev_name);