From 4dd87f2683de435e9436793cd8bb3cd10ca00db0 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Thu, 3 Mar 2016 13:42:13 +1300 Subject: [PATCH] qvm-create: Don't allow the user to manually create dispNN names --- qvm-tools/qvm-create | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qvm-tools/qvm-create b/qvm-tools/qvm-create index 6ae002e5..18e45c87 100755 --- a/qvm-tools/qvm-create +++ b/qvm-tools/qvm-create @@ -130,6 +130,10 @@ def main(): if options.offline_mode: vmm.offline_mode = True + if re.match('^disp\d+$', vmname): + print >> sys.stderr, 'The name "{0}" is reserved for internal use.'.format(vmname) + exit(1) + qvm_collection = QubesVmCollection() qvm_collection.lock_db_for_writing() qvm_collection.load()