Commit 9387377e authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge

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: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent de1ef206
obj-$(CONFIG_XENFS) += xenfs.o obj-$(CONFIG_XENFS) += xenfs.o
xenfs-y = super.o xenbus.o xenfs-y = super.o xenbus.o privcmd.o
xenfs-$(CONFIG_XEN_DOM0) += xenstored.o privcmd.o xenfs-$(CONFIG_XEN_DOM0) += xenstored.o
...@@ -101,6 +101,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -101,6 +101,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
[1] = {}, [1] = {},
{ "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR },
{ "capabilities", &capabilities_file_ops, S_IRUGO }, { "capabilities", &capabilities_file_ops, S_IRUGO },
{ "privcmd", &privcmd_file_ops, S_IRUSR|S_IWUSR },
{""}, {""},
}; };
int rc; int rc;
...@@ -114,8 +115,6 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -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); &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR);
xenfs_create_file(sb, sb->s_root, "xsd_port", xenfs_create_file(sb, sb->s_root, "xsd_port",
&xsd_port_file_ops, NULL, S_IRUSR|S_IWUSR); &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; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment