xen/privcmd: make privcmd visible in domU
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 6 Oct 2010 15:51:32 +0000 (08:51 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 20 Oct 2010 23:29:43 +0000 (16:29 -0700)
It has its uses in a domU as well as dom0.  Xen will prevent an
unprivileged domain from doing anything untoward.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/xenfs/Makefile
drivers/xen/xenfs/super.c

index 4a0be9a82af36d22691f38dc476300d2fe9ad315..4fde9440fe1f453aad9a4d6e4a98dceecbf6dbe4 100644 (file)
@@ -1,4 +1,4 @@
 obj-$(CONFIG_XENFS) += xenfs.o
 
-xenfs-y                          = super.o xenbus.o
-xenfs-$(CONFIG_XEN_DOM0) += xenstored.o privcmd.o
+xenfs-y                          = super.o xenbus.o privcmd.o
+xenfs-$(CONFIG_XEN_DOM0) += xenstored.o
index afaa6ede0168962d4b32ee82b7d8662c83edf175..984891e9a39493b1ceb3f24f094f01ff8b930bfd 100644 (file)
@@ -101,6 +101,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
                [1] = {},
                { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR },
                { "capabilities", &capabilities_file_ops, S_IRUGO },
+               { "privcmd", &privcmd_file_ops, S_IRUSR|S_IWUSR },
                {""},
        };
        int rc;
@@ -114,8 +115,6 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
                                  &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR);
                xenfs_create_file(sb, sb->s_root, "xsd_port",
                                  &xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR);
-               xenfs_create_file(sb, sb->s_root, "privcmd",
-                                 &privcmd_file_ops, NULL, S_IRUSR|S_IWUSR);
        }
 
        return rc;