[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAErYnsgFhW3Cf-W1CQJGOUstcyfdQxWUcGkGbd0uxM1R=XYuSw@mail.gmail.com>
Date: Mon, 31 Dec 2012 15:44:30 -0500
From: Tamas Lengyel <tamas.lengyel@...tific.com>
To: konrad.wilk@...cle.com, jeremy@...p.org
Cc: Daniel De Graaf <dgdegra@...ho.nsa.gov>,
xen-devel@...ts.xensource.com, linux-kernel@...r.kernel.org
Subject: [PATCH] Access control in Xen privcmd_ioctl_mmap
In the privcmd Linux driver two checks in the functions
privcmd_ioctl_mmap and privcmd_ioctl_mmap_batch are not needed as they
are trying to enforce hypervisor-level access control. They should be
removed as they break secondary control domains when performing dom0
disaggregation. Xen itself provides adequate security controls around
these hypercalls and these checks prevent those controls from
functioning as intended.
The patch applies to the stable Linux 3.7.1 kernel.
Signed-off-by: Tamas K Lengyel <tamas.lengyel@...tific.com>
Cc: Daniel De Graaf <dgdegra@...ho.nsa.gov>
Cc: xen-devel@...ts.xensource.com
Cc: linux-kernel@...r.kernel.org
---
drivers/xen/privcmd.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c
index 71f5c45..adaa260 100644
--- a/drivers/xen/privcmd.c
+++ b/drivers/xen/privcmd.c
@@ -196,9 +196,6 @@ static long privcmd_ioctl_mmap(void __user *udata)
LIST_HEAD(pagelist);
struct mmap_mfn_state state;
- if (!xen_initial_domain())
- return -EPERM;
-
if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd)))
return -EFAULT;
@@ -316,9 +313,6 @@ static long privcmd_ioctl_mmap_batch(void __user
*udata, int version)
int *err_array = NULL;
struct mmap_batch_state state;
- if (!xen_initial_domain())
- return -EPERM;
-
switch (version) {
case 1:
if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch)))
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists