aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/lib
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-06 12:12:29 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-06 12:12:29 +0000
commita814f6cd0ff828cc100dab2f11e85e4d5baa25c9 (patch)
tree8838995f2662f172dbbff1f08dde5e7b5ffe61ea /tools/xm-test/lib
parent485efe9630a8ad9a0e52b5f7addf955289bc9949 (diff)
downloadxen-a814f6cd0ff828cc100dab2f11e85e4d5baa25c9.tar.gz
xen-a814f6cd0ff828cc100dab2f11e85e4d5baa25c9.tar.bz2
xen-a814f6cd0ff828cc100dab2f11e85e4d5baa25c9.zip
xm-test: An additional ACM security test case for the test suite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/xm-test/lib')
-rw-r--r--tools/xm-test/lib/XmTestLib/acm.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/xm-test/lib/XmTestLib/acm.py b/tools/xm-test/lib/XmTestLib/acm.py
index 5e1c87627f..f8a62f4991 100644
--- a/tools/xm-test/lib/XmTestLib/acm.py
+++ b/tools/xm-test/lib/XmTestLib/acm.py
@@ -30,11 +30,17 @@ except:
labeled_resources = {}
acm_verbose = False
+policy='xm-test'
+
def isACMEnabled():
return security.on()
-def ACMSetPolicy(policy='xm-test'):
+def setCurrentPolicy(plcy):
+ global policy
+ policy = plcy
+
+def ACMSetPolicy():
cmd='xm dumppolicy | grep -E "^POLICY REFERENCE = ' + policy + '.$"'
s, o = traceCommand(cmd)
if o != "":