|
@@ -20,6 +20,7 @@
|
|
#include <linux/file.h>
|
|
#include <linux/file.h>
|
|
#include <linux/vfs.h>
|
|
#include <linux/vfs.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
|
|
+#include <linux/pid_namespace.h>
|
|
|
|
|
|
#include <asm/uaccess.h>
|
|
#include <asm/uaccess.h>
|
|
|
|
|
|
@@ -157,6 +158,9 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent)
|
|
int error;
|
|
int error;
|
|
int idx;
|
|
int idx;
|
|
|
|
|
|
|
|
+ if (task_active_pid_ns(current) != &init_pid_ns)
|
|
|
|
+ return -EINVAL;
|
|
|
|
+
|
|
idx = get_device_index((struct coda_mount_data *) data);
|
|
idx = get_device_index((struct coda_mount_data *) data);
|
|
|
|
|
|
/* Ignore errors in data, for backward compatibility */
|
|
/* Ignore errors in data, for backward compatibility */
|