mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
interface parameters are always used, so there's no need for them to be named parameters with defaults. Remove unused httpserver.getRoot and getPort, and simplify the main request loop. This means that socket errors do not have to be squelched. Coalesce the two identical bind methods, one in UnixHttpServer, one in UnixListener. Fix this bind method to set the permissions on the socket explicitly. This closes a security hole, and fixes the intermittent failure of xm-test/06_list_nonroot.test. Signed-off-by: Ewan Mellor <ewan@xensource.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.