initial config for x86_64
[linux-2.6.git] / fs / super.c
index d3c66fb..3c7d868 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/devpts_fs.h>
 #include <linux/proc_fs.h>
 #include <asm/uaccess.h>
+#include <linux/vs_base.h>
 
 
 void get_filesystem(struct file_system_type *fs);
@@ -848,7 +849,7 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void
 
        sb = mnt->mnt_sb;
        error = -EPERM;
-       if (!capable(CAP_SYS_ADMIN) && !sb->s_bdev &&
+       if (!vx_capable(CAP_SYS_ADMIN, VXC_BINARY_MOUNT) && !sb->s_bdev &&
                (sb->s_magic != PROC_SUPER_MAGIC) &&
                (sb->s_magic != DEVPTS_SUPER_MAGIC))
                goto out_sb;