aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenfs
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-06 11:51:32 -0400
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-20 19:29:43 -0400
commit9387377eb79a44f453fd27c3d00a2e5da587e369 (patch)
tree5e89835cbddf861d54e5955071ff1940af71ce6e /drivers/xen/xenfs
parentde1ef2065c4675ab1062ebc8d1cb6c5f42b61d04 (diff)
xen/privcmd: make privcmd visible in domU
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>
Diffstat (limited to 'drivers/xen/xenfs')
-rw-r--r--drivers/xen/xenfs/Makefile4
-rw-r--r--drivers/xen/xenfs/super.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/xen/xenfs/Makefile b/drivers/xen/xenfs/Makefile
index 4a0be9a82af3..4fde9440fe1f 100644
--- a/drivers/xen/xenfs/Makefile
+++ b/drivers/xen/xenfs/Makefile
@@ -1,4 +1,4 @@
1obj-$(CONFIG_XENFS) += xenfs.o 1obj-$(CONFIG_XENFS) += xenfs.o
2 2
3xenfs-y = super.o xenbus.o 3xenfs-y = super.o xenbus.o privcmd.o
4xenfs-$(CONFIG_XEN_DOM0) += xenstored.o privcmd.o 4xenfs-$(CONFIG_XEN_DOM0) += xenstored.o
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c
index afaa6ede0168..984891e9a394 100644
--- a/drivers/xen/xenfs/super.c
+++ b/drivers/xen/xenfs/super.c
@@ -101,6 +101,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
101 [1] = {}, 101 [1] = {},
102 { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, 102 { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR },
103 { "capabilities", &capabilities_file_ops, S_IRUGO }, 103 { "capabilities", &capabilities_file_ops, S_IRUGO },
104 { "privcmd", &privcmd_file_ops, S_IRUSR|S_IWUSR },
104 {""}, 105 {""},
105 }; 106 };
106 int rc; 107 int rc;
@@ -114,8 +115,6 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
114 &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR); 115 &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR);
115 xenfs_create_file(sb, sb->s_root, "xsd_port", 116 xenfs_create_file(sb, sb->s_root, "xsd_port",
116 &xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR); 117 &xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR);
117 xenfs_create_file(sb, sb->s_root, "privcmd",
118 &privcmd_file_ops, NULL, S_IRUSR|S_IWUSR);
119 } 118 }
120 119
121 return rc; 120 return rc;