core: forbid 'lost+found' as VM name

When /var/lib/qubes/appvms is a mount point of ext4 filesystem, there
will be already 'lost+found' directory. Avoid this conflict.

Fixes QubesOS/qubes-issues#1440
这个提交包含在:
Marek Marczykowski-Górecki 2015-12-26 02:20:28 +01:00
父节点 adb282ef8e
当前提交 e3e8a55c92
找不到此签名对应的密钥
GPG 密钥 ID: 063938BA42CFA724

查看文件

@ -566,6 +566,10 @@ class QubesVm(object):
return False
if len(name) > 31:
return False
if name == 'lost+found':
# avoid conflict when /var/lib/qubes/appvms is mounted on
# separate partition
return False
return re.match(r"^[a-zA-Z][a-zA-Z0-9_.-]*$", name) is not None
def pre_rename(self, new_name):