[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tmem: only allow tmem control operations from privileged domains
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1347365190 -7200 # Node ID 0dba5a8886556f1b92e59eb19c570ad1704037f6 # Parent 90533f3b6babfda56edbbefda47c46b391204132 tmem: only allow tmem control operations from privileged domains This is part of XSA-15 / CVE-2012-3497. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 90533f3b6bab -r 0dba5a888655 xen/common/tmem.c --- a/xen/common/tmem.c Tue Sep 11 14:03:12 2012 +0200 +++ b/xen/common/tmem.c Tue Sep 11 14:06:30 2012 +0200 @@ -2541,10 +2541,8 @@ static NOINLINE int do_tmem_control(stru OID *oidp = (OID *)(&op->u.ctrl.oid[0]); if (!tmh_current_is_privileged()) - { - /* don't fail... mystery: sometimes dom0 fails here */ - /* return -EPERM; */ - } + return -EPERM; + switch(subop) { case TMEMC_THAW: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |