Forbid creating VM with name 'none' or 'default'
Those were special names in Qubes 3.x, don't allow such VMs to avoid (potentially fatal) confusion. Fixes QubesOS/qubes-issues#3002
This commit is contained in:
parent
10c6697050
commit
9f7915d998
@ -60,6 +60,9 @@ def validate_name(holder, prop, value):
|
||||
else:
|
||||
raise qubes.exc.QubesValueError(
|
||||
'VM name contains illegal characters')
|
||||
if value in ('none', 'default'):
|
||||
raise qubes.exc.QubesValueError(
|
||||
'VM name cannot be \'none\' nor \'default\'')
|
||||
|
||||
|
||||
class Features(dict):
|
||||
|
Loading…
Reference in New Issue
Block a user